Interface ScriptingJsonNode
- All Superinterfaces:
Iterable<ScriptingJsonNode>,Supplier<com.fasterxml.jackson.databind.JsonNode>
- All Known Implementing Classes:
DataDictionaryVariablePrimitiveScriptingJsonNode,DataDictionaryVariableScriptingJsonNode,ScriptingJsonObject
public interface ScriptingJsonNode
extends Supplier<com.fasterxml.jackson.databind.JsonNode>, Iterable<ScriptingJsonNode>
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionaddBoolean(Boolean value) addDouble(double value) addFloat(float value) addInt(int value) addInteger(Number value) addLong(long value) addNull()addShort(short value) asDouble()asLong()asString()createChildArray(String fieldName) createChildObject(String fieldName) booleanisArray()booleanbooleanbooleanisNumber()booleanisObject()booleanbooleanisString()booleanisValue()path(int index) putBoolean(String fieldName, Boolean value) putInteger(String fieldName, Number value) intsize()Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
createChildObject
-
createChildArray
-
putString
-
putInteger
-
putInt
-
putBoolean
-
putShort
-
putShort
-
putLong
-
putLong
-
putDouble
-
putDouble
-
putFloat
-
putFloat
-
putObject
-
putNull
-
addString
-
addInteger
-
addInt
-
addBoolean
-
addShort
-
addShort
-
addLong
-
addLong
-
addDouble
-
addDouble
-
addFloat
-
addFloat
-
addObject
-
addNull
ScriptingJsonNode addNull() -
path
-
path
-
asInteger
Integer asInteger()- Returns:
- this value as integer in case it is a numeric value.
- Throws:
FlowableException- when this node is empty or null, not a number or exceeds integer range.
-
asLong
Long asLong()- Returns:
- this number value as long.
- Throws:
FlowableException- when this node is empty or null or not a number.
-
asBoolean
Boolean asBoolean()- Returns:
- this value as boolean.
- Throws:
FlowableException- when this node is empty or null or not a boolean.
-
asDouble
Double asDouble()- Returns:
- this number value as double.
- Throws:
FlowableException- when this node is empty or null or not a number.
-
asString
String asString()- Returns:
- a string representation of this node, if this node is a value node (
isValue()returns true). - Throws:
FlowableException- when this node is not a value node.
-
size
int size()- Returns:
- the number of elements for this object (array length for array objects or number of attributes for objects).
-
fieldNames
Collection<String> fieldNames()- Returns:
- collection of the field names .
-
isValue
boolean isValue()- Returns:
- true if this object is a value object.
-
isArray
boolean isArray()- Returns:
- true if this object is an array object.
-
isObject
boolean isObject()- Returns:
- true if this object is an object.
-
isString
boolean isString()- Returns:
- true if this object is a string
-
isNumber
boolean isNumber()- Returns:
- true if this object is a number
-
isBoolean
boolean isBoolean()- Returns:
- true if this object is a boolean
-
isNonNull
boolean isNonNull() -
isPresent
boolean isPresent()
-