Class AbstractValueTypeImpl
java.lang.Object
org.camunda.bpm.engine.variable.impl.type.AbstractValueTypeImpl
- All Implemented Interfaces:
Serializable
,ValueType
- Direct Known Subclasses:
FileValueTypeImpl
,ObjectTypeImpl
,PrimitiveValueTypeImpl
,SpinValueTypeImpl
- Author:
- Thorben Lindhauer
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvertFromTypedValue
(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.boolean
getName()
Returns the name of the variable typeGets the parent value type.int
hashCode()
boolean
Returns whether the value type is abstract.protected Boolean
isTransient
(Map<String, Object> valueInfo) toString()
protected IllegalArgumentException
unsupportedConversion
(ValueType typeToConvertTo) 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
createValue, getValueInfo, isPrimitiveValueType
-
Field Details
-
name
-
-
Constructor Details
-
AbstractValueTypeImpl
-
-
Method Details
-
getName
Description copied from interface:ValueType
Returns the name of the variable type -
toString
-
isAbstract
public boolean isAbstract()Description copied from interface:ValueType
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.- Specified by:
isAbstract
in interfaceValueType
-
getParent
Description copied from interface:ValueType
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
ValueType.isAbstract()
returnstrue
. -
canConvertFromTypedValue
Description copied from interface:ValueType
Determines whether the argument typed value can be converted to a typed value of this value type.- Specified by:
canConvertFromTypedValue
in interfaceValueType
-
convertFromTypedValue
Description copied from interface:ValueType
Converts a typed value to a typed value of this type. This does not suceed ifValueType.canConvertFromTypedValue(TypedValue)
returnsfalse
.- Specified by:
convertFromTypedValue
in interfaceValueType
-
unsupportedConversion
-
hashCode
public int hashCode() -
equals
-
isTransient
-