Package io.jmix.core.metamodel.datatype
Interface Datatype<T>
- All Known Subinterfaces:
Enumeration<T>
- All Known Implementing Classes:
AbstractTemporalDatatype
,AdaptiveNumberDatatype
,BigDecimalDatatype
,BigIntegerDatatype
,BooleanDatatype
,ByteArrayDatatype
,CharacterDatatype
,DateDatatype
,DateTimeDatatype
,DoubleDatatype
,EnumerationImpl
,FileRefDatatype
,FloatDatatype
,IntegerDatatype
,LineStringDatatype
,LocalDateDatatype
,LocalDateTimeDatatype
,LocalTimeDatatype
,LongDatatype
,MultiLineStringDatatype
,MultiPointDatatype
,MultiPolygonDatatype
,OffsetDateTimeDatatype
,OffsetTimeDatatype
,PointDatatype
,PolygonDatatype
,ShortDatatype
,StringDatatype
,TimeDatatype
,UriDatatype
,UuidDatatype
public interface Datatype<T>
Represents a data type of an entity property.
-
Method Summary
Modifier and TypeMethodDescriptionConverts value to String.Converts value to String taking into account local formats.default String
getId()
Unique ID of the Datatype used for registrationdefault Class
Java class representing this DatatypeParses value from StringParses value from String taking into account local formats
-
Method Details
-
format
Converts value to String. Returns an empty string for null value. -
format
Converts value to String taking into account local formats. Returns an empty string for null value. -
parse
Parses value from String- Throws:
ParseException
-
parse
Parses value from String taking into account local formats- Throws:
ParseException
-
getId
Unique ID of the Datatype used for registration -
getJavaClass
Java class representing this Datatype
-