com.jclark.xsl.expr

Class ElementTest

class ElementTest extends PathPatternBase

A compiled XPath expression (component) tests a node for being an ELEMENT with a given Name
Constructor Summary
ElementTest(Name name)
construct with the Name to be tested
Method Summary
intgetDefaultPriority()
NamegetMatchName()
bytegetMatchNodeType()
booleanmatches(Node node, ExprContext context)

Constructor Detail

ElementTest

ElementTest(Name name)
construct with the Name to be tested

Method Detail

getDefaultPriority

public int getDefaultPriority()

Returns: 0

getMatchName

Name getMatchName()

Returns: the Name to test

getMatchNodeType

byte getMatchNodeType()

Returns: om.Node.ELEMENT

matches

public boolean matches(Node node, ExprContext context)

Returns: true if the node is an Element and has the Name we're testing