
|
: Class IDPattern
com.icl.saxon.pattern
Class IDPattern
java.lang.Object
|
+--com.icl.saxon.pattern.Pattern
|
+--com.icl.saxon.pattern.IDPattern
- public final class IDPattern
- extends Pattern
An IDPattern is a pattern of the form id(literal)
Constructor Summary |
IDPattern(java.lang.String idvalue)
|
Method Summary |
short |
getNodeType()
Determine the type of nodes to which this pattern applies. |
boolean |
matches(NodeInfo e,
Context c)
Determine whether this Pattern matches the given Node |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IDPattern
public IDPattern(java.lang.String idvalue)
matches
public boolean matches(NodeInfo e,
Context c)
throws XPathException
- Determine whether this Pattern matches the given Node
- Overrides:
matches in class Pattern
- Parameters:
e - The NodeInfo representing the Element or other node to be tested against the Pattern- Returns:
- true if the node matches the Pattern, false otherwise
getNodeType
public short getNodeType()
- Determine the type of nodes to which this pattern applies.
- Overrides:
getNodeType in class Pattern
- Returns:
- NodeInfo.ELEMENT
|