Class XmlDocumentDecorator

  • All Implemented Interfaces:
    Decorator
    Direct Known Subclasses:
    HtmlDocumentDecorator

    public class XmlDocumentDecorator
    extends Object
    implements Decorator
    A decorator made to work over an XML document.
    Author:
    zhanhb, Emanuel Rabina
    • Constructor Detail

      • XmlDocumentDecorator

        public XmlDocumentDecorator​(ITemplateContext context)
        Constructor, set up the document decorator context.
        Parameters:
        context -
    • Method Detail

      • decorate

        public IModel decorate​(IModel targetDocumentModel,
                               IModel sourceDocumentModel)
        Decorates the target XML document with the source one.
        Specified by:
        decorate in interface Decorator
        Parameters:
        targetDocumentModel -
        sourceDocumentModel -
        Returns:
        Result of the decoration.