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 newDefaultValueAccessor
with anull
default value.DefaultPropertyAccessor(Object value)
Constructs a newDefaultValueAccessor
with anull
default value.
-
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.
-
-
-
Constructor Detail
-
DefaultPropertyAccessor
public DefaultPropertyAccessor()
Constructs a newDefaultValueAccessor
with anull
default value.
-
DefaultPropertyAccessor
public DefaultPropertyAccessor(Object value)
Constructs a newDefaultValueAccessor
with anull
default value.- Parameters:
value
- The initial 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.
-
-