15 lines
377 B
Java
15 lines
377 B
Java
package decorator;
|
|
|
|
/**
|
|
* Concrete Component — the base object being decorated.
|
|
* Does nothing special: just returns the text as-is.
|
|
* All decorators wrap this (or other decorators on top of it).
|
|
*/
|
|
public class PlainTextProcessor implements TextProcessor {
|
|
|
|
@Override
|
|
public String process(String text) {
|
|
return text; // base: no transformation
|
|
}
|
|
}
|