Package org.cyclos.model
Class AbstractBeanDataAccessor
- java.lang.Object
-
- org.cyclos.model.AbstractBeanDataAccessor
-
- All Implemented Interfaces:
Serializable,BeanDataAccessor
- Direct Known Subclasses:
MapBeanDataAccessor
public abstract class AbstractBeanDataAccessor extends Object implements BeanDataAccessor
Basic implementation forBeanDataAccessor- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractBeanDataAccessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ObjectdoGet(Property<?,?> property)Must be implemented to actually get a property valueprotected abstract ObjectdoSet(Property<?,?> property, Object value)Must be implemented to actually set a property value, returning the new representation of the value that was setObjectget(Property<?,?> property)Returns a property value for the current beanObjectset(Property<?,?> property, Object value)Sets a property value for the current bean, returning the new internal representation of the same value.
-
-
-
Method Detail
-
get
public final Object get(Property<?,?> property)
Description copied from interface:BeanDataAccessorReturns a property value for the current bean- Specified by:
getin interfaceBeanDataAccessor
-
set
public final Object set(Property<?,?> property, Object value)
Description copied from interface:BeanDataAccessorSets a property value for the current bean, returning the new internal representation of the same value. If external code relies on modifying the value being set, it must use the one returned, or there are no guarantees that the changes will be actually reflected.- Specified by:
setin interfaceBeanDataAccessor
-
doGet
protected abstract Object doGet(Property<?,?> property)
Must be implemented to actually get a property value
-
-