public interface ValueType extends Serializable
Modifier and Type | Field and Description |
---|---|
static PrimitiveValueType |
BOOLEAN |
static PrimitiveValueType |
BYTES |
static PrimitiveValueType |
DATE |
static PrimitiveValueType |
DOUBLE |
static PrimitiveValueType |
INTEGER |
static PrimitiveValueType |
LONG |
static PrimitiveValueType |
NULL |
static PrimitiveValueType |
NUMBER |
static SerializableValueType |
OBJECT |
static PrimitiveValueType |
SHORT |
static PrimitiveValueType |
STRING |
Modifier and Type | Method and 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.
|
TypedValue |
createValue(Object value,
Map<String,Object> valueInfo)
Creates a new TypedValue using this type.
|
String |
getName()
Returns the name of the variable type
|
ValueType |
getParent()
Gets the parent value type.
|
Map<String,Object> |
getValueInfo(TypedValue typedValue)
Get the value info for a
TypedValue . |
boolean |
isAbstract()
Returns whether the value type is abstract.
|
boolean |
isPrimitiveValueType()
Indicates whether this type is primitive valued.
|
static final PrimitiveValueType NULL
static final PrimitiveValueType BOOLEAN
static final PrimitiveValueType SHORT
static final PrimitiveValueType LONG
static final PrimitiveValueType DOUBLE
static final PrimitiveValueType STRING
static final PrimitiveValueType INTEGER
static final PrimitiveValueType DATE
static final PrimitiveValueType BYTES
static final PrimitiveValueType NUMBER
static final SerializableValueType OBJECT
String getName()
boolean isPrimitiveValueType()
Map<String,Object> getValueInfo(TypedValue typedValue)
TypedValue
.typedValue
- TypedValue createValue(Object value, Map<String,Object> valueInfo)
value
- the valueValueType getParent()
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 isAbstract()
returns true
.
boolean canConvertFromTypedValue(TypedValue typedValue)
TypedValue convertFromTypedValue(TypedValue typedValue)
canConvertFromTypedValue(TypedValue)
returns false
.boolean isAbstract()
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.Copyright © 2018. All rights reserved.