| Package | Description |
|---|---|
| com.holonplatform.core.beans | |
| com.holonplatform.core.property |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends PropertyValueConverter> |
Converter.BUILTIN.getConverter()
Get the
PropertyValueConverter class |
| Modifier and Type | Interface and Description |
|---|---|
interface |
CollectionPropertyValueConverter<TYPE,C extends Collection<TYPE>,MODEL>
A
PropertyValueConverter to handle Collection property and model type values. |
| Modifier and Type | Method and Description |
|---|---|
static <E extends Enum<E>> |
PropertyValueConverter.enumByName()
Create a
PropertyValueConverter which converts property values of given enum type into their
corresponding name String value and vice-versa. |
static <E extends Enum<E>> |
PropertyValueConverter.enumByOrdinal()
Create a
PropertyValueConverter which converts property values of given enum type into their
corresponding ordinal Integer value and vice-versa. |
static PropertyValueConverter<LocalDate,Date> |
PropertyValueConverter.localDate()
|
static PropertyValueConverter<LocalDateTime,Date> |
PropertyValueConverter.localDateTime()
|
static <N extends Number> |
PropertyValueConverter.numericBoolean(Class<N> modelType)
Create a numeric boolean
PropertyValueConverter which converts property values of numeric type
into boolean values using the following convention: null or 0 numeric values will be
converted as false boolean values, any other value will be converted as boolean true
value. |
| Modifier and Type | Method and Description |
|---|---|
Optional<PropertyValueConverter<T,?>> |
Property.getConverter()
Get the converter to perform property value conversions between property value and the corresponding data model
value.
|
| Modifier and Type | Method and Description |
|---|---|
B |
Property.Builder.converter(PropertyValueConverter<T,?> converter)
Sets the
PropertyValueConverter. |
<MODEL> B |
CollectionProperty.Builder.elementConverter(PropertyValueConverter<E,MODEL> elementConverter)
Configure a property value converter for the collection type property using the provided
PropertyValueConverter to perform the conversion operations for each collection element. |
Copyright © 2019 The Holon Platform. All rights reserved.