|
|||||||||||
| 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)
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 into the structure constructed by this builder. |
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)
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)
XMLBuilderVisitor
doc - the document to be created| Method Detail |
public void processDocument(HierarchicalConfiguration.Node rootNode)
rootNode - the root node
protected Object insert(HierarchicalConfiguration.Node newNode,
HierarchicalConfiguration.Node parent,
HierarchicalConfiguration.Node sibling1,
HierarchicalConfiguration.Node sibling2)
HierarchicalConfiguration.BuilderVisitorNode object; if it is not null , it is passed
to the node's setReference() method.
insert in class HierarchicalConfiguration.BuilderVisitornewNode - the node to be insertedparent - the parent nodesibling1 - the sibling after which the node is to be inserted;
can be null if the new node is going to be the first child
nodesibling2 - the sibling before which the node is to be inserted;
can be null if the new node is going to be the last child
node
static void updateAttribute(HierarchicalConfiguration.Node node,
String name)
node - the affected nodename - the name of the attribute
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||