org.exolab.castor.xml.handlers
public class CollectionFieldHandler extends XMLFieldHandler
Version: $Revision: 6230 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
Constructor Summary | |
---|---|
CollectionFieldHandler(FieldHandler fieldHandler)
Creates a new CollectionFieldHandler using the given
FieldHandler for delegation. | |
CollectionFieldHandler(FieldHandler fieldHandler, TypeValidator validator) |
Method Summary | |
---|---|
void | checkValidity(Object object)
Checks the field validity. |
boolean | equals(Object obj)
Returns true if the given object is an XMLFieldHandler that
is equivalent to the delegated handler. |
Object | getValue(Object target)
Gets the value of the field associated with this descriptor.
|
Object | newInstance(Object parent)
Creates a new instance of the object described by this field.
|
void | resetValue(Object target) |
void | setValue(Object target, Object value)
Sets the value of the field associated with this descriptor. |
Parameters: fieldHandler the fieldHandler for delegation.
Parameters: object The object
Throws: ValidityException The field is invalid, is required and null, or any other validity violation IllegalStateException The Java object has changed and is no longer supported by this handler, or the handler is not compatiable with the Java object
Returns: true if the given object is an XMLFieldHandler that is equivalent to this one.
Parameters: target the object from which to get the value
Parameters: parent The object for which the field is created
Returns: A new instance of the field's value
Throws: IllegalStateException This field is a simple type and cannot be instantiated
Parameters: target the object in which to set the value value the value of the field