Interface ValueType
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
FileValueType,JsonValueType,PrimitiveValueType,SerializableValueType,SpinValueType,XmlValueType
- All Known Implementing Classes:
AbstractValueTypeImpl,FileValueTypeImpl,JsonTypeImpl,JsonValueTypeImpl,ObjectTypeImpl,PrimitiveValueTypeImpl,PrimitiveValueTypeImpl.BooleanTypeImpl,PrimitiveValueTypeImpl.BytesTypeImpl,PrimitiveValueTypeImpl.DateTypeImpl,PrimitiveValueTypeImpl.DoubleTypeImpl,PrimitiveValueTypeImpl.IntegerTypeImpl,PrimitiveValueTypeImpl.LongTypeImpl,PrimitiveValueTypeImpl.NullTypeImpl,PrimitiveValueTypeImpl.NumberTypeImpl,PrimitiveValueTypeImpl.ShortTypeImpl,PrimitiveValueTypeImpl.StringTypeImpl,SpinValueTypeImpl,XmlTypeImpl,XmlValueTypeImpl
- Since:
- 7.2
- Author:
- Thorben Lindhauer, Daniel Meyer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PrimitiveValueTypestatic final PrimitiveValueTypestatic final PrimitiveValueTypestatic final PrimitiveValueTypestatic final FileValueTypestatic final PrimitiveValueTypestatic final PrimitiveValueTypestatic final PrimitiveValueTypestatic final PrimitiveValueTypestatic final SerializableValueTypestatic final PrimitiveValueTypestatic final PrimitiveValueTypestatic final String -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvertFromTypedValue(TypedValue typedValue) Determines whether the argument typed value can be converted to a typed value of this value type.convertFromTypedValue(TypedValue typedValue) Converts a typed value to a typed value of this type.createValue(Object value, Map<String, Object> valueInfo) Creates a new TypedValue using this type.getName()Returns the name of the variable typeGets the parent value type.getValueInfo(TypedValue typedValue) Get the value info (meta data) for aTypedValue.booleanReturns whether the value type is abstract.booleanIndicates whether this type is primitive valued.
-
Field Details
-
NULL
-
BOOLEAN
-
SHORT
-
LONG
-
DOUBLE
-
STRING
-
INTEGER
-
DATE
-
BYTES
-
NUMBER
-
OBJECT
-
FILE
-
VALUE_INFO_TRANSIENT
- See Also:
-
-
Method Details
-
getName
String getName()Returns the name of the variable type -
isPrimitiveValueType
boolean isPrimitiveValueType()Indicates whether this type is primitive valued. Primitive valued types can be handled natively by the process engine.- Returns:
- true if this is a primitive valued type. False otherwise
-
getValueInfo
Get the value info (meta data) for aTypedValue. The keys of the returned map for aTypedValueare available as constants in the value'sValueTypeinterface.- Parameters:
typedValue-- Returns:
-
createValue
Creates a new TypedValue using this type.- Parameters:
value- the value- Returns:
- the typed value for the value
-
getParent
ValueType getParent()Gets the parent value type.
Value type hierarchy is only relevant for queries and has the following meaning: When a value query is made (e.g. all tasks with a certain variable value), a "child" type's value also matches a parameter value of the parent type. This is only supported when the parent value type's implementation of
isAbstract()returnstrue. -
canConvertFromTypedValue
Determines whether the argument typed value can be converted to a typed value of this value type. -
convertFromTypedValue
Converts a typed value to a typed value of this type. This does not suceed ifcanConvertFromTypedValue(TypedValue)returnsfalse. -
isAbstract
boolean isAbstract()Returns whether the value type is abstract. This is not related to the term abstract in the Java language.
Abstract value types cannot be used as types for variables but only used for querying.
-