org.camunda.bpm.engine.impl.variable
Class PrimitiveVariableType

java.lang.Object
  extended by org.camunda.bpm.engine.impl.variable.PrimitiveVariableType
All Implemented Interfaces:
VariableType
Direct Known Subclasses:
BooleanType, ByteArrayType, DoubleType, IntegerType, LongType, NullType, ShortType, StringType

public abstract class PrimitiveVariableType
extends Object
implements VariableType

Primitive variable types do not differentiate between an object and a serialized representation, i.e. VariableType.getValue(ValueFields) and getSerializedValue(ValueFields) return the same values (or in the latter case wrapped). Similarly, VariableType.setValue(Object, ValueFields) and setValueFromSerialized(Object, Map, ValueFields) expect the same value argument and an empty or null configuration map in the latter case.

Author:
Thorben Lindhauer

Constructor Summary
PrimitiveVariableType()
           
 
Method Summary
 SerializedVariableValue getSerializedValue(ValueFields valueFields)
           
 boolean isAbleToStoreSerializedValue(Object value, Map<String,Object> configuration)
           
 void setValueFromSerialized(Object serializedValue, Map<String,Object> configuration, ValueFields valueFields)
           
 boolean storesCustomObjects()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.camunda.bpm.engine.impl.variable.VariableType
getTypeName, getTypeNameForValue, getValue, isAbleToStore, isCachable, setValue
 

Constructor Detail

PrimitiveVariableType

public PrimitiveVariableType()
Method Detail

getSerializedValue

public SerializedVariableValue getSerializedValue(ValueFields valueFields)
Specified by:
getSerializedValue in interface VariableType

setValueFromSerialized

public void setValueFromSerialized(Object serializedValue,
                                   Map<String,Object> configuration,
                                   ValueFields valueFields)
Specified by:
setValueFromSerialized in interface VariableType

isAbleToStoreSerializedValue

public boolean isAbleToStoreSerializedValue(Object value,
                                            Map<String,Object> configuration)
Specified by:
isAbleToStoreSerializedValue in interface VariableType

storesCustomObjects

public boolean storesCustomObjects()
Specified by:
storesCustomObjects in interface VariableType


Copyright © 2014 camunda services GmbH. All Rights Reserved.