|
|||||||||||
| 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
org.exolab.castor.types.GDayDescriptor.GDayFieldHandler
A specialized FieldHandler for the XML Schema TimeDuration related types
| Field Summary |
| Fields inherited from class org.exolab.castor.mapping.AbstractFieldHandler |
configuration |
| Constructor Summary | |
GDayDescriptor.GDayFieldHandler()
Creates a new TimeFieldHandler |
|
| Method Summary | |
void |
checkValidity(java.lang.Object object)
Checks the field validity. |
java.lang.Object |
getValue(java.lang.Object target)
Returns the value of the field associated with this descriptor from the given target object. |
java.lang.Object |
newInstance(java.lang.Object parent)
Creates a new instance of the object described by this field. |
void |
resetValue(java.lang.Object target)
Sets the value of the field to a default value. |
void |
setValue(java.lang.Object target,
java.lang.Object value)
Sets the value of the field associated with this descriptor. |
| Methods inherited from class org.exolab.castor.xml.XMLFieldHandler |
equals, newInstance |
| Methods inherited from class org.exolab.castor.mapping.AbstractFieldHandler |
getFieldDescriptor, hasValue, setConfiguration, setFieldDescriptor |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GDayDescriptor.GDayFieldHandler()
| Method Detail |
public java.lang.Object getValue(java.lang.Object target)
throws java.lang.IllegalStateException
getValue in interface FieldHandlergetValue in class XMLFieldHandlertarget - the object to get the value from
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 void setValue(java.lang.Object target,
java.lang.Object value)
throws java.lang.IllegalStateException
setValue in interface FieldHandlersetValue in class XMLFieldHandlertarget - the object in which to set the valuevalue - the value of the field
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 void resetValue(java.lang.Object target)
throws java.lang.IllegalStateException
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 XMLFieldHandlerjava.lang.IllegalStateException
public void checkValidity(java.lang.Object object)
throws ValidityException,
java.lang.IllegalStateException
checkValidity in interface FieldHandlercheckValidity in class ExtendedFieldHandlerobject - The object
ValidityException - The field is invalid, is required and
null, or any other validity violation
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 XMLFieldHandlerparent - The object for which the field is created
java.lang.IllegalStateException - This field is a simple type and
cannot be instantiated
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||