|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.exolab.castor.mapping.loader.FieldHandlerFriend
org.exolab.castor.mapping.ExtendedFieldHandler
org.exolab.castor.mapping.AbstractFieldHandler
org.exolab.castor.xml.XMLFieldHandler
This FieldHandler is used in the generated descriptors.
A field handler knows how to perform various operations on the field that require access to the field value.
FieldDescriptor| Field Summary |
| Fields inherited from class org.exolab.castor.mapping.AbstractFieldHandler |
configuration |
| Constructor Summary | |
XMLFieldHandler()
Creates a new default XMLFieldHandler |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Returns true if the given object is an XMLFieldHandler that is equivalent to this one. |
java.lang.Object |
getValue(java.lang.Object object)
Returns the value of the field from the object. |
java.lang.Object |
newInstance(java.lang.Object parent)
Creates a new instance of the object described by this field. |
java.lang.Object |
newInstance(java.lang.Object parent,
java.lang.Object[] args)
Creates a new instance of the object described by this field. |
void |
resetValue(java.lang.Object object)
Sets the value of the field to a default value. |
void |
setValue(java.lang.Object object,
java.lang.Object value)
Sets the value of the field on the object. |
| Methods inherited from class org.exolab.castor.mapping.AbstractFieldHandler |
getFieldDescriptor, hasValue, setConfiguration, setFieldDescriptor |
| Methods inherited from class org.exolab.castor.mapping.ExtendedFieldHandler |
checkValidity |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.exolab.castor.mapping.FieldHandler |
checkValidity |
| Constructor Detail |
public XMLFieldHandler()
| Method Detail |
public boolean equals(java.lang.Object obj)
public java.lang.Object getValue(java.lang.Object object)
throws java.lang.IllegalStateException
getValue in interface FieldHandlergetValue in class AbstractFieldHandlerobject - The object
java.lang.IllegalStateException - The Java object has changed and
is no longer supported by this handler, or the handler is not
compatiable with the Java object
public java.lang.Object newInstance(java.lang.Object parent)
throws java.lang.IllegalStateException
newInstance in interface FieldHandlernewInstance in class AbstractFieldHandlerparent - The object for which the field is created
java.lang.IllegalStateException - This field is a simple type and
cannot be instantiated
public java.lang.Object newInstance(java.lang.Object parent,
java.lang.Object[] args)
throws java.lang.IllegalStateException
newInstance in class AbstractFieldHandlerparent - The object for which the field is createdargs - the set of constructor arguments
java.lang.IllegalStateException - This field is a simple type and
cannot be instantiated
public void setValue(java.lang.Object object,
java.lang.Object value)
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException
setValue in interface FieldHandlersetValue in class AbstractFieldHandlerobject - The object.value - The new value.
java.lang.IllegalStateException - The Java object has changed and is no longer
supported by this handler, or the handler is not compatiable with the
Java object.
java.lang.IllegalArgumentException - The value passed is not of a supported type.
public void resetValue(java.lang.Object object)
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException
AbstractFieldHandlerReference fields are set to null, primitive fields are set to their default value, collection fields are emptied of all elements.
resetValue in interface FieldHandlerresetValue in class AbstractFieldHandlerobject - The object
java.lang.IllegalStateException - The Java object has changed and
is no longer supported by this handler, or the handler is not
compatiable with the Java object
java.lang.IllegalArgumentException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||