Package com.bc.ceres.binding.accessors
Class ClassFieldAccessor
- java.lang.Object
-
- com.bc.ceres.binding.accessors.ClassFieldAccessor
-
- All Implemented Interfaces:
PropertyAccessor
public class ClassFieldAccessor extends Object implements PropertyAccessor
ValueAccessor for values stored in aField
of a plain Java object.
-
-
Constructor Summary
Constructors Constructor Description ClassFieldAccessor(Object instance, Field field)
Constructs a newClassFieldAccessor
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getValue()
The strategy to get a value.void
setValue(Object value)
The strategy to set a value.
-
-
-
Method Detail
-
getValue
public Object getValue()
The strategy to get a value.- Specified by:
getValue
in interfacePropertyAccessor
- Returns:
- The value got.
-
setValue
public void setValue(Object value)
The strategy to set a value.- Specified by:
setValue
in interfacePropertyAccessor
- Parameters:
value
- The value to be set.
-
-