Interface Decorator
-
- All Known Implementing Classes:
HtmlBodyDecorator
,HtmlDocumentDecorator
,HtmlHeadDecorator
,HtmlTitleDecorator
,XmlDocumentDecorator
public interface Decorator
A decorator performs decoration of a target model, using a source model for all the decorations to apply. What exactly "decoration" means can vary per implementation.- Author:
- zhanhb, Emanuel Rabina
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IModel
decorate(IModel targetModel, IModel sourceModel)
Decorate the target model with the contents of the source model, returning a new model that is the result of that decoration.
-
-
-
Method Detail
-
decorate
IModel decorate(IModel targetModel, IModel sourceModel)
Decorate the target model with the contents of the source model, returning a new model that is the result of that decoration.- Parameters:
targetModel
- The target model to be decorated.sourceModel
- The source model to use for decorating.- Returns:
- A new model that is the result of the decoration process.
-
-