Class SpinValueTypeImpl
java.lang.Object
org.camunda.bpm.engine.variable.impl.type.AbstractValueTypeImpl
org.camunda.spin.plugin.variable.type.impl.SpinValueTypeImpl
- All Implemented Interfaces:
Serializable,SerializableValueType,ValueType,SpinValueType
- Direct Known Subclasses:
JsonValueTypeImpl,XmlValueTypeImpl
- Author:
- Roman Smirnov
- See Also:
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.variable.impl.type.AbstractValueTypeImpl
nameFields inherited from interface org.camunda.bpm.engine.variable.type.SerializableValueType
VALUE_INFO_OBJECT_TYPE_NAMEFields inherited from interface org.camunda.spin.plugin.variable.type.SpinValueType
JSON, VALUE_INFO_SERIALIZATION_DATA_FORMAT, XML -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyValueInfo(SpinValueBuilder<?> builder, Map<String, Object> valueInfo) createValue(Object value, Map<String, Object> valueInfo) Creates a new TypedValue using this type.protected abstract SpinValueBuilder<?>createValue(SpinValue value) protected abstract SpinValueBuilder<?>createValueFromSerialized(String value) createValueFromSerialized(String serializedValue, Map<String, Object> valueInfo) Creates a new TypedValue using this type.getValueInfo(TypedValue typedValue) Get the value info (meta data) for aTypedValue.booleanIndicates whether this type is primitive valued.Methods inherited from class org.camunda.bpm.engine.variable.impl.type.AbstractValueTypeImpl
canConvertFromTypedValue, convertFromTypedValue, equals, getName, getParent, hashCode, isAbstract, isTransient, toString, unsupportedConversionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.variable.type.ValueType
canConvertFromTypedValue, convertFromTypedValue, getName, getParent, isAbstract
-
Constructor Details
-
SpinValueTypeImpl
-
-
Method Details
-
createValue
Description copied from interface:ValueTypeCreates a new TypedValue using this type.- Specified by:
createValuein interfaceValueType- Parameters:
value- the value- Returns:
- the typed value for the value
-
createValueFromSerialized
public SerializableValue createValueFromSerialized(String serializedValue, Map<String, Object> valueInfo) Description copied from interface:SerializableValueTypeCreates a new TypedValue using this type.- Specified by:
createValueFromSerializedin interfaceSerializableValueType- Parameters:
serializedValue- the value in serialized form- Returns:
- the typed value for the value
-
isPrimitiveValueType
public boolean isPrimitiveValueType()Description copied from interface:ValueTypeIndicates whether this type is primitive valued. Primitive valued types can be handled natively by the process engine.- Specified by:
isPrimitiveValueTypein interfaceValueType- Returns:
- true if this is a primitive valued type. False otherwise
-
getValueInfo
Description copied from interface:ValueTypeGet the value info (meta data) for aTypedValue. The keys of the returned map for aTypedValueare available as constants in the value'sValueTypeinterface.- Specified by:
getValueInfoin interfaceValueType- Returns:
-
applyValueInfo
-
createValue
-
createValueFromSerialized
-