Package org.eclnt.jsfserver.util
Interface IPropertyValueConverter
public interface IPropertyValueConverter
If the managed bean supports this interface then the expression
resolver will allow the bean to convert a certain property's value
before setting/putting it into the managed bean.
With CaptainCasa release 3.0 this interface was extended to now also cover the getting of property values.
With CaptainCasa release 3.0 this interface was extended to now also cover the getting of property values.
-
Method Summary
Modifier and TypeMethodDescriptionconvertObject
(int index, Object value) This is the conversion method for array operations, when SETTING array values.convertObject
(Object property, Object value) This is the conversion method for normal SET or PUT operations.convertObjectGet
(int index, Object value) Conversion method in order to update the value that just was received from an index base access.convertObjectGet
(Object property, Object value) Conversion method in order to update the value that just was received from a get-operation.
-
Method Details
-
convertObject
This is the conversion method for normal SET or PUT operations.- Parameters:
property
- Property name.value
- Value that is planned to be set.- Returns:
- Converted value.
-
convertObject
This is the conversion method for array operations, when SETTING array values.- Parameters:
index
- Array index of set-operation.value
- Value that is planned to be set.- Returns:
- Converted value.
-
convertObjectGet
Conversion method in order to update the value that just was received from a get-operation. The get is either done by an introspected get, or by a map-get call.- Parameters:
property
- Name of the property of the get-operation.value
- The value that just was retrieved.- Returns:
- Converted value.
-
convertObjectGet
Conversion method in order to update the value that just was received from an index base access.- Parameters:
index
- Index of the get-operation.value
- The value that just was retrieved.- Returns:
- Converted value.
-