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
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
createChildObject
ScriptingJsonNode createChildObject(String fieldName)
-
createChildArray
ScriptingJsonNode createChildArray(String fieldName)
-
putString
ScriptingJsonNode putString(String fieldName, String value)
-
putInteger
ScriptingJsonNode putInteger(String fieldName, Number value)
-
putInt
ScriptingJsonNode putInt(String fieldName, int value)
-
putBoolean
ScriptingJsonNode putBoolean(String fieldName, Boolean value)
-
putShort
ScriptingJsonNode putShort(String fieldName, Number value)
-
putShort
ScriptingJsonNode putShort(String fieldName, short value)
-
putLong
ScriptingJsonNode putLong(String fieldName, Number value)
-
putLong
ScriptingJsonNode putLong(String fieldName, long value)
-
putDouble
ScriptingJsonNode putDouble(String fieldName, Number value)
-
putDouble
ScriptingJsonNode putDouble(String fieldName, double value)
-
putFloat
ScriptingJsonNode putFloat(String fieldName, Number value)
-
putFloat
ScriptingJsonNode putFloat(String fieldName, float value)
-
putObject
ScriptingJsonNode putObject(String fieldName, Object value)
-
putNull
ScriptingJsonNode putNull(String fieldName)
-
addString
ScriptingJsonNode addString(String value)
-
addInteger
ScriptingJsonNode addInteger(Number value)
-
addInt
ScriptingJsonNode addInt(int value)
-
addBoolean
ScriptingJsonNode addBoolean(Boolean value)
-
addShort
ScriptingJsonNode addShort(Number value)
-
addShort
ScriptingJsonNode addShort(short value)
-
addLong
ScriptingJsonNode addLong(Number value)
-
addLong
ScriptingJsonNode addLong(long value)
-
addDouble
ScriptingJsonNode addDouble(Number value)
-
addDouble
ScriptingJsonNode addDouble(double value)
-
addFloat
ScriptingJsonNode addFloat(Number value)
-
addFloat
ScriptingJsonNode addFloat(float value)
-
addObject
ScriptingJsonNode addObject(Object value)
-
addNull
ScriptingJsonNode addNull()
-
path
ScriptingJsonNode path(String path)
-
path
ScriptingJsonNode path(int index)
-
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()
-
-