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:
getValue
in interfacePropertyAccessor
- Returns:
- The value got.
-
setValue
The strategy to set a value.- Specified by:
setValue
in interfacePropertyAccessor
- Parameters:
value
- The value to be set.
-