Package org.jbpm.process.core.datatype
Interface DataType
-
- All Superinterfaces:
Externalizable,Serializable
- All Known Implementing Classes:
BooleanDataType,EnumDataType,FloatDataType,IntegerDataType,ListDataType,ObjectDataType,StringDataType,UndefinedDataType
public interface DataType extends Externalizable
Abstract representation of a datatype.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetStringType()Returns the corresponding Java type of this datatypeObjectreadValue(String value)default ObjectvalueOf(String value)Tries to convert string parameter to an object of this typebooleanverifyDataType(Object value)Returns true if the given value is a valid value of this data type.StringwriteValue(Object value)-
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
-
-
-
-
Method Detail
-
verifyDataType
boolean verifyDataType(Object value)
Returns true if the given value is a valid value of this data type.
-
getStringType
String getStringType()
Returns the corresponding Java type of this datatype
-
valueOf
default Object valueOf(String value)
Tries to convert string parameter to an object of this type- Parameters:
value- to be converted. For the sake of performance, it is assumed to not be null and not ofthisdata type.- Returns:
- object converted to this type, if not possible to convert, the same object passed as parameter
-
-