org.exolab.castor.xml.handlers
public class ValueOfFieldHandler extends GeneralizedFieldHandler
Version: $Revision: 1.3 $ $Date: 2004/10/01 13:25:18 $
See Also: FieldDescriptor FieldHandler
Constructor Summary | |
---|---|
ValueOfFieldHandler(Class type)
Creates a new ValueOfFieldHandler
|
Method Summary | |
---|---|
Object | convertUponGet(Object value)
This method is used to convert the value when the getValue method
is called. |
Object | convertUponSet(Object value)
This method is used to convert the value when the setValue method
is called. |
Class | getFieldType()
Returns the class type for the field that this GeneralizedFieldHandler
converts to and from. |
Object | newInstance(Object parent)
Creates a new instance of the object described by this field.
|
Parameters: type the class type to create the FieldHandler for
Parameters: value the object value to convert after performing a get operation
Returns: the converted value.
Parameters: value the object value to convert before performing a set operation
Returns: the converted value.
Returns: the class type of of the field
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