ConfigurableFieldHandler
, FieldHandler
CenturyDescriptor.CenturyFieldHandler
, CollectionFieldHandler
, DateDescriptor.DateFieldHandler
, DateFieldHandler
, DateTimeDescriptor.DateTimeFieldHandler
, DurationDescriptor.DurationFieldHandler
, GDayDescriptor.GDayFieldHandler
, GMonthDayDescriptor.GMonthDayFieldHandler
, GMonthDescriptor.GMonthFieldHandler
, GYearDescriptor.GYearFieldHandler
, GYearMonthDescriptor.GYearMonthFieldHandler
, MonthDescriptor.MonthFieldHandler
, RecurringDurationDescriptor.RecurringDurationFieldHandler
, TimeDescriptor.TimeFieldHandler
, TimeDurationDescriptor.TimeDurationFieldHandler
, TimePeriodDescriptor.TimePeriodFieldHandler
, YearDescriptor.YearFieldHandler
public class XMLFieldHandler extends AbstractFieldHandler
A field handler knows how to perform various operations on the field that require access to the field value.
FieldDescriptor
_properties
Constructor | Description |
---|---|
XMLFieldHandler() |
Creates a new default XMLFieldHandler
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object obj) |
Returns true if the given object is an XMLFieldHandler that
is equivalent to this one.
|
java.lang.Object |
getValue(java.lang.Object object) |
Returns the value of the field from the object.
|
java.lang.Object |
newInstance(java.lang.Object parent) |
Creates a new instance of the object described by this field.
|
java.lang.Object |
newInstance(java.lang.Object parent,
java.lang.Object[] args) |
Creates a new instance of the object described by this field.
|
void |
resetValue(java.lang.Object object) |
Sets the value of the field to a default value.
|
void |
setValue(java.lang.Object object,
java.lang.Object value) |
Sets the value of the field on the object.
|
getFieldDescriptor, hasValue, setConfiguration, setFieldDescriptor
checkValidity
checkValidity
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.Object getValue(java.lang.Object object) throws java.lang.IllegalStateException
getValue
in interface FieldHandler
getValue
in class FieldHandlerFriend
object
- The objectjava.lang.IllegalStateException
- The Java object has changed and
is no longer supported by this handler, or the handler is not
compatiable with the Java objectpublic java.lang.Object newInstance(java.lang.Object parent) throws java.lang.IllegalStateException
newInstance
in interface FieldHandler
newInstance
in class FieldHandlerFriend
parent
- The object for which the field is createdjava.lang.IllegalStateException
- This field is a simple type and
cannot be instantiatedpublic java.lang.Object newInstance(java.lang.Object parent, java.lang.Object[] args) throws java.lang.IllegalStateException
newInstance
in class ExtendedFieldHandler
parent
- The object for which the field is createdargs
- the set of constructor argumentsjava.lang.IllegalStateException
- This field is a simple type and
cannot be instantiatedpublic void setValue(java.lang.Object object, java.lang.Object value) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
setValue
in interface FieldHandler
setValue
in class FieldHandlerFriend
object
- The object.value
- The new value.java.lang.IllegalStateException
- The Java object has changed and is no longer
supported by this handler, or the handler is not compatiable with the
Java object.java.lang.IllegalArgumentException
- The value passed is not of a supported type.public void resetValue(java.lang.Object object) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
FieldHandlerFriend
Reference fields are set to null, primitive fields are set to their default value, collection fields are emptied of all elements.
resetValue
in interface FieldHandler
resetValue
in class FieldHandlerFriend
object
- The objectjava.lang.IllegalStateException
- The Java object has changed and
is no longer supported by this handler, or the handler is not
compatiable with the Java objectjava.lang.IllegalArgumentException
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com