com.icl.saxon.pattern
Class IDPattern
public final class IDPattern
An IDPattern is a pattern of the form id(literal)
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
|
getDefaultPriority, getFingerprint, getLineNumber, getNodeType, getStaticContext, getSystemId, make, matches, setOriginalText, setStaticContext, simplify, toString |
IDPattern
public IDPattern(String idvalue)
getNodeType
public short getNodeType()
Determine the type of nodes to which this pattern applies.
- getNodeType in interface Pattern
- NodeInfo.ELEMENT
matches
public boolean matches(NodeInfo e,
Context c)
throws XPathException Determine whether this Pattern matches the given Node
- matches in interface Pattern
e - The NodeInfo representing the Element or other node to be tested against the Pattern
- true if the node matches the Pattern, false otherwise