Package org.camunda.spin.json
Interface SpinJsonPathQuery
-
- All Known Implementing Classes:
JacksonJsonPathQuery
public interface SpinJsonPathQuery- Author:
- Stefan Hentschel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.BooleanboolValue()Fetches the boolean value from the result of JsonPath.SpinJsonNodeelement()Fetches the node from the result of JsonPath.SpinList<SpinJsonNode>elementList()Fetches the list of nodes from the result of JsonPath.java.lang.NumbernumberValue()Fetches the number value from the result of JsonPath.java.lang.StringstringValue()Fetches the string value from the result of JsonPath.
-
-
-
Method Detail
-
element
SpinJsonNode element()
Fetches the node from the result of JsonPath.- Returns:
SpinJsonNoderepresentation of the found node- Throws:
SpinJsonPathException- if node value is not a valid json path expression or the path is not found.
-
elementList
SpinList<SpinJsonNode> elementList()
Fetches the list of nodes from the result of JsonPath.- Returns:
SpinListlist of found nodes- Throws:
SpinJsonDataFormatException- if node value is not Array.
-
stringValue
java.lang.String stringValue()
Fetches the string value from the result of JsonPath.- Returns:
- String value of found node
- Throws:
SpinJsonDataFormatException- if node value is not String.
-
numberValue
java.lang.Number numberValue()
Fetches the number value from the result of JsonPath.- Returns:
- Number value of found node
- Throws:
SpinJsonDataFormatException- if node value is not Number.
-
boolValue
java.lang.Boolean boolValue()
Fetches the boolean value from the result of JsonPath.- Returns:
- Boolean value of found node
- Throws:
SpinJsonDataFormatException- if node value is not Boolean.
-
-