Class BooleanDatatype
java.lang.Object
io.jmix.core.metamodel.datatype.impl.BooleanDatatype
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts value to String.Converts value to String taking into account local formats.Parses value from Stringprotected Boolean
Parses value from String taking into account local formatsvoid
setMessages
(Messages messages) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.jmix.core.metamodel.datatype.Datatype
getId, getJavaClass
-
Field Details
-
formatStringsRegistry
-
messages
-
-
Constructor Details
-
BooleanDatatype
public BooleanDatatype()
-
-
Method Details
-
setMessages
-
format
Description copied from interface:Datatype
Converts value to String. Returns an empty string for null value. -
format
Description copied from interface:Datatype
Converts value to String taking into account local formats. Returns an empty string for null value. -
parse
@Nullable protected Boolean parse(@Nullable String value, String trueString, String falseString) throws ParseException - Throws:
ParseException
-
parse
Description copied from interface:Datatype
Parses value from String- Specified by:
parse
in interfaceDatatype<Boolean>
- Throws:
ParseException
-
parse
Description copied from interface:Datatype
Parses value from String taking into account local formats- Specified by:
parse
in interfaceDatatype<Boolean>
- Throws:
ParseException
-
toString
-