public enum Selector extends Enum<Selector> implements OXPathPredicate
Enum Constant and Description |
---|
CLASS
class selector
|
ID
id selector
|
Modifier and Type | Method and Description |
---|---|
OXPathType |
evaluateIterative(OXPathContextNode contextNode,
OXPathType other)
evaluates input by the operation and returns the result; call this method when no position() or
last() node tests occur inside subsequent predicates (or this one) in this list.
|
OXPathType |
evaluateSet(IOXPathNodeList contextSet,
OXPathType other)
evaluates input by the operation and returns the result; call this method when position() or
last() node tests occur inside subsequent predicates (or this one) in this list.
|
String |
getAttributeName()
returns the attribute name corresponding to the selector
|
String |
getOperator()
returns the
String representation of the operator |
OXPathPredicateTypes |
getType()
returns the type of the predicate
|
String |
getValue()
returns the
String representation of the selector |
static Selector |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Selector[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Selector CLASS
public static final Selector ID
public static Selector[] values()
for (Selector c : Selector.values()) System.out.println(c);
public static Selector 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 evaluateIterative(OXPathContextNode contextNode, OXPathType other) throws OXPathException
contextNode
- context nodeother
- will depend on the specific predicateOXPathException
- in case of exception in nested callspublic OXPathType evaluateSet(IOXPathNodeList contextSet, OXPathType other) throws OXPathException
contextSet
- context setother
- will depend on the specific predicateOXPathException
- in case of exception in nested callspublic String getValue()
String
representation of the selectorString
representation of the selectorpublic String getOperator()
String
representation of the operatorString
representation of the operatorpublic String getAttributeName()
public OXPathPredicateTypes getType()
getType
in interface OXPathPredicate
Copyright © 2020 OXPath Team. All rights reserved.