|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.HierarchicalConfiguration.NodeVisitor
org.apache.commons.configuration.HierarchicalConfiguration.BuilderVisitor
org.apache.commons.configuration.XMLConfiguration.XMLBuilderVisitor
A concrete BuilderVisitor
that can construct XML
documents.
Constructor Summary | |
XMLConfiguration.XMLBuilderVisitor(Document doc,
char listDelimiter)
Creates a new instance of XMLBuilderVisitor |
Method Summary | |
protected Object |
insert(HierarchicalConfiguration.Node newNode,
HierarchicalConfiguration.Node parent,
HierarchicalConfiguration.Node sibling1,
HierarchicalConfiguration.Node sibling2)
Inserts a new node. |
void |
processDocument(HierarchicalConfiguration.Node rootNode)
Processes the node hierarchy and adds new nodes to the document. |
(package private) static void |
updateAttribute(HierarchicalConfiguration.Node node,
String name,
char listDelimiter)
Updates the value of the specified attribute of the given node. |
Methods inherited from class org.apache.commons.configuration.HierarchicalConfiguration.BuilderVisitor |
visitBeforeChildren |
Methods inherited from class org.apache.commons.configuration.HierarchicalConfiguration.NodeVisitor |
terminate, visitAfterChildren |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLConfiguration.XMLBuilderVisitor(Document doc, char listDelimiter)
XMLBuilderVisitor
doc
- the document to be createdlistDelimiter
- the delimiter for attribute properties with multiple valuesMethod Detail |
public void processDocument(HierarchicalConfiguration.Node rootNode)
rootNode
- the root nodeprotected Object insert(HierarchicalConfiguration.Node newNode, HierarchicalConfiguration.Node parent, HierarchicalConfiguration.Node sibling1, HierarchicalConfiguration.Node sibling2)
insert
in class HierarchicalConfiguration.BuilderVisitor
newNode
- the node to insertparent
- the parent nodesibling1
- the first siblingsibling2
- the second sibling
static void updateAttribute(HierarchicalConfiguration.Node node, String name, char listDelimiter)
node
- the affected nodename
- the name of the attributelistDelimiter
- the delimiter vor attributes with multiple values
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |