org.exolab.castor.mapping
Interface FieldHandler
- AbstractFieldHandler, CenturyDescriptor.CenturyFieldHandler, CollectionFieldHandler, ContainerFieldHandler, DateDescriptor.DateFieldHandler, DateFieldHandler, DurationDescriptor.DurationFieldHandler, EnumFieldHandler, ExtendedFieldHandler, ExtendedFieldHandler, FieldHandlerFriend, FieldHandlerImpl, GDayDescriptor.GDayFieldHandler, GeneralizedFieldHandler, GMonthDayDescriptor.GMonthDayFieldHandler, GMonthDescriptor.GMonthFieldHandler, GYearDescriptor.GYearFieldHandler, GYearMonthDescriptor.GYearMonthFieldHandler, MonthDescriptor.MonthFieldHandler, RecurringDurationDescriptor.RecurringDurationFieldHandler, TimeDescriptor.TimeFieldHandler, TimeDurationDescriptor.TimeDurationFieldHandler, TimePeriodDescriptor.TimePeriodFieldHandler, XMLFieldHandler, YearDescriptor.YearFieldHandler
public interface FieldHandler
A field handler knows how to perform various operations on the
field that require access to the field value.
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:26 $ void | checkValidity(Object object) - No longer supported
|
Object | getValue(Object object) - Returns the value of the field from the object.
|
Object | newInstance(Object parent) - Creates a new instance of the object described by this field.
|
void | resetValue(Object object) - Sets the value of the field to a default value.
|
void | setValue(Object object, Object value) - Sets the value of the field on the object.
|
checkValidity
public void checkValidity(Object object)
throws ValidityException,
IllegalStateException
No longer supported
getValue
public Object getValue(Object object)
throws IllegalStateException
Returns the value of the field from the object.
newInstance
public Object newInstance(Object parent)
throws IllegalStateException
Creates a new instance of the object described by this field.
parent
- The object for which the field is created
- A new instance of the field's value
resetValue
public void resetValue(Object object)
throws IllegalStateException,
IllegalArgumentException
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.
setValue
public void setValue(Object object,
Object value)
throws IllegalStateException,
IllegalArgumentException
Sets the value of the field on the object.
object
- The objectvalue
- The new value
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com