public static enum Converter.BUILTIN extends Enum<Converter.BUILTIN>
PropertyValueConverters which can be used with Converter.builtin() attribute.| Enum Constant and Description |
|---|
ENUM_BY_NAME
|
ENUM_BY_ORDINAL
|
LOCALDATE
|
LOCALDATETIME
Builtin converter to convert
Date property values into LocalDateTimes and back. |
NONE
Placeholder to represent a value not setted for builtin converter.
|
NUMERIC_BOOLEAN
Builtin converter to treat a property as a numeric boolean (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends PropertyValueConverter> |
getConverter()
Get the
PropertyValueConverter class |
static Converter.BUILTIN |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Converter.BUILTIN[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Converter.BUILTIN NONE
public static final Converter.BUILTIN NUMERIC_BOOLEAN
null or
0 numeric values into Boolean.FALSE value and any other value into
Boolean.TRUE), expecting Integer type as model type. value.public static final Converter.BUILTIN ENUM_BY_ORDINAL
public static final Converter.BUILTIN ENUM_BY_NAME
public static final Converter.BUILTIN LOCALDATE
public static final Converter.BUILTIN LOCALDATETIME
Date property values into LocalDateTimes and back.public static Converter.BUILTIN[] values()
for (Converter.BUILTIN c : Converter.BUILTIN.values()) System.out.println(c);
public static Converter.BUILTIN valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Class<? extends PropertyValueConverter> getConverter()
PropertyValueConverter classCopyright © 2019 The Holon Platform. All rights reserved.