ConfigurableFieldHandler
, FieldHandler
public class EnumFieldHandler extends GeneralizedFieldHandler
_properties
Constructor | Description |
---|---|
EnumFieldHandler(java.lang.Class enumType,
FieldHandler handler,
java.lang.reflect.Method createMethod) |
Creates a new EnumFieldHandler with the given type and
FieldHandler
|
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.
|
boolean |
equals(java.lang.Object obj) |
Returns true if the given object is an XMLFieldHandler that
is equivalent to the delegated handler.
|
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.
|
java.lang.Object |
newInstance(java.lang.Object parent,
java.lang.Object[] args) |
Creates a new instance of the object described by this field.
|
getFieldDescriptor, hasValue, setConfiguration, setFieldDescriptor
checkValidity
checkValidity
getValue, resetValue, setCollectionIteration, setFieldHandler, setValue
public EnumFieldHandler(java.lang.Class enumType, FieldHandler handler, java.lang.reflect.Method createMethod)
enumType
- the Class type of the described fieldhandler
- the FieldHandler to delegate topublic java.lang.Object convertUponGet(java.lang.Object value)
GeneralizedFieldHandler
convertUponGet
in class GeneralizedFieldHandler
value
- the object value to convert after performing a get
operationGeneralizedFieldHandler.convertUponGet(java.lang.Object)
public java.lang.Object convertUponSet(java.lang.Object value) throws java.lang.IllegalStateException
GeneralizedFieldHandler
convertUponSet
in class GeneralizedFieldHandler
value
- the object value to convert before performing a set
operationjava.lang.IllegalStateException
GeneralizedFieldHandler.convertUponSet(java.lang.Object)
public java.lang.Class getFieldType()
GeneralizedFieldHandler
getFieldType
in class GeneralizedFieldHandler
GeneralizedFieldHandler.getFieldType()
public java.lang.Object newInstance(java.lang.Object parent) throws java.lang.IllegalStateException
GeneralizedFieldHandler
newInstance
in interface FieldHandler
newInstance
in class GeneralizedFieldHandler
parent
- The object for which the field is createdjava.lang.IllegalStateException
- This field is a simple type and
cannot be instantiatedFieldHandler.newInstance(java.lang.Object)
public java.lang.Object newInstance(java.lang.Object parent, java.lang.Object[] args) throws java.lang.IllegalStateException
GeneralizedFieldHandler
newInstance
in class GeneralizedFieldHandler
parent
- The object for which the field is createdargs
- the set of constructor argumentsjava.lang.IllegalStateException
- This field is a simple type and
cannot be instantiatedExtendedFieldHandler.newInstance(java.lang.Object,
java.lang.Object[])
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com