List of all members.
Public Member Functions |
| GMonthDayFieldHandler () |
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 |
Detailed Description
A specialized FieldHandler for the XML Schema TimeDuration related types
- Author:
- Arnaud Blandin
- Version:
- $Revision $ $Date $
Constructor & Destructor Documentation
org.exolab.castor.types.GMonthDayDescriptor.GMonthDayFieldHandler.GMonthDayFieldHandler |
( |
|
) |
|
Creates a new TimeFieldHandler
Member Function Documentation
void org.exolab.castor.types.GMonthDayDescriptor.GMonthDayFieldHandler.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.
- Parameters:
-
- Exceptions:
-
| 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.GMonthDayDescriptor.GMonthDayFieldHandler.getValue |
( |
Object |
target |
) |
throws java.lang.IllegalStateException [virtual] |
Returns the value of the field associated with this descriptor from the given target object.
- Parameters:
-
| target | the object to get the value from |
- Returns:
- the value of the field associated with this descriptor from the given target object.
Reimplemented from org.exolab.castor.xml.XMLFieldHandler.
Object org.exolab.castor.types.GMonthDayDescriptor.GMonthDayFieldHandler.newInstance |
( |
Object |
parent |
) |
throws IllegalStateException [virtual] |
Creates a new instance of the object described by this field.
- Parameters:
-
| parent | The object for which the field is created |
- Returns:
- A new instance of the field's value
- Exceptions:
-
| IllegalStateException | This field is a simple type and cannot be instantiated |
Reimplemented from org.exolab.castor.xml.XMLFieldHandler.
void org.exolab.castor.types.GMonthDayDescriptor.GMonthDayFieldHandler.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.
- Parameters:
-
- Exceptions:
-
| 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.GMonthDayDescriptor.GMonthDayFieldHandler.setValue |
( |
Object |
target, |
|
|
Object |
value | |
|
) |
| | throws java.lang.IllegalStateException [virtual] |
The documentation for this class was generated from the following file: