com.icl.saxon.pattern

Class IDPattern

public final class IDPattern extends Pattern

An IDPattern is a pattern of the form id(literal)
Constructor Summary
IDPattern(String idvalue)
Method Summary
shortgetNodeType()
Determine the type of nodes to which this pattern applies.
booleanmatches(NodeInfo e, Context c)
Determine whether this Pattern matches the given Node

Constructor Detail

IDPattern

public IDPattern(String idvalue)

Method Detail

getNodeType

public short getNodeType()
Determine the type of nodes to which this pattern applies.

Returns: NodeInfo.ELEMENT

matches

public boolean matches(NodeInfo e, Context c)
Determine whether this Pattern matches the given Node

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