Interface DataType
-
- All Known Implementing Classes:
DefaultDataTypes
public interface DataType
Data type definition for aField
, and theInputDefinition
andOutputDefinition
of 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 DataType
extendFrom()
Returns the parent data type that this one extends from.java.lang.String
getCode()
Returns the unique code.default com.onwbp.base.text.UserMessage
getDescription()
Returns the description.com.onwbp.base.text.UserMessage
getLabel()
Returns the label.java.lang.Class<?>
getValueClass()
Returns the class of values that this data type represents.default boolean
isAssignableFrom(java.lang.Class<?> valueClass)
Returnstrue
if 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
null
by default.
-
extendFrom
default DataType extendFrom()
Returns the parent data type that this one extends from.Returns
null
by 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)
Returnstrue
if this data type's value class is assignable from the specified value class.- See Also:
getValueClass()
-
-