Class SpinValueTypeImpl
- java.lang.Object
-
- org.camunda.bpm.engine.variable.impl.type.AbstractValueTypeImpl
-
- org.camunda.spin.plugin.variable.type.impl.SpinValueTypeImpl
-
- All Implemented Interfaces:
java.io.Serializable
,SerializableValueType
,ValueType
,SpinValueType
- Direct Known Subclasses:
JsonValueTypeImpl
,XmlValueTypeImpl
public abstract class SpinValueTypeImpl extends AbstractValueTypeImpl implements SpinValueType
- Author:
- Roman Smirnov
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.variable.impl.type.AbstractValueTypeImpl
name
-
Fields inherited from interface org.camunda.bpm.engine.variable.type.SerializableValueType
VALUE_INFO_OBJECT_TYPE_NAME
-
Fields inherited from interface org.camunda.spin.plugin.variable.type.SpinValueType
JSON, VALUE_INFO_SERIALIZATION_DATA_FORMAT, XML
-
-
Constructor Summary
Constructors Constructor Description SpinValueTypeImpl(java.lang.String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
applyValueInfo(SpinValueBuilder<?> builder, java.util.Map<java.lang.String,java.lang.Object> valueInfo)
TypedValue
createValue(java.lang.Object value, java.util.Map<java.lang.String,java.lang.Object> valueInfo)
Creates a new TypedValue using this type.protected abstract SpinValueBuilder<?>
createValue(SpinValue value)
protected abstract SpinValueBuilder<?>
createValueFromSerialized(java.lang.String value)
SerializableValue
createValueFromSerialized(java.lang.String serializedValue, java.util.Map<java.lang.String,java.lang.Object> valueInfo)
Creates a new TypedValue using this type.java.util.Map<java.lang.String,java.lang.Object>
getValueInfo(TypedValue typedValue)
Get the value info (meta data) for aTypedValue
.boolean
isPrimitiveValueType()
Indicates 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, unsupportedConversion
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.variable.type.ValueType
canConvertFromTypedValue, convertFromTypedValue, getName, getParent, isAbstract
-
-
-
-
Method Detail
-
createValue
public TypedValue createValue(java.lang.Object value, java.util.Map<java.lang.String,java.lang.Object> valueInfo)
Description copied from interface:ValueType
Creates a new TypedValue using this type.- Specified by:
createValue
in interfaceValueType
- Parameters:
value
- the value- Returns:
- the typed value for the value
-
createValueFromSerialized
public SerializableValue createValueFromSerialized(java.lang.String serializedValue, java.util.Map<java.lang.String,java.lang.Object> valueInfo)
Description copied from interface:SerializableValueType
Creates a new TypedValue using this type.- Specified by:
createValueFromSerialized
in interfaceSerializableValueType
- Parameters:
serializedValue
- the value in serialized form- Returns:
- the typed value for the value
-
isPrimitiveValueType
public boolean isPrimitiveValueType()
Description copied from interface:ValueType
Indicates whether this type is primitive valued. Primitive valued types can be handled natively by the process engine.- Specified by:
isPrimitiveValueType
in interfaceValueType
- Returns:
- true if this is a primitive valued type. False otherwise
-
getValueInfo
public java.util.Map<java.lang.String,java.lang.Object> getValueInfo(TypedValue typedValue)
Description copied from interface:ValueType
Get the value info (meta data) for aTypedValue
. The keys of the returned map for aTypedValue
are available as constants in the value'sValueType
interface.- Specified by:
getValueInfo
in interfaceValueType
- Returns:
-
applyValueInfo
protected void applyValueInfo(SpinValueBuilder<?> builder, java.util.Map<java.lang.String,java.lang.Object> valueInfo)
-
createValue
protected abstract SpinValueBuilder<?> createValue(SpinValue value)
-
createValueFromSerialized
protected abstract SpinValueBuilder<?> createValueFromSerialized(java.lang.String value)
-
-