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.
Version:
- Assaf Arkin
FieldDescriptor
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.
object
- The object
- The value of the field
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.
object
- The object
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