Interface Decorator

  • All Known Implementing Classes:
    NamespaceDecorator, Qualifier

    interface Decorator
    The Decorator interface is used to describe an object that is used to add decorations to an output node. A decoration is a object that adds information to the output node without any change to the structure of the node. Decorations can include extra information like comments and namespaces.
    See Also:
    Label
    • Method Detail

      • decorate

        void decorate​(OutputNode node)
        This method is used to decorate the provided node. This node can be either an XML element or an attribute. Decorations that can be applied to the node by invoking this method include things like comments and namespaces.
        Parameters:
        node - this is the node that is to be decorated by this
      • decorate

        void decorate​(OutputNode node,
                      Decorator secondary)
        This method is used to decorate the provided node. This node can be either an XML element or an attribute. Decorations that can be applied to the node by invoking this method include things like comments and namespaces. This can also be given another Decorator which is applied before this decorator, any common data can then be overwritten.
        Parameters:
        node - this is the node that is to be decorated by this
        secondary - this is a secondary decorator to be applied