Interface DataType
-
- All Known Implementing Classes:
DefaultDataTypes
public interface DataTypeData type definition for aField, and theInputDefinitionandOutputDefinitionof aTransformationDefinition.- Since:
- 4.1.0
- See Also:
Field.getDataType(),InputDefinition.getType(),OutputDefinition.getType(),DefaultDataTypes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DataTypeextendFrom()Returns the parent data type that this one extends from.java.lang.StringgetCode()Returns the unique code.default com.onwbp.base.text.UserMessagegetDescription()Returns the description.com.onwbp.base.text.UserMessagegetLabel()Returns the label.java.lang.Class<?>getValueClass()Returns the class of values that this data type represents.default booleanisAssignableFrom(java.lang.Class<?> valueClass)Returnstrueif this data type's value class is assignable from the specified value class.
-
-
-
Method Detail
-
getCode
java.lang.String getCode()
Returns the unique code.
-
getLabel
com.onwbp.base.text.UserMessage getLabel()
Returns the label.
-
getDescription
default com.onwbp.base.text.UserMessage getDescription()
Returns the description.Returns
nullby default.
-
extendFrom
default DataType extendFrom()
Returns the parent data type that this one extends from.Returns
nullby default.- Since:
- 4.3.0
-
getValueClass
java.lang.Class<?> getValueClass()
Returns the class of values that this data type represents.This helps validate data transformation.
-
isAssignableFrom
default boolean isAssignableFrom(java.lang.Class<?> valueClass)
Returnstrueif this data type's value class is assignable from the specified value class.- See Also:
getValueClass()
-
-