gov.nih.nci.system.client.util.xml
Class CastorCollectionFieldHandler

java.lang.Object
  extended by GeneralizedFieldHandler
      extended by gov.nih.nci.system.client.util.xml.BaseCastorFieldHandler
          extended by gov.nih.nci.system.client.util.xml.CastorCollectionFieldHandler

public class CastorCollectionFieldHandler
extends BaseCastorFieldHandler

The FieldHandler for the Date class


Constructor Summary
CastorCollectionFieldHandler()
          Creates a new MyDateHandler instance
 
Method Summary
 java.lang.Object convertUponGet(java.lang.Object value)
           
 java.lang.Object convertUponSet(java.lang.Object value)
          This method is used to convert the value when the setValue method is called.
 java.lang.Class getFieldType()
          Returns the class type for the field that this GeneralizedFieldHandler converts to and from.
 java.lang.Object newInstance(java.lang.Object parent)
          Creates a new instance of the object described by this field.
 
Methods inherited from class gov.nih.nci.system.client.util.xml.BaseCastorFieldHandler
convertObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CastorCollectionFieldHandler

public CastorCollectionFieldHandler()
Creates a new MyDateHandler instance

Method Detail

convertUponGet

public java.lang.Object convertUponGet(java.lang.Object value)

convertUponSet

public java.lang.Object convertUponSet(java.lang.Object value)
This method is used to convert the value when the setValue method is called. The setValue method will call this method to obtain the converted value. The converted value will then be used as the value to set for the field.

Parameters:
value - the object value to convert before performing a set operation
Returns:
the converted value.

getFieldType

public java.lang.Class getFieldType()
Returns the class type for the field that this GeneralizedFieldHandler converts to and from. This should be the type that is used in the object model.

Returns:
the class type of the field

newInstance

public java.lang.Object newInstance(java.lang.Object parent)
                             throws java.lang.IllegalStateException
Creates a new instance of the object described by this field.

Parameters:
parent - The object for which the field is created
Returns:
A new instance of the field's value
Throws:
java.lang.IllegalStateException - This field is a simple type and cannot be instantiated