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, wait
createValue, getValueInfo, isPrimitiveValueType
protected String name
public AbstractValueTypeImpl(String name)
public String getName()
ValueType
public boolean isAbstract()
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.isAbstract
in interface ValueType
public ValueType getParent()
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
.
public boolean canConvertFromTypedValue(TypedValue typedValue)
ValueType
canConvertFromTypedValue
in interface ValueType
public TypedValue convertFromTypedValue(TypedValue typedValue)
ValueType
ValueType.canConvertFromTypedValue(TypedValue)
returns false
.convertFromTypedValue
in interface ValueType
protected IllegalArgumentException unsupportedConversion(ValueType typeToConvertTo)
Copyright © 2022. All rights reserved.