org.jaxen.pattern

Class NameTest

public class NameTest extends NodeTest

NameTest tests for a node name.

Version: $Revision: 1.7 $

Author: James Strachan

Field Summary
Stringname
The name to match against
shortnodeType
The type of node to match - either attribute or element
Constructor Summary
NameTest(String name, short nodeType)
Method Summary
shortgetMatchType()
doublegetPriority()
StringgetText()
booleanmatches(Object node, Context context)
StringtoString()

Field Detail

name

private String name
The name to match against

nodeType

private short nodeType
The type of node to match - either attribute or element

Constructor Detail

NameTest

public NameTest(String name, short nodeType)

Method Detail

getMatchType

public short getMatchType()

getPriority

public double getPriority()

getText

public String getText()

matches

public boolean matches(Object node, Context context)

Returns: true if the pattern matches the given node

toString

public String toString()