TYPE - Expression typeMODEL - Model typepublic interface ExpressionValueConverter<TYPE,MODEL>
ConverterExpression.| Modifier and Type | Method and Description |
|---|---|
TYPE |
fromModel(MODEL value)
Convert given value from model data type to expression value type.
|
static <TYPE> Optional<ExpressionValueConverter<TYPE,?>> |
fromProperty(Property<TYPE> property)
Create a new
ExpressionValueConverter using given property. |
Class<MODEL> |
getModelType()
Get the model data type.
|
MODEL |
toModel(TYPE value)
Convert given value from expression value type to model data type.
|
TYPE fromModel(MODEL value)
value - Value to convertMODEL toModel(TYPE value)
value - Value to convertstatic <TYPE> Optional<ExpressionValueConverter<TYPE,?>> fromProperty(Property<TYPE> property)
ExpressionValueConverter using given property.TYPE - Expression typeproperty - Property (not null)PropertyValueConverter, return an ExpressionValueConverter
which uses the property value converter to perform conversions. Otherwise, an empty Optional is returned.Copyright © 2019 The Holon Platform. All rights reserved.