|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xpath.axis.NodeTest
jd.xml.xpath.axis.NodeTypeTest
A NodeTest to filter nodes with certain types.
Field Summary | |
static NodeTypeTest |
ALL
The NodeTypeTest "*". |
static NodeTypeTest |
COMMENT
The NodeTypeTest "comment()". |
static String |
NAME_ALL
|
static String |
NAME_COMMENT
|
static String |
NAME_PI
|
static String |
NAME_TEXT
|
static NodeTypeTest |
PI
The NodeTypeTest "processing-instruction()". |
static NodeTypeTest |
TEXT
The NodeTypeTest "text()". |
Fields inherited from class jd.xml.xpath.axis.NodeTest |
EXACT, NO, WILDCARD |
Constructor Summary | |
NodeTypeTest()
|
Method Summary | |
abstract boolean |
accept(int nodeType)
Return if the node-type test accepts the given node-type. |
static NodeTypeTest |
getTest(String name,
String parameter)
Create a NodeTypeTest. |
int |
matchNames()
Return NO. |
Methods inherited from class jd.xml.xpath.axis.NodeTest |
accept, accept, calculatePriority, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String NAME_ALL
public static final String NAME_TEXT
public static final String NAME_COMMENT
public static final String NAME_PI
public static final NodeTypeTest ALL
public static final NodeTypeTest TEXT
public static final NodeTypeTest COMMENT
public static final NodeTypeTest PI
Constructor Detail |
public NodeTypeTest()
Method Detail |
public abstract boolean accept(int nodeType)
public final int matchNames()
matchNames
in class NodeTest
NodeTest.NO
,
NodeTest.WILDCARD
,
NodeTest.EXACT
public static NodeTypeTest getTest(String name, String parameter)
name
- the test nameparameter
- an optional parameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |