public interface XPathBinder
Modifier and Type | Method and Description |
---|---|
<T> CloseableValue<T> |
as(Class<T> returnType)
Evaluate the XPath as a value of the given type.
|
CloseableValue<Boolean> |
asBoolean()
Evaluates the XPath as a boolean value.
|
CloseableValue<Date> |
asDate()
Evaluates the XPath as a Date value.
|
CloseableValue<Integer> |
asInt()
Evaluates the XPath as a int value.
|
<T> CloseableList<T> |
asListOf(Class<T> componentType)
Evaluate the XPath as a list of the given type.
|
<T> CloseableMap<T> |
asMapOf(Class<T> valueType)
Evaluate the XPath as a map with the given value type.
|
CloseableValue<String> |
asString()
Evaluates the XPath as a String value.
|
CloseableValue<Boolean> asBoolean()
CloseableValue<Integer> asInt()
CloseableValue<String> asString()
CloseableValue<Date> asDate()
<T> CloseableValue<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> CloseableList<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.Node<T> CloseableMap<T> asMapOf(Class<T> valueType)
valueType
- 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-2022. All Rights Reserved.