public class ConverterEnum extends ConverterNotNullNotEmpty
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ARG_SIZE
Expected arguments size.
|
| Constructor and Description |
|---|
ConverterEnum() |
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object obj,
Object[] args)
Convert a given object to another using some arguments as auxiliary.
|
protected Object |
convertData(Object obj,
Object[] args) |
protected Class<? extends Enum<?>> |
recoverType(Object type) |
protected Object |
recoverValue(Object obj,
Object methodName,
Class<? extends Enum<?>> enumType) |
acceptinitializeprotected static final int ARG_SIZE
public Object convert(Object obj, Object[] args) throws ConverterException
IConverterconvert in interface IConverterconvert in class ConverterNotNullNotEmptyobj - The value to be converted.args - The arguments.ConverterException - On conversion errors.protected Object convertData(Object obj, Object[] args) throws ConverterException
ConverterExceptionprotected Class<? extends Enum<?>> recoverType(Object type) throws ConverterException
ConverterExceptionCopyright © 2016. All rights reserved.