T
- Expression typepublic interface ConverterExpression<T> extends TypedExpression<T>
TypedExpression
which supports an optional ExpressionValueConverter
to perform expression type
conversion.Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>, Expression.InvalidExpressionException
Modifier and Type | Method and Description |
---|---|
Optional<ExpressionValueConverter<T,?>> |
getExpressionValueConverter()
Get the expression value type converter, if available.
|
default Class<?> |
getModelType()
Get the model expression type.
|
default Object |
getModelValue(T value)
Get the model data type value of given
value , using the ExpressionValueConverter to convert
the value, if available. |
getTemporalType, getType, isCollectionExpression, isConverterExpression
validate
Optional<ExpressionValueConverter<T,?>> getExpressionValueConverter()
ExpressionValueConverter
default Object getModelValue(T value)
value
, using the ExpressionValueConverter
to convert
the value, if available. If an ExpressionValueConverter
is not available, the provided value itself is
returned.value
- The expression valueExpressionValueConverter
is available, otherwise
provided value itself is returned.default Class<?> getModelType()
ExpressionValueConverter
is available, otherwise returns the
expression typeCopyright © 2019 The Holon Platform. All rights reserved.