Package com.bc.ceres.binding.accessors
Class ClassFieldAccessor
java.lang.Object
com.bc.ceres.binding.accessors.ClassFieldAccessor
- All Implemented Interfaces:
PropertyAccessor
ValueAccessor for values stored in a
Field of a plain Java object.-
Constructor Summary
ConstructorsConstructorDescriptionClassFieldAccessor(Object instance, Field field) Constructs a newClassFieldAccessor. -
Method Summary
-
Constructor Details
-
ClassFieldAccessor
Constructs a newClassFieldAccessor.- Parameters:
instance- the plain Java objectfield- the field which holds the value
-
-
Method Details
-
getValue
The strategy to get a value.- Specified by:
getValuein interfacePropertyAccessor- Returns:
- The value got.
-
setValue
The strategy to set a value.- Specified by:
setValuein interfacePropertyAccessor- Parameters:
value- The value to be set.
-