org.jaxen.pattern

Class NodeTypeTest

public class NodeTypeTest extends NodeTest

NodeTypeTest matches if the node is of a certain type such as element, attribute, comment, text, processing instruction and so forth.

Version: $Revision: 1.8 $

Author: James Strachan

Field Summary
static NodeTypeTestATTRIBUTE_TEST
static NodeTypeTestCOMMENT_TEST
static NodeTypeTestDOCUMENT_TEST
static NodeTypeTestELEMENT_TEST
shortnodeType
static NodeTypeTestNAMESPACE_TEST
static NodeTypeTestPROCESSING_INSTRUCTION_TEST
static NodeTypeTestTEXT_TEST
Constructor Summary
NodeTypeTest(short nodeType)
Method Summary
shortgetMatchType()
doublegetPriority()
StringgetText()
booleanmatches(Object node, Context context)
StringtoString()

Field Detail

ATTRIBUTE_TEST

public static final NodeTypeTest ATTRIBUTE_TEST

COMMENT_TEST

public static final NodeTypeTest COMMENT_TEST

DOCUMENT_TEST

public static final NodeTypeTest DOCUMENT_TEST

ELEMENT_TEST

public static final NodeTypeTest ELEMENT_TEST

nodeType

private short nodeType

NAMESPACE_TEST

public static final NodeTypeTest NAMESPACE_TEST

PROCESSING_INSTRUCTION_TEST

public static final NodeTypeTest PROCESSING_INSTRUCTION_TEST

TEXT_TEST

public static final NodeTypeTest TEXT_TEST

Constructor Detail

NodeTypeTest

public NodeTypeTest(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()