public interface XPathEvaluator
Modifier and Type | Method and Description |
---|---|
<T> T |
as(Class<T> returnType)
Evaluate the XPath as a value of the given type.
|
<T> T[] |
asArrayOf(Class<T> componentType)
Evaluate the XPath as an array of the given type.
|
boolean |
asBoolean()
Evaluates the XPath as a boolean value.
|
Date |
asDate()
Evaluates the XPath as a Date value.
|
int |
asInt()
Evaluates the XPath as a int value.
|
<T> List<T> |
asListOf(Class<T> componentType)
Evaluate the XPath as a list of the given type.
|
<T> XBAutoMap<T> |
asMapOf(Class<T> componentType)
Evaluate the XPAth as a map of XPath strings to the given component type.
|
String |
asString()
Evaluates the XPath as a String value.
|
boolean asBoolean()
int asInt()
String asString()
Date asDate()
<T> T as(Class<T> returnType)
returnType
- Possible values: primitive types (e.g. Short.Type), Projection interfaces, any
class with a String constructor or a String factory method, and org.w3c.Node<T> T[] asArrayOf(Class<T> componentType)
componentType
- Possible values: primitive types (e.g. Short.Type), Projection interfaces, any
class with a String constructor or a String factory method, and org.w3c.Node<T> List<T> asListOf(Class<T> componentType)
componentType
- Possible values: primitive types (e.g. Short.Type), Projection interfaces, any
class with a String constructor or a String factory method, and org.w3c.NodeCopyright © 2012-12-21-2018. All Rights Reserved.