public static class XMLTreeReplacer.NodePath extends Object
| Constructor and Description |
|---|
NodePath() |
NodePath(List<XMLTreeReplacer.Node> path)
Constructor.
|
NodePath(XMLTreeReplacer.Node... nodes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(String qname)
Add a Node to the path.
|
XMLTreeReplacer.Node |
addNode(String qname,
int occ)
Add a Node to the path.
|
XMLTreeReplacer.Node |
addNode(String qname,
String ifQName,
String ifValue)
Add a Node to the path.
|
void |
addNode(XMLTreeReplacer.Node node)
Add a Node to the path.
|
List<XMLTreeReplacer.Node> |
getPath()
Return the list of nodes which constitute the path.
|
public NodePath()
public NodePath(XMLTreeReplacer.Node... nodes)
nodes - the nodespublic NodePath(List<XMLTreeReplacer.Node> path)
path - the list of nodes which constitute the pathpublic void addNode(XMLTreeReplacer.Node node)
node - the Nodepublic void addNode(String qname)
qname - the Node namepublic XMLTreeReplacer.Node addNode(String qname, int occ)
qname - the Node nameocc - the occurrence of the Nodepublic XMLTreeReplacer.Node addNode(String qname, String ifQName, String ifValue)
qname - the Node nameifQName - the attribute qualified name to check for the changeifValue - the attribute value to use check the changepublic List<XMLTreeReplacer.Node> getPath()