org.exolab.castor.xml
Class XMLFieldHandler
- FieldHandler
public class XMLFieldHandler
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.
$Revision: 6216 $ $Date: 2006-04-14 04:14:43 -0600 (Fri, 14 Apr 2006) $
boolean | equals(Object obj) - Returns true if the given object is an XMLFieldHandler that
is equivalent to this one.
|
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.
|
Object | newInstance(Object parent, Object[] args) - Creates a new instance of the object described by this field.
|
void | resetValue(Object object)
|
void | setValue(Object object, Object value) - Sets the value of the field on the object.
|
XMLFieldHandler
public XMLFieldHandler()
Creates a new default XMLFieldHandler
equals
public boolean 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.
- true if the given object is an XMLFieldHandler that
is equivalent to this one.
newInstance
public Object newInstance(Object parent)
throws IllegalStateException
Creates a new instance of the object described by this field.
- newInstance in interface FieldHandler
- newInstance in interface AbstractFieldHandler
parent
- The object for which the field is created
- A new instance of the field's value
newInstance
public Object newInstance(Object parent,
Object[] args)
throws IllegalStateException
Creates a new instance of the object described by this field.
- newInstance in interface AbstractFieldHandler
parent
- The object for which the field is createdargs
- the set of constructor arguments
- A new instance of the field's value
setValue
public void setValue(Object object,
Object value)
throws IllegalStateException,
IllegalArgumentException
Sets the value of the field on the object.
- setValue in interface FieldHandler
- setValue in interface AbstractFieldHandler
object
- The object.value
- The new value.
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com