com.icl.saxon.pattern

Class IDPattern


public final class IDPattern
extends Pattern

An IDPattern is a pattern of the form id(literal)

Field Summary

Fields inherited from class com.icl.saxon.pattern.Pattern

originalText, staticContext

Constructor Summary

IDPattern(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 com.icl.saxon.pattern.Pattern

getDefaultPriority, getFingerprint, getLineNumber, getNodeType, getStaticContext, getSystemId, make, matches, setOriginalText, setStaticContext, simplify, toString

Constructor Details

IDPattern

public IDPattern(String idvalue)

Method Details

getNodeType

public short getNodeType()
Determine the type of nodes to which this pattern applies.
Overrides:
getNodeType in interface Pattern
Returns:
NodeInfo.ELEMENT

matches

public boolean matches(NodeInfo e,
                       Context c)
            throws XPathException
Determine whether this Pattern matches the given Node
Overrides:
matches in interface 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