Class HtmlTitleDecorator

  • All Implemented Interfaces:
    Decorator

    public class HtmlTitleDecorator
    extends Object
    implements Decorator
    Decorator for the <title> part of the template to handle the special processing required for the layout:title-pattern processor.
    Author:
    zhanhb, Emanuel Rabina
    • Constructor Detail

      • HtmlTitleDecorator

        public HtmlTitleDecorator​(ITemplateContext context)
        Constructor, sets up the decorator context.
        Parameters:
        context -
    • Method Detail

      • decorate

        public IModel decorate​(IModel targetTitleModel,
                               IModel sourceTitleModel)
        Special decorator for the <title> part, accumulates the important processing parts for the layout:title-pattern processor.
        Specified by:
        decorate in interface Decorator
        Parameters:
        targetTitleModel -
        sourceTitleModel -
        Returns:
        A new <title> model that is the result of decorating the <title>.