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()
Converter
getValueType
in interface Converter<T extends Enum<T>>
public T parse(String text) throws ConversionException
Converter
Converter.getValueType()
.public String format(T value)
Converter
Converter.getValueType()
to its
plain text representation.Copyright © 2014–2016 European Space Agency (ESA). All rights reserved.