public enum XPathNodeTest extends Enum<XPathNodeTest> implements NodeTest
Enum Constant and Description |
---|
COMMENT
comment nodetest
|
NODE
node nodetest
|
PROCESSINGINSTRUCTION
processing-instruction nodetest (no parameter - this is encoded in the
ParameterizedProcessingInstruction
class) |
TEXT
text nodetest
|
Modifier and Type | Method and Description |
---|---|
NodeTestType |
getType()
returns the type associated with this node test
|
String |
getValue()
returns the value of the node test encoded as a
String object |
static XPathNodeTest |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XPathNodeTest[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XPathNodeTest COMMENT
public static final XPathNodeTest TEXT
public static final XPathNodeTest PROCESSINGINSTRUCTION
ParameterizedProcessingInstruction
class)public static final XPathNodeTest NODE
public static XPathNodeTest[] values()
for (XPathNodeTest c : XPathNodeTest.values()) System.out.println(c);
public static XPathNodeTest valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getValue()
String
objectpublic NodeTestType getType()
Copyright © 2020 OXPath Team. All rights reserved.