| org.exolab.castor.mapping.FieldHandler
All known Subclasses: org.exolab.castor.mapping.loader.ExtendedFieldHandler, org.exolab.castor.mapping.loader.FieldHandlerFriend, org.exolab.castor.xml.handlers.ContainerFieldHandler, org.exolab.castor.xml.handlers.EnumFieldHandler,
FieldHandler | public interface FieldHandler (Code) | | A field handler knows how to perform various operations on the
field that require access to the field value.
author: Assaf Arkin version: $Revision: 6671 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $ See Also: FieldDescriptor |
getValue | public Object getValue(Object object) throws IllegalStateException(Code) | | Returns the value of the field from the object.
Parameters: object - The object The value of the field throws: IllegalStateException - The Java object has changed andis no longer supported by this handler, or the handler is notcompatible with the Java object |
newInstance | public Object newInstance(Object parent) throws IllegalStateException(Code) | | Creates a new instance of the object described by this field.
Parameters: parent - The object for which the field is created A new instance of the field's value throws: IllegalStateException - This field is a simple type andcannot be instantiated |
resetValue | public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException(Code) | | Sets the value of the field to a default value.
Reference fields are set to null, primitive fields are set to
their default value, collection fields are emptied of all
elements.
Parameters: object - The object. throws: IllegalStateException - The Java object has changed and is no longersupported by this handler, or the handler is not compatible with theJava object. |
|
|