com.icl.saxon.pattern

Class KeyPattern

public final class KeyPattern extends Pattern

A KeyPattern is a pattern of the form key(keyname, keyvalue)
Constructor Summary
KeyPattern(int namecode, String value)
Constructor
Method Summary
booleanmatches(NodeInfo e, Context c)
Determine whether this Pattern matches the given Node.

Constructor Detail

KeyPattern

public KeyPattern(int namecode, String value)
Constructor

Parameters: name the name of the key value the value of the key

Method Detail

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