TypeConverter that maps an integer enum value to
an actual Java enum.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public T | fromNative(Object input, FromNativeContext context)
Implements com. |
| public Class | nativeType()
Implements com. |
| public Integer | toNative(Object input, ToNativeContext context)
Implements com. |
| clazz | back to summary |
|---|---|
| private final Class<T> clazz | |
| EnumConverter | back to summary |
|---|---|
public EnumConverter(Class<T> clazz)
| |
| fromNative | back to summary |
|---|---|
| public T fromNative(Object input, FromNativeContext context) Implements com. Doc from com. Convert the given native object into its Java representation using the given context.
| |
| nativeType | back to summary |
|---|---|
| public Class Implements com. Doc from com. Indicate the native type used by this converter.
| |
| toNative | back to summary |
|---|---|
| public Integer toNative(Object input, ToNativeContext context) Implements com. Doc from com. Convert a Java type to an appropriate native type. The new type must be one of the following classes:
| |