org.riotfamily.components.model.wrapper
Class EntityWrapper
java.lang.Object
org.riotfamily.components.model.wrapper.ValueWrapper<Object>
org.riotfamily.components.model.wrapper.EntityWrapper
public class EntityWrapper
- extends ValueWrapper<Object>
EntityWrapper
public EntityWrapper()
deepCopy
public EntityWrapper deepCopy()
- Description copied from class:
ValueWrapper
- Creates a deep copy. Subclasses will usually just create a new wrapper
instance and and invoke
ValueWrapper.setValue(Object)
with the value returned
by ValueWrapper.getValue()
. Complex wrappers have to make sure that the
deepCopy method is invoked for all nested values too.
- Specified by:
deepCopy
in class ValueWrapper<Object>
getValue
public Object getValue()
- Description copied from class:
ValueWrapper
- Returns the value that is passed to the form element when the value
is edited. Subclasses will usually return the wrapped value, except for
complex wrappers (like
ListWrapper
and MapWrapper
) which
return a self-reference.
- Specified by:
getValue
in class ValueWrapper<Object>
setValue
public void setValue(Object entity)
- Specified by:
setValue
in class ValueWrapper<Object>