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 booleancanConvertFromTypedValue(TypedValue typedValue)Determines whether the argument typed value can be converted to a typed value of this value type.TypedValueconvertFromTypedValue(TypedValue typedValue)Converts a typed value to a typed value of this type.booleanequals(java.lang.Object obj)java.lang.StringgetName()Returns the name of the variable typeValueTypegetParent()Gets the parent value type.inthashCode()booleanisAbstract()Returns whether the value type is abstract.protected java.lang.BooleanisTransient(java.util.Map<java.lang.String,java.lang.Object> valueInfo)java.lang.StringtoString()protected java.lang.IllegalArgumentExceptionunsupportedConversion(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:ValueTypeReturns the name of the variable type
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isAbstract
public boolean isAbstract()
Description copied from interface:ValueTypeReturns 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:
isAbstractin interfaceValueType
-
getParent
public ValueType getParent()
Description copied from interface:ValueTypeGets 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:ValueTypeDetermines whether the argument typed value can be converted to a typed value of this value type.- Specified by:
canConvertFromTypedValuein interfaceValueType
-
convertFromTypedValue
public TypedValue convertFromTypedValue(TypedValue typedValue)
Description copied from interface:ValueTypeConverts a typed value to a typed value of this type. This does not suceed ifValueType.canConvertFromTypedValue(TypedValue)returnsfalse.- Specified by:
convertFromTypedValuein interfaceValueType
-
unsupportedConversion
protected java.lang.IllegalArgumentException unsupportedConversion(ValueType typeToConvertTo)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
isTransient
protected java.lang.Boolean isTransient(java.util.Map<java.lang.String,java.lang.Object> valueInfo)
-
-