public class MxNode extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PATH_SEPARATOR |
Constructor and Description |
---|
MxNode() |
MxNode(MxNode parent,
String localName) |
Modifier and Type | Method and Description |
---|---|
List<MxNode> |
find(String path)
Given a basic path, find all nodes matching the path parameter.
If the path starts with '/' it will search from the root element, else it will search from this node. |
MxNode |
findFirst(String path)
Given a basic path, find the first instance of a node matching the
path parameter.
If the path starts with '/' it will search from the root element, else it will search from this node. |
MxNode |
findFirstByName(String name)
Traverse the tree from this node looking for the first node matching the given name.
|
MxNode |
getParent() |
MxNode |
getRoot() |
String |
getValue() |
void |
print() |
void |
setValue(String value) |
String |
singlePathValue(String path) |
String |
toString() |
public static final transient String PATH_SEPARATOR
public MxNode findFirst(String path)
path
- absolute or relative path to findpublic List<MxNode> find(String path)
path
- absolute or relative path to findpublic MxNode getRoot()
public String getValue()
public void setValue(String value)
public void print()
public MxNode getParent()