|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.core.variable.type.AbstractValueTypeImpl
public abstract class AbstractValueTypeImpl
| Field Summary | |
|---|---|
protected String |
name
|
| Fields inherited from interface org.camunda.bpm.engine.variable.type.ValueType |
|---|
BOOLEAN, BYTES, DATE, DOUBLE, INTEGER, LONG, NULL, NUMBER, OBJECT, SHORT, STRING |
| Constructor Summary | |
|---|---|
AbstractValueTypeImpl(String name)
|
|
| Method Summary | |
|---|---|
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. |
String |
getName()
Returns the name of the variable type |
ValueType |
getParent()
Gets the parent value type. |
boolean |
isAbstract()
Returns whether the value type is abstract. |
String |
toString()
|
protected ProcessEngineException |
unsupportedConversion(ValueType typeToConvertTo)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.camunda.bpm.engine.variable.type.ValueType |
|---|
createValue, getValueInfo, isPrimitiveValueType |
| Field Detail |
|---|
protected String name
| Constructor Detail |
|---|
public AbstractValueTypeImpl(String name)
| Method Detail |
|---|
public String getName()
ValueType
getName in interface ValueTypepublic String toString()
toString in class Objectpublic boolean isAbstract()
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.
isAbstract in interface ValueTypepublic ValueType getParent()
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()
returns true.
getParent in interface ValueTypepublic boolean canConvertFromTypedValue(TypedValue typedValue)
ValueType
canConvertFromTypedValue in interface ValueTypepublic TypedValue convertFromTypedValue(TypedValue typedValue)
ValueTypeValueType.canConvertFromTypedValue(TypedValue)
returns false.
convertFromTypedValue in interface ValueTypeprotected ProcessEngineException unsupportedConversion(ValueType typeToConvertTo)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||