public abstract class ConverterEnumValueTemplate extends ConverterEnumValue
| Modifier and Type | Field and Description |
|---|---|
protected Object[] |
template
Template parameters.
|
ARG_SIZE| Constructor and Description |
|---|
ConverterEnumValueTemplate(Class<? extends Enum<?>> type,
String lookupMethod,
String outputMethod)
Conversion of specific types.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object obj,
Object[] args)
Convert a given object to another using some arguments as auxiliary.
|
Object |
revert(Object obj,
Object[] args)
Revert a given object to another using some arguments as auxiliary.
|
convertDatarecoverType, recoverValueacceptinitializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptinitializeprotected Object[] template
public ConverterEnumValueTemplate(Class<? extends Enum<?>> type, String lookupMethod, String outputMethod)
type - The type.lookupMethod - The method to use on enumeration lookup.outputMethod - The method to use on enumeration output.public Object convert(Object obj, Object[] args) throws ConverterException
IConverterconvert in interface IConverterconvert in class ConverterEnumValueobj - The value to be converted.args - The arguments.ConverterException - On conversion errors.public Object revert(Object obj, Object[] args) throws ConverterException
IConverterReverserevert in interface IConverterReverserevert in class ConverterEnumValueobj - The value to be reverted.args - The arguments.ConverterException - On conversion errors.Copyright © 2016. All rights reserved.