Package org.citrusframework.xml.xpath
Enum Class XPathExpressionResult
- All Implemented Interfaces:
Serializable,Comparable<XPathExpressionResult>,Constable
Enumeration representing the possible result types for XPath expression evaluation. In Citrus
XPath expressions a prefix may determine the result type like this:
string://MyExpressionString/Value
number://MyExpressionString/Value
boolean://MyExpressionString/Value
The result type prefix is supposed to be stripped off before expression evaluation
and determines the evaluation result.
- Author:
- Christoph Deppisch
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcutOffPrefix(String expression) Cut off the leading result type prefix in a XPath expression string.static XPathExpressionResultfromString(String value, XPathExpressionResult defaultResult) Get the enumeration value from an expression string.Get a constant QName instance from this enumerations value.static XPathExpressionResultReturns the enum constant of this class with the specified name.static XPathExpressionResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NODE
-
NODESET
-
STRING
-
BOOLEAN
-
NUMBER
-
INTEGER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
Get the enumeration value from an expression string. According to the leading prefix and a default result type the enumeration value is returned.- Parameters:
value-- Returns:
-
getAsQName
Get a constant QName instance from this enumerations value.- Returns:
-
cutOffPrefix
Cut off the leading result type prefix in a XPath expression string.- Parameters:
expression-- Returns:
-