gov.nih.nci.system.client.util.xml
Class CastorDomainObjectFieldHandler
java.lang.Object
GeneralizedFieldHandler
gov.nih.nci.system.client.util.xml.BaseCastorFieldHandler
gov.nih.nci.system.client.util.xml.CastorDomainObjectFieldHandler
public class CastorDomainObjectFieldHandler
- extends BaseCastorFieldHandler
The FieldHandler for the Date class
Method Summary |
java.lang.Object |
convertUponGet(java.lang.Object value)
This method is used to convert the value when the
getValue method is called. |
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CastorDomainObjectFieldHandler
public CastorDomainObjectFieldHandler()
- Creates a new MyDateHandler instance
convertUponGet
public java.lang.Object convertUponGet(java.lang.Object value)
- This method is used to convert the value when the
getValue method is called. The getValue method will
obtain the actual field value from given 'parent' object.
This convert method is then invoked with the field's
value. The value returned from this method will be
the actual value returned by getValue method.
- Parameters:
value
- the object value to convert after
performing a get operation
- Returns:
- the converted 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()