org.camunda.bpm.engine.variable.value
Interface SerializableValue

All Superinterfaces:
Serializable, TypedValue
All Known Subinterfaces:
ObjectValue
All Known Implementing Classes:
ObjectValueImpl

public interface SerializableValue
extends TypedValue

A TypedValue for which a serialized value can be obtained and specified

Author:
Daniel Meyer

Method Summary
 String getSerializationDataFormat()
          The serialization format used to serialize this value.
 SerializableValueType getType()
          The type of the value.
 Object getValue()
          Returns the value or null in case the value is null.
 String getValueSerialized()
          Returns the serialized value.
 boolean isDeserialized()
          Returns true in case the value is deserialized.
 

Method Detail

isDeserialized

boolean isDeserialized()
Returns true in case the value is deserialized. If this method returns true, it is safe to call the getValue() method

Returns:
true if the object is deserialized.

getValue

Object getValue()
Returns the value or null in case the value is null.

Specified by:
getValue in interface TypedValue
Returns:
the value represented by this TypedValue.
Throws:
IllegalStateException - in case the value is not deserialized. See isDeserialized().

getValueSerialized

String getValueSerialized()
Returns the serialized value. In case the serializaton data format (as returned by getSerializationDataFormat()) is not text based, a base 64 encoded representation of the value is returned The serialized value is a snapshot of the state of the value as it is serialized to the process engine database.


getSerializationDataFormat

String getSerializationDataFormat()
The serialization format used to serialize this value.

Returns:
the serialization format used to serialize this variable.

getType

SerializableValueType getType()
Description copied from interface: TypedValue
The type of the value. See ValueType for a list of built-in ValueTypes.

Specified by:
getType in interface TypedValue
Returns:
the type of the value.


Copyright © 2015 camunda services GmbH. All rights reserved.