public abstract class AbstractValueTypeImpl extends Object implements ValueType
| Constructor and Description |
|---|
AbstractValueTypeImpl(String name) |
| 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.
|
boolean |
equals(Object obj) |
String |
getName()
Returns the name of the variable type
|
ValueType |
getParent()
Gets the parent value type.
|
int |
hashCode() |
boolean |
isAbstract()
Returns whether the value type is abstract.
|
protected Boolean |
isTransient(Map<String,Object> valueInfo) |
String |
toString() |
protected IllegalArgumentException |
unsupportedConversion(ValueType typeToConvertTo) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateValue, getValueInfo, isPrimitiveValueTypeprotected String name
public AbstractValueTypeImpl(String name)
public String getName()
ValueTypepublic 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.
public boolean canConvertFromTypedValue(TypedValue typedValue)
ValueTypecanConvertFromTypedValue in interface ValueTypepublic TypedValue convertFromTypedValue(TypedValue typedValue)
ValueTypeValueType.canConvertFromTypedValue(TypedValue)
returns false.convertFromTypedValue in interface ValueTypeprotected IllegalArgumentException unsupportedConversion(ValueType typeToConvertTo)
Copyright © 2021. All rights reserved.