org.jaxen.pattern
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 $
| Field Summary | |
|---|---|
| static NodeTypeTest | ATTRIBUTE_TEST |
| static NodeTypeTest | COMMENT_TEST |
| static NodeTypeTest | DOCUMENT_TEST |
| static NodeTypeTest | ELEMENT_TEST |
| short | nodeType |
| static NodeTypeTest | NAMESPACE_TEST |
| static NodeTypeTest | PROCESSING_INSTRUCTION_TEST |
| static NodeTypeTest | TEXT_TEST |
| Constructor Summary | |
|---|---|
| NodeTypeTest(short nodeType) | |
| Method Summary | |
|---|---|
| short | getMatchType() |
| double | getPriority() |
| String | getText() |
| boolean | matches(Object node, Context context) |
| String | toString() |
Returns: true if the pattern matches the given node