Public Member Functions | |
| CenturyFieldHandler () | |
| Object | getValue (Object target) throws java.lang.IllegalStateException |
| void | setValue (Object target, Object value) throws java.lang.IllegalStateException |
| void | resetValue (Object target) throws java.lang.IllegalStateException |
| void | checkValidity (Object object) throws ValidityException, IllegalStateException |
| Object | newInstance (Object parent) throws IllegalStateException |
A specialized FieldHandler for the XML Schema Century related types
| org.exolab.castor.types.CenturyDescriptor.CenturyFieldHandler.CenturyFieldHandler | ( | ) |
Creates a new TimeFieldHandler
| void org.exolab.castor.types.CenturyDescriptor.CenturyFieldHandler.checkValidity | ( | Object | object | ) | throws ValidityException, IllegalStateException [virtual] |
Checks the field validity. Returns successfully if the field can be stored, is valid, etc, throws an exception otherwise.
| object | The object |
| ValidityException | The field is invalid, is required and null, or any other validity violation | |
| IllegalStateException | The Java object has changed and is no longer supported by this handler, or the handler is not compatiable with the Java object |
Reimplemented from org.exolab.castor.mapping.ExtendedFieldHandler.
| Object org.exolab.castor.types.CenturyDescriptor.CenturyFieldHandler.getValue | ( | Object | target | ) | throws java.lang.IllegalStateException [virtual] |
Returns the value of the field associated with this descriptor from the given target object.
| target | the object to get the value from |
Reimplemented from org.exolab.castor.xml.XMLFieldHandler.
References org.exolab.castor.types.Century.toString().
| Object org.exolab.castor.types.CenturyDescriptor.CenturyFieldHandler.newInstance | ( | Object | parent | ) | throws IllegalStateException [virtual] |
Creates a new instance of the object described by this field.
| parent | The object for which the field is created |
| IllegalStateException | This field is a simple type and cannot be instantiated |
Reimplemented from org.exolab.castor.xml.XMLFieldHandler.
| void org.exolab.castor.types.CenturyDescriptor.CenturyFieldHandler.resetValue | ( | Object | object | ) | throws java.lang.IllegalStateException [virtual] |
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.
| object | The object |
| IllegalStateException | The Java object has changed and is no longer supported by this handler, or the handler is not compatiable with the Java object |
Reimplemented from org.exolab.castor.xml.XMLFieldHandler.
| void org.exolab.castor.types.CenturyDescriptor.CenturyFieldHandler.setValue | ( | Object | target, | |
| Object | value | |||
| ) | throws java.lang.IllegalStateException [virtual] |
Sets the value of the field associated with this descriptor.
| target | the object in which to set the value | |
| value | the value of the field |
do something
Reimplemented from org.exolab.castor.xml.XMLFieldHandler.
References org.exolab.castor.types.RecurringDuration.getCentury(), and org.exolab.castor.types.RecurringDuration.setCentury().
1.7.0