Package com.bc.ceres.binding.accessors
Class GetterSetterAccessor
- java.lang.Object
-
- com.bc.ceres.binding.accessors.GetterSetterAccessor
-
- All Implemented Interfaces:
PropertyAccessor
public class GetterSetterAccessor extends Object implements PropertyAccessor
ValueAccessor for values stored in aField
of a plain Java object.- Since:
- Ceres 0.14
-
-
Constructor Summary
Constructors Constructor Description GetterSetterAccessor(Object instance, Method getter, Method setter)
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.
-
-