com.jclark.xsl.expr

Class AttributeTest

class AttributeTest extends PathPatternBase

A compiled XPath component that tests a node to see if it is an attribute with a (possibly?) specified name
Constructor Summary
AttributeTest(Name name)
construct with the given name
Method Summary
intgetDefaultPriority()
NamegetMatchName()
bytegetMatchNodeType()
booleanmatches(Node node, ExprContext context)

Constructor Detail

AttributeTest

AttributeTest(Name name)
construct with the given name

Method Detail

getDefaultPriority

public int getDefaultPriority()

Returns: 0

getMatchName

Name getMatchName()

Returns: the Name we test for

getMatchNodeType

byte getMatchNodeType()

Returns: om.Node.ATTRIBUTE

matches

public boolean matches(Node node, ExprContext context)

Returns: true if the node is an ATTRIBUTE and has the specified Name