to.etc.xml
Class PathExpression
java.lang.Object
to.etc.xml.PathExpression
public class PathExpression
- extends java.lang.Object
Encapsulates a path into an XML expression. It consists of
a set of PathSelector nodes in a list that get executed in
order to get to a given value within an XML structure. The
matcher code is not very efficient as it traverses the
DOM from start to finish every time a value needs to be got.
Created on May 23, 2005
- Author:
- Frits Jalvingh
Method Summary |
static PathExpression |
getExpression(java.lang.String s)
Converts a path selection string into a path expression. |
org.w3c.dom.Node |
getNode(org.w3c.dom.Node root,
org.w3c.dom.Node parent,
java.lang.StringBuffer error)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
getExpression
public static PathExpression getExpression(java.lang.String s)
throws java.lang.Exception
- Converts a path selection string into a path expression.
- Parameters:
s
-
- Returns:
-
- Throws:
java.lang.Exception
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getNode
public final org.w3c.dom.Node getNode(org.w3c.dom.Node root,
org.w3c.dom.Node parent,
java.lang.StringBuffer error)
throws java.lang.Exception
- Throws:
java.lang.Exception