org.apache.commons.configuration
static class XMLConfiguration.XMLBuilderVisitor extends BuilderVisitor
BuilderVisitor
that can construct XML
documents.
Field Summary | |
---|---|
Document | document Stores the document to be constructed. |
char | listDelimiter Stores the list delimiter. |
Constructor Summary | |
---|---|
XMLBuilderVisitor(Document doc, char listDelimiter)
Creates a new instance of XMLBuilderVisitor
|
Method Summary | |
---|---|
Element | getElement(Node node)
Helper method for accessing the element of the specified node.
|
protected Object | insert(Node newNode, Node parent, Node sibling1, Node sibling2)
Inserts a new node. |
void | processDocument(Node rootNode)
Processes the node hierarchy and adds new nodes to the document.
|
static void | updateAttribute(Node node, Element elem, String name, char listDelimiter)
Helper method for updating the value of the specified node's
attribute with the given name.
|
static void | updateAttribute(Node node, String name, char listDelimiter)
Updates the value of the specified attribute of the given node.
|
XMLBuilderVisitor
Parameters: doc the document to be created listDelimiter the delimiter for attribute properties with multiple values
Parameters: node the node
Returns: the element of this node
Parameters: newNode the node to insert parent the parent node sibling1 the first sibling sibling2 the second sibling
Returns: the new node
Parameters: rootNode the root node
Parameters: node the affected node elem the element that is associated with this node name the name of the affected attribute listDelimiter the delimiter vor attributes with multiple values
Parameters: node the affected node name the name of the attribute listDelimiter the delimiter vor attributes with multiple values