Class JacksonJsonPathQuery
java.lang.Object
org.camunda.spin.impl.json.jackson.query.JacksonJsonPathQuery
- All Implemented Interfaces:
SpinJsonPathQuery
- Author:
- Stefan Hentschel
-
Field Summary
Modifier and TypeFieldDescriptionprotected final JacksonJsonDataFormat
protected final com.jayway.jsonpath.JsonPath
protected final SpinJsonNode
-
Constructor Summary
ConstructorDescriptionJacksonJsonPathQuery
(JacksonJsonNode jacksonJsonNode, com.jayway.jsonpath.JsonPath query, JacksonJsonDataFormat dataFormat) -
Method Summary
Modifier and TypeMethodDescriptionFetches the boolean value from the result of JsonPath.element()
Fetches the node from the result of JsonPath.Fetches the list of nodes from the result of JsonPath.Fetches the number value from the result of JsonPath.Fetches the string value from the result of JsonPath.
-
Field Details
-
spinJsonNode
-
query
protected final com.jayway.jsonpath.JsonPath query -
dataFormat
-
-
Constructor Details
-
JacksonJsonPathQuery
public JacksonJsonPathQuery(JacksonJsonNode jacksonJsonNode, com.jayway.jsonpath.JsonPath query, JacksonJsonDataFormat dataFormat)
-
-
Method Details
-
element
Description copied from interface:SpinJsonPathQuery
Fetches the node from the result of JsonPath.- Specified by:
element
in interfaceSpinJsonPathQuery
- Returns:
SpinJsonNode
representation of the found node
-
elementList
Description copied from interface:SpinJsonPathQuery
Fetches the list of nodes from the result of JsonPath.- Specified by:
elementList
in interfaceSpinJsonPathQuery
- Returns:
SpinList
list of found nodes
-
stringValue
Description copied from interface:SpinJsonPathQuery
Fetches the string value from the result of JsonPath.- Specified by:
stringValue
in interfaceSpinJsonPathQuery
- Returns:
- String value of found node
-
numberValue
Description copied from interface:SpinJsonPathQuery
Fetches the number value from the result of JsonPath.- Specified by:
numberValue
in interfaceSpinJsonPathQuery
- Returns:
- Number value of found node
-
boolValue
Description copied from interface:SpinJsonPathQuery
Fetches the boolean value from the result of JsonPath.- Specified by:
boolValue
in interfaceSpinJsonPathQuery
- Returns:
- Boolean value of found node
-