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

public abstract class AbstractValueTypeImpl extends Object implements ValueType
Author:
Thorben Lindhauer
See Also:
  • Field Details

    • name

      protected String name
  • Constructor Details

    • AbstractValueTypeImpl

      public AbstractValueTypeImpl(String name)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: ValueType
      Returns the name of the variable type
      Specified by:
      getName in interface ValueType
    • toString

      public String toString()
      Overrides:
      toString in class 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 interface ValueType
    • 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() returns true.

      Specified by:
      getParent in interface ValueType
    • 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 interface ValueType
    • 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 if ValueType.canConvertFromTypedValue(TypedValue) returns false.
      Specified by:
      convertFromTypedValue in interface ValueType
    • unsupportedConversion

      protected IllegalArgumentException unsupportedConversion(ValueType typeToConvertTo)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • isTransient

      protected Boolean isTransient(Map<String,Object> valueInfo)