Package org.simpleframework.xml.core
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:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decorate
(OutputNode node) This method is used to decorate the provided node.void
decorate
(OutputNode node, Decorator secondary) This method is used to decorate the provided node.
-
Method Details
-
decorate
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
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 anotherDecorator
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 thissecondary
- this is a secondary decorator to be applied
-