public class ToStringFieldHandler extends GeneralizedFieldHandler
_properties
Constructor and Description |
---|
ToStringFieldHandler(Class type)
Creates a new ToStringFieldHandler.
|
ToStringFieldHandler(Class type,
FieldHandler handler)
Creates a new ToStringFieldHandler.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getValue, newInstance, newInstance, resetValue, setCollectionIteration, setFieldHandler, setValue
getFieldDescriptor, hasValue, setConfiguration, setFieldDescriptor
checkValidity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkValidity
public ToStringFieldHandler(Class type)
type
- the class type to create the FieldHandler forpublic ToStringFieldHandler(Class type, FieldHandler handler)
type
- the class type to create the FieldHandler forhandler
- the FieldHandler to wrappublic Object convertUponGet(Object value)
convertUponGet
in class GeneralizedFieldHandler
value
- the object value to convert after performing a get
operationGeneralizedFieldHandler.convertUponGet(java.lang.Object)
public Object convertUponSet(Object value)
convertUponSet
in class GeneralizedFieldHandler
value
- the object value to convert before performing a set
operationGeneralizedFieldHandler.convertUponSet(java.lang.Object)
public Class getFieldType()
getFieldType
in class GeneralizedFieldHandler
GeneralizedFieldHandler.getFieldType()
Copyright © 2017. All rights reserved.