|
: Class Navigator
com.icl.saxon.om
|
Constructor Summary | |
Navigator()
|
Method Summary | |
static int |
getNumberAny(NodeInfo node,
Pattern count,
Pattern from,
Context context)
Get node number (level="any"). |
static java.util.Vector |
getNumberMulti(NodeInfo node,
Pattern count,
Pattern from,
Context context)
Get node number (level="multiple"). |
static int |
getNumberSimple(NodeInfo node)
Get simple node number. |
static int |
getNumberSimple(NodeInfo node,
Context context)
Get simple node number. |
static int |
getNumberSingle(NodeInfo node,
Pattern count,
Pattern from,
Context context)
Get node number (level="single"). |
static java.lang.String |
getPath(NodeInfo node)
Get an absolute XPath expression that identifies a given node within its document |
static boolean |
isAncestor(NodeInfo node,
NodeInfo other)
Determine whether this node is an ancestor of another node |
static boolean |
isWhite(java.lang.String content)
Determine if a string is all-whitespace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Navigator()
Method Detail |
public static boolean isWhite(java.lang.String content)
public static boolean isAncestor(NodeInfo node, NodeInfo other)
node
- the putative ancestor nodeother
- the other node (the putative descendant of this node)public static java.lang.String getPath(NodeInfo node)
public static int getNumberSimple(NodeInfo node, Context context) throws XPathException
context
- Used for remembering previous result, for performancepublic static int getNumberSimple(NodeInfo node)
public static int getNumberSingle(NodeInfo node, Pattern count, Pattern from, Context context) throws XPathException
count
- Pattern that identifies which nodes should be counted. Default (null) is the element
name if the current node is an element, or "node()" otherwise.from
- Pattern that specifies where counting starts from. Default (null) is the root node.
(This parameter does not seem useful but is included for the sake of XSLT conformance.)public static int getNumberAny(NodeInfo node, Pattern count, Pattern from, Context context) throws XPathException
count
- Pattern that identifies which nodes should be counted. Default (null) is the element
name if the current node is an element, or "node()" otherwise.from
- Pattern that specifies where counting starts from. Default (null) is the root node.
Only nodes after the first (most recent) node that matches the 'from' pattern are counted.public static java.util.Vector getNumberMulti(NodeInfo node, Pattern count, Pattern from, Context context) throws XPathException
count
- Pattern that identifies which nodes (ancestors and their previous siblings)
should be counted. Default (null) is the element
name if the current node is an element, or "node()" otherwise.from
- Pattern that specifies where counting starts from. Default (null) is the root node.
Only nodes below the first (most recent) node that matches the 'from' pattern are counted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |