Class AbstractValueTypeImpl
- java.lang.Object
-
- org.camunda.bpm.engine.variable.impl.type.AbstractValueTypeImpl
-
- All Implemented Interfaces:
java.io.Serializable
,ValueType
- Direct Known Subclasses:
FileValueTypeImpl
,ObjectTypeImpl
,PrimitiveValueTypeImpl
,SpinValueTypeImpl
public abstract class AbstractValueTypeImpl extends java.lang.Object implements ValueType
- Author:
- Thorben Lindhauer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractValueTypeImpl(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConvertFromTypedValue(TypedValue typedValue)
Determines whether the argument typed value can be converted to a typed value of this value type.TypedValue
convertFromTypedValue(TypedValue typedValue)
Converts a typed value to a typed value of this type.boolean
equals(java.lang.Object obj)
java.lang.String
getName()
Returns the name of the variable typeValueType
getParent()
Gets the parent value type.int
hashCode()
boolean
isAbstract()
Returns whether the value type is abstract.protected java.lang.Boolean
isTransient(java.util.Map<java.lang.String,java.lang.Object> valueInfo)
java.lang.String
toString()
protected java.lang.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
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:ValueType
Returns the name of the variable type
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
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
public ValueType 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
public boolean canConvertFromTypedValue(TypedValue typedValue)
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
public TypedValue convertFromTypedValue(TypedValue typedValue)
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
protected java.lang.IllegalArgumentException unsupportedConversion(ValueType typeToConvertTo)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
isTransient
protected java.lang.Boolean isTransient(java.util.Map<java.lang.String,java.lang.Object> valueInfo)
-
-