Interface DataType
- All Known Implementing Classes:
DefaultDataTypes
public interface DataType
Data type definition for a
Field
, and the InputDefinition
and OutputDefinition
of a TransformationDefinition
.- Since:
- 4.1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault DataType
Returns the parent data type that this one extends from.getCode()
Returns the unique code.default com.onwbp.base.text.UserMessage
Returns the description.com.onwbp.base.text.UserMessage
getLabel()
Returns the label.Class<?>
Returns the class of values that this data type represents.default boolean
isAssignableFrom
(Class<?> valueClass) Returnstrue
if this data type's value class is assignable from the specified value class.
-
Method Details
-
getCode
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
Returns the parent data type that this one extends from.Returns
null
by default.- Since:
- 4.3.0
-
getValueClass
Class<?> getValueClass()Returns the class of values that this data type represents.This helps validate data transformation.
-
isAssignableFrom
Returnstrue
if this data type's value class is assignable from the specified value class.- See Also:
-