ConfigurableFieldHandler, FieldHandlerpublic class ValueOfFieldHandler extends GeneralizedFieldHandler
FieldDescriptor,
FieldHandler_properties| Constructor | Description |
|---|---|
ValueOfFieldHandler(java.lang.Class type) |
Creates a new ValueOfFieldHandler.
|
| Modifier and Type | Method | Description |
|---|---|---|
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() |
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.
|
getFieldDescriptor, hasValue, setConfiguration, setFieldDescriptorcheckValiditycheckValiditygetValue, newInstance, resetValue, setCollectionIteration, setFieldHandler, setValuepublic ValueOfFieldHandler(java.lang.Class type)
throws MappingException
type - the class type to create the FieldHandler forMappingException - if the valueOf method cannot be foundpublic java.lang.Object convertUponGet(java.lang.Object value)
convertUponGet in class GeneralizedFieldHandlervalue - the object value to convert after performing a get operationpublic java.lang.Object convertUponSet(java.lang.Object value)
convertUponSet in class GeneralizedFieldHandlervalue - the object value to convert before performing a set
operationpublic java.lang.Class getFieldType()
getFieldType in class GeneralizedFieldHandlerpublic java.lang.Object newInstance(java.lang.Object parent)
throws java.lang.IllegalStateException
newInstance in interface FieldHandlernewInstance in class GeneralizedFieldHandlerparent - The object for which the field is createdjava.lang.IllegalStateException - This field is a simple type and cannot be
instantiatedIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com