| Constructor and Description |
|---|
EnumConverter(Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
String |
format(T value)
Converts a value of the type returned by
Converter.getValueType() to its
plain text representation. |
Class<T> |
getValueType()
Gets the value type.
|
T |
parse(String text)
Converts a value from its plain text representation to a Java object instance
of the type returned by
Converter.getValueType(). |
public Class<T> getValueType()
ConvertergetValueType in interface Converter<T extends Enum<T>>public T parse(String text) throws ConversionException
ConverterConverter.getValueType().public String format(T value)
ConverterConverter.getValueType() to its
plain text representation.Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.