org.camunda.bpm.engine.impl.core.variable.type
Class ObjectTypeImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.core.variable.type.AbstractValueTypeImpl
      extended by org.camunda.bpm.engine.impl.core.variable.type.ObjectTypeImpl
All Implemented Interfaces:
Serializable, SerializableValueType, ValueType

public class ObjectTypeImpl
extends AbstractValueTypeImpl
implements SerializableValueType

Author:
Daniel Meyer
See Also:
Serialized Form

Field Summary
static String TYPE_NAME
           
static String VALUE_INFO_OBJECT_TYPE_NAME
           
static String VALUE_INFO_SERIALIZATION_DATA_FORMAT
           
 
Fields inherited from class org.camunda.bpm.engine.impl.core.variable.type.AbstractValueTypeImpl
name
 
Fields inherited from interface org.camunda.bpm.engine.variable.type.ValueType
BOOLEAN, BYTES, DATE, DOUBLE, INTEGER, LONG, NULL, NUMBER, OBJECT, SHORT, STRING
 
Constructor Summary
ObjectTypeImpl()
           
 
Method Summary
protected  void applyValueInfo(ObjectValueBuilder builder, Map<String,Object> valueInfo)
           
 TypedValue createValue(Object value, Map<String,Object> valueInfo)
          Creates a new TypedValue using this type.
 SerializableValue createValueFromSerialized(String serializedValue, Map<String,Object> valueInfo)
          Creates a new TypedValue using this type.
 Map<String,Object> getValueInfo(TypedValue typedValue)
          Get the value info for a TypedValue.
 boolean isPrimitiveValueType()
          Indicates whether this type is primitive valued.
 
Methods inherited from class org.camunda.bpm.engine.impl.core.variable.type.AbstractValueTypeImpl
canConvertFromTypedValue, convertFromTypedValue, getName, getParent, isAbstract, toString, unsupportedConversion
 
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.type.ValueType
canConvertFromTypedValue, convertFromTypedValue, getName, getParent, isAbstract
 

Field Detail

VALUE_INFO_OBJECT_TYPE_NAME

public static final String VALUE_INFO_OBJECT_TYPE_NAME
See Also:
Constant Field Values

VALUE_INFO_SERIALIZATION_DATA_FORMAT

public static final String VALUE_INFO_SERIALIZATION_DATA_FORMAT
See Also:
Constant Field Values

TYPE_NAME

public static final String TYPE_NAME
See Also:
Constant Field Values
Constructor Detail

ObjectTypeImpl

public ObjectTypeImpl()
Method Detail

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 interface ValueType
Returns:
true if this is a primitive valued type. False otherwise

createValue

public TypedValue createValue(Object value,
                              Map<String,Object> valueInfo)
Description copied from interface: ValueType
Creates a new TypedValue using this type.

Specified by:
createValue in interface ValueType
Parameters:
value - the value
Returns:
the typed value for the value

getValueInfo

public Map<String,Object> getValueInfo(TypedValue typedValue)
Description copied from interface: ValueType
Get the value info for a TypedValue.

Specified by:
getValueInfo in interface ValueType
Returns:

createValueFromSerialized

public SerializableValue createValueFromSerialized(String serializedValue,
                                                   Map<String,Object> valueInfo)
Description copied from interface: SerializableValueType
Creates a new TypedValue using this type.

Specified by:
createValueFromSerialized in interface SerializableValueType
Parameters:
serializedValue - the value in serialized form
Returns:
the typed value for the value

applyValueInfo

protected void applyValueInfo(ObjectValueBuilder builder,
                              Map<String,Object> valueInfo)


Copyright © 2015 camunda services GmbH. All rights reserved.