Class JacksonJsonPathQuery
java.lang.Object
org.camunda.spin.impl.json.jackson.query.JacksonJsonPathQuery
- All Implemented Interfaces:
SpinJsonPathQuery
- Author:
- Stefan Hentschel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JacksonJsonDataFormatprotected final com.jayway.jsonpath.JsonPathprotected final SpinJsonNode -
Constructor Summary
ConstructorsConstructorDescriptionJacksonJsonPathQuery(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:SpinJsonPathQueryFetches the node from the result of JsonPath.- Specified by:
elementin interfaceSpinJsonPathQuery- Returns:
SpinJsonNoderepresentation of the found node
-
elementList
Description copied from interface:SpinJsonPathQueryFetches the list of nodes from the result of JsonPath.- Specified by:
elementListin interfaceSpinJsonPathQuery- Returns:
SpinListlist of found nodes
-
stringValue
Description copied from interface:SpinJsonPathQueryFetches the string value from the result of JsonPath.- Specified by:
stringValuein interfaceSpinJsonPathQuery- Returns:
- String value of found node
-
numberValue
Description copied from interface:SpinJsonPathQueryFetches the number value from the result of JsonPath.- Specified by:
numberValuein interfaceSpinJsonPathQuery- Returns:
- Number value of found node
-
boolValue
Description copied from interface:SpinJsonPathQueryFetches the boolean value from the result of JsonPath.- Specified by:
boolValuein interfaceSpinJsonPathQuery- Returns:
- Boolean value of found node
-