public enum OXPathNodeTest extends Enum<OXPathNodeTest> implements NodeTest
Enum Constant and Description |
---|
ANYFIELD
any-field nodetest
|
FIELD
field nodetest
|
Modifier and Type | Method and Description |
---|---|
OXPathType |
evaluate(OXPathContextNode node,
Axis axis)
evaluates the context node with the step using this axis and nodetest
|
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 OXPathNodeTest |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OXPathNodeTest[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OXPathNodeTest FIELD
public static final OXPathNodeTest ANYFIELD
public static OXPathNodeTest[] values()
for (OXPathNodeTest c : OXPathNodeTest.values()) System.out.println(c);
public static OXPathNodeTest 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 OXPathType evaluate(OXPathContextNode node, Axis axis) throws OXPathException
node
- context nodeaxis
- axis to applyOXPathException
- in case an inappropriate nodetest is inputpublic String getValue()
String
objectpublic NodeTestType getType()
Copyright © 2020 OXPath Team. All rights reserved.