Package com.bc.ceres.binding.accessors
Class DefaultPropertyAccessor
- java.lang.Object
-
- com.bc.ceres.binding.accessors.DefaultPropertyAccessor
-
- All Implemented Interfaces:
PropertyAccessor
public class DefaultPropertyAccessor extends Object implements PropertyAccessor
A value accessor for values stored as plain Java object.
-
-
Constructor Summary
Constructors Constructor Description DefaultPropertyAccessor()Constructs a newDefaultValueAccessorwith anulldefault value.DefaultPropertyAccessor(Object value)Constructs a newDefaultValueAccessorwith anulldefault value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetValue()The strategy to get a value.voidsetValue(Object value)The strategy to set a value.
-
-
-
Constructor Detail
-
DefaultPropertyAccessor
public DefaultPropertyAccessor()
Constructs a newDefaultValueAccessorwith anulldefault value.
-
DefaultPropertyAccessor
public DefaultPropertyAccessor(Object value)
Constructs a newDefaultValueAccessorwith anulldefault value.- Parameters:
value- The initial value.
-
-
Method Detail
-
getValue
public Object getValue()
The strategy to get a value.- Specified by:
getValuein interfacePropertyAccessor- Returns:
- The value got.
-
setValue
public void setValue(Object value)
The strategy to set a value.- Specified by:
setValuein interfacePropertyAccessor- Parameters:
value- The value to be set.
-
-