Public Member Functions

org.exolab.castor.xml.XMLFieldHandler Class Reference

Inheritance diagram for 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 org.exolab.castor.types.CenturyDescriptor.CenturyFieldHandler org.exolab.castor.types.DateDescriptor.DateFieldHandler org.exolab.castor.types.DurationDescriptor.DurationFieldHandler org.exolab.castor.types.GDayDescriptor.GDayFieldHandler org.exolab.castor.types.GMonthDayDescriptor.GMonthDayFieldHandler org.exolab.castor.types.GMonthDescriptor.GMonthFieldHandler org.exolab.castor.types.GYearDescriptor.GYearFieldHandler org.exolab.castor.types.GYearMonthDescriptor.GYearMonthFieldHandler org.exolab.castor.types.MonthDescriptor.MonthFieldHandler org.exolab.castor.types.RecurringDurationDescriptor.RecurringDurationFieldHandler org.exolab.castor.types.TimeDescriptor.TimeFieldHandler org.exolab.castor.types.TimeDurationDescriptor.TimeDurationFieldHandler org.exolab.castor.types.TimePeriodDescriptor.TimePeriodFieldHandler org.exolab.castor.types.YearDescriptor.YearFieldHandler org.exolab.castor.xml.handlers.CollectionFieldHandler org.exolab.castor.xml.handlers.DateFieldHandler

List of all members.

Public Member Functions

 XMLFieldHandler ()
boolean equals (Object obj)
Object getValue (Object object) throws IllegalStateException
Object newInstance (Object parent) throws IllegalStateException
Object newInstance (Object parent, Object[] args) throws IllegalStateException
void setValue (Object object, Object value) throws IllegalStateException, IllegalArgumentException
void resetValue (Object object) throws IllegalStateException, IllegalArgumentException

Detailed Description

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.

Author:
Assaf Arkin
Keith Visco
Version:
Revision:
1.3
Date:
2003/09/23 21:16:41
See also:
org.exolab.castor.mapping.FieldDescriptor

Constructor & Destructor Documentation

org.exolab.castor.xml.XMLFieldHandler.XMLFieldHandler (  ) 

Creates a new default XMLFieldHandler


Member Function Documentation

boolean org.exolab.castor.xml.XMLFieldHandler.equals ( Object  obj  ) 

Returns true if the given object is an XMLFieldHandler that is equivalent to this one. An equivalent XMLFieldHandler is an XMLFieldHandler that is an instances of the same class. This method can be overwritten to provide more advanced equivalence tests.

Returns:
true if the given object is an XMLFieldHandler that is equivalent to this one.

Reimplemented in org.exolab.castor.xml.handlers.CollectionFieldHandler, and org.exolab.castor.xml.handlers.DateFieldHandler.

Object org.exolab.castor.xml.XMLFieldHandler.newInstance ( Object  parent,
Object[]  args 
) throws IllegalStateException [virtual]

Creates a new instance of the object described by this field.

Parameters:
parent The object for which the field is created
args the set of constructor arguments
Returns:
A new instance of the field's value
Exceptions:
IllegalStateException This field is a simple type and cannot be instantiated

Implements org.exolab.castor.mapping.AbstractFieldHandler.

References org.exolab.castor.xml.XMLFieldHandler.newInstance().

Object org.exolab.castor.xml.XMLFieldHandler.newInstance ( Object  parent  )  throws IllegalStateException [virtual]
void org.exolab.castor.xml.XMLFieldHandler.resetValue ( Object  object  )  throws IllegalStateException, IllegalArgumentException [virtual]
void org.exolab.castor.xml.XMLFieldHandler.setValue ( Object  object,
Object  value 
) throws IllegalStateException, IllegalArgumentException [virtual]

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