com.jclark.xsl.expr

Class KeyPattern

class KeyPattern extends PathPatternBase

represents an XSLT/XPath pattern of the form key('foo', 'bar')
Constructor Summary
KeyPattern(String keyName, String keyVal)
Method Summary
intgetDefaultPriority()
bytegetMatchNodeType()
booleanmatches(Node node, ExprContext context)

Constructor Detail

KeyPattern

KeyPattern(String keyName, String keyVal)

Method Detail

getDefaultPriority

public int getDefaultPriority()

getMatchNodeType

byte getMatchNodeType()

Returns: om.Node.ALLTYPES

matches

public boolean matches(Node node, ExprContext context)

Returns: true if the given node is indexed with the given key value in the named key