com.icl.saxon.pattern
public final class IDPattern extends Pattern
originalText, staticContext
Modifier and Type | Method and Description |
---|---|
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, getStaticContext, getSystemId, make, setOriginalText, setStaticContext, simplify, toString
public IDPattern(String idvalue)
public boolean matches(NodeInfo e, Context c) throws XPathException
matches
in class Pattern
e
- The NodeInfo representing the Element or other node to be tested against the Patternc
- The context in which the match is to take place. Only relevant if the pattern
uses variables.XPathException
public short getNodeType()
getNodeType
in class Pattern