|
||||||||||
| 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
static class XMLConfiguration.XMLBuilderVisitor
A concrete BuilderVisitor that can construct XML
documents.
| Field Summary | |
|---|---|
private org.w3c.dom.Document |
document
Stores the document to be constructed. |
private char |
listDelimiter
Stores the list delimiter. |
| Constructor Summary | |
|---|---|
XMLConfiguration.XMLBuilderVisitor(org.w3c.dom.Document doc,
char listDelimiter)
Creates a new instance of XMLBuilderVisitor |
|
| Method Summary | |
|---|---|
private org.w3c.dom.Element |
getElement(HierarchicalConfiguration.Node node)
Helper method for accessing the element of the specified node. |
protected java.lang.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. |
private static void |
updateAttribute(HierarchicalConfiguration.Node node,
org.w3c.dom.Element elem,
java.lang.String name,
char listDelimiter)
Helper method for updating the value of the specified node's attribute with the given name. |
(package private) static void |
updateAttribute(HierarchicalConfiguration.Node node,
java.lang.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 |
| Field Detail |
|---|
private org.w3c.dom.Document document
private char listDelimiter
| Constructor Detail |
|---|
public XMLConfiguration.XMLBuilderVisitor(org.w3c.dom.Document doc,
char listDelimiter)
XMLBuilderVisitor
doc - the document to be createdlistDelimiter - the delimiter for attribute properties with multiple values| Method Detail |
|---|
public void processDocument(HierarchicalConfiguration.Node rootNode)
rootNode - the root node
protected java.lang.Object insert(HierarchicalConfiguration.Node newNode,
HierarchicalConfiguration.Node parent,
HierarchicalConfiguration.Node sibling1,
HierarchicalConfiguration.Node sibling2)
insert in class HierarchicalConfiguration.BuilderVisitornewNode - the node to insertparent - the parent nodesibling1 - the first siblingsibling2 - the second sibling
private static void updateAttribute(HierarchicalConfiguration.Node node,
org.w3c.dom.Element elem,
java.lang.String name,
char listDelimiter)
node - the affected nodeelem - the element that is associated with this nodename - the name of the affected attributelistDelimiter - the delimiter for attributes with multiple values
static void updateAttribute(HierarchicalConfiguration.Node node,
java.lang.String name,
char listDelimiter)
node - the affected nodename - the name of the attributelistDelimiter - the delimiter for attributes with multiple valuesprivate org.w3c.dom.Element getElement(HierarchicalConfiguration.Node node)
node - the node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||