com.jclark.xsl.expr

Class KeyPattern

Implemented Interfaces:
PathPattern, Pattern, TopLevelPattern

(package private) class KeyPattern
extends PathPatternBase

represents an XSLT/XPath pattern of the form key('foo', 'bar')

Constructor Summary

KeyPattern(String keyName, String keyVal)

Method Summary

int
getDefaultPriority()
(package private) byte
getMatchNodeType()
boolean
matches(Node node, ExprContext context)

Methods inherited from class com.jclark.xsl.expr.PathPatternBase

getAlternatives, getMatchName, getMatchNodeType

Constructor Details

KeyPattern

(package private)  KeyPattern(String keyName,
                              String keyVal)

Method Details

getDefaultPriority

public int getDefaultPriority()
Specified by:
getDefaultPriority in interface PathPattern

getMatchNodeType

(package private)  byte getMatchNodeType()
Overrides:
getMatchNodeType in interface PathPatternBase
Returns:
om.Node.ALLTYPES

matches

public boolean matches(Node node,
                       ExprContext context)
Specified by:
matches in interface Pattern
Returns:
true if the given node is indexed with the given key value in the named key