Public Member Functions

org.exolab.castor.types.YearDescriptor.YearFieldHandler Class Reference

Inheritance diagram for org.exolab.castor.types.YearDescriptor.YearFieldHandler:
org.exolab.castor.xml.XMLFieldHandler org.exolab.castor.mapping.AbstractFieldHandler org.exolab.castor.mapping.ExtendedFieldHandler org.exolab.castor.mapping.loader.FieldHandlerFriend org.exolab.castor.mapping.FieldHandler

List of all members.

Public Member Functions

 YearFieldHandler ()
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 Year related types

Author:
Arnaud Blandin
Version:
Revision:
1.2
Date:
2003/04/23 06:35:24

Constructor & Destructor Documentation

org.exolab.castor.types.YearDescriptor.YearFieldHandler.YearFieldHandler (  ) 

Creates a new TimeFieldHandler


Member Function Documentation

void org.exolab.castor.types.YearDescriptor.YearFieldHandler.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:
object The object
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.YearDescriptor.YearFieldHandler.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.

References org.exolab.castor.types.Year.toString().

Object org.exolab.castor.types.YearDescriptor.YearFieldHandler.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.YearDescriptor.YearFieldHandler.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:
object The object
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.YearDescriptor.YearFieldHandler.setValue ( Object  target,
Object  value 
) throws java.lang.IllegalStateException [virtual]

Sets the value of the field associated with this descriptor.

Parameters:
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(), org.exolab.castor.types.RecurringDuration.getYear(), org.exolab.castor.types.RecurringDuration.setCentury(), and org.exolab.castor.types.RecurringDuration.setYear().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties