public class PathCreate extends Path
The result of evaluating a "path create" expression is a new Element
node tree. A configuration tree can easily be created with this class.
Example:
PathCreate path = new PathCreate("/hosts/host[name='john', age=42]");
Element element_tree = path.eval(PrefixMap);
| Constructor and Description |
|---|
PathCreate(java.lang.String pathStr)
Constructor for a PathCreate (parse tree) from a "path create" string.
|
| Modifier and Type | Method and Description |
|---|---|
Element |
eval(PrefixMap prefixMap)
Evaluates the path expression and build a new Element subtree.
|
java.lang.String |
toString()
Returns a string representation of this PathCreate.
|
public PathCreate(java.lang.String pathStr)
throws JNCException
Element tree.
See PathCreate for more information about path create
expressions.
pathStr - A "path create" stringJNCExceptionpublic Element eval(PrefixMap prefixMap) throws JNCException
prefixMap - Prefix mappingsJNCException