Class JsonValueImpl
- java.lang.Object
-
- org.camunda.bpm.engine.variable.impl.value.AbstractTypedValue<org.camunda.spin.Spin<?>>
-
- org.camunda.spin.plugin.variable.value.impl.SpinValueImpl
-
- org.camunda.spin.plugin.variable.value.impl.JsonValueImpl
-
- All Implemented Interfaces:
java.io.Serializable
,SerializableValue
,TypedValue
,JsonValue
,SpinValue
public class JsonValueImpl extends SpinValueImpl implements JsonValue
- Author:
- Roman Smirnov
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.camunda.spin.plugin.variable.value.impl.SpinValueImpl
dataFormatName, isDeserialized, serializedValue
-
Fields inherited from class org.camunda.bpm.engine.variable.impl.value.AbstractTypedValue
isTransient, type, value
-
-
Constructor Summary
Constructors Constructor Description JsonValueImpl(java.lang.String value)
JsonValueImpl(java.lang.String value, java.lang.String dataFormatName)
JsonValueImpl(org.camunda.spin.json.SpinJsonNode value)
JsonValueImpl(org.camunda.spin.json.SpinJsonNode value, java.lang.String serializedValue, java.lang.String dataFormatName, boolean isDeserialized)
JsonValueImpl(org.camunda.spin.json.SpinJsonNode value, java.lang.String serializedValue, java.lang.String dataFormatName, boolean isDeserialized, boolean isTransient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.camunda.spin.spi.DataFormat<org.camunda.spin.json.SpinJsonNode>
getDataFormat()
JsonValueType
getType()
The type of the value.org.camunda.spin.json.SpinJsonNode
getValue()
The actual value.-
Methods inherited from class org.camunda.spin.plugin.variable.value.impl.SpinValueImpl
getSerializationDataFormat, getValueSerialized, isDeserialized, setSerializationDataFormat, setValueSerialized
-
Methods inherited from class org.camunda.bpm.engine.variable.impl.value.AbstractTypedValue
isTransient, setTransient, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.variable.value.SerializableValue
getSerializationDataFormat, getValueSerialized, isDeserialized
-
Methods inherited from interface org.camunda.bpm.engine.variable.value.TypedValue
isTransient
-
-
-
-
Constructor Detail
-
JsonValueImpl
public JsonValueImpl(java.lang.String value)
-
JsonValueImpl
public JsonValueImpl(org.camunda.spin.json.SpinJsonNode value)
-
JsonValueImpl
public JsonValueImpl(java.lang.String value, java.lang.String dataFormatName)
-
JsonValueImpl
public JsonValueImpl(org.camunda.spin.json.SpinJsonNode value, java.lang.String serializedValue, java.lang.String dataFormatName, boolean isDeserialized)
-
JsonValueImpl
public JsonValueImpl(org.camunda.spin.json.SpinJsonNode value, java.lang.String serializedValue, java.lang.String dataFormatName, boolean isDeserialized, boolean isTransient)
-
-
Method Detail
-
getDataFormat
public org.camunda.spin.spi.DataFormat<org.camunda.spin.json.SpinJsonNode> getDataFormat()
- Specified by:
getDataFormat
in interfaceJsonValue
- Specified by:
getDataFormat
in interfaceSpinValue
- Overrides:
getDataFormat
in classSpinValueImpl
-
getType
public JsonValueType getType()
Description copied from interface:TypedValue
The type of the value. See ValueType for a list of built-in ValueTypes.- Specified by:
getType
in interfaceJsonValue
- Specified by:
getType
in interfaceSerializableValue
- Specified by:
getType
in interfaceTypedValue
- Overrides:
getType
in classSpinValueImpl
- Returns:
- the type of the value.
-
getValue
public org.camunda.spin.json.SpinJsonNode getValue()
Description copied from interface:TypedValue
The actual value. May be null in case the value is null.- Specified by:
getValue
in interfaceJsonValue
- Specified by:
getValue
in interfaceSerializableValue
- Specified by:
getValue
in interfaceSpinValue
- Specified by:
getValue
in interfaceTypedValue
- Overrides:
getValue
in classSpinValueImpl
- Returns:
- the value
-
-