Interface TypedValueHandler<Type, ValueType>
- Type Parameters:
Type- The type of the property holderValueType- The type of the value returned
- All Superinterfaces:
ExpressionPropertyHandler<Type, ValueType>, PropertyHandler<Type>
@Experimental
public interface TypedValueHandler<Type, ValueType>
extends ExpressionPropertyHandler<Type, ValueType>
A handler for the `%classinfo% value of %property%` syntax
-
Method Summary
Modifier and TypeMethodDescriptionConverts the given object to the property value.default <Converted>
Converteddefault ValueTypeconvertChangeValue(Object value) This method can be used to convert change values to ValueType (or null)Methods inherited from interface ExpressionPropertyHandler
acceptChange, change, convert, possibleReturnTypes, requiresSourceExprChange, returnTypeMethods inherited from interface PropertyHandler
init, newInstance
-
Method Details
-
convert
Description copied from interface:ExpressionPropertyHandlerConverts the given object to the property value. This method may return arrays if the property is multi-valued. Callers should always preferExpressionPropertyHandler.convert(Event, Object).- Specified by:
convertin interfaceExpressionPropertyHandler<Type, ValueType>- Parameters:
propertyHolder- The object to convert.- Returns:
- This thing's value
-
convert
-
convertChangeValue
This method can be used to convert change values to ValueType (or null)- Parameters:
value- The (unchecked) new value- Throws:
UnsupportedOperationException
-