public class JavaTypeConverter extends ClassConverter
Constructor and Description |
---|
JavaTypeConverter() |
Modifier and Type | Method and Description |
---|---|
String |
format(Class javaType)
Converts a value of the type returned by
Converter.getValueType() to its
plain text representation. |
Class<Class> |
getValueType()
Gets the value type.
|
Class |
parse(String text)
Converts a value from its plain text representation to a Java object instance
of the type returned by
Converter.getValueType() . |
addPackageQualifier
public Class<Class> getValueType()
Converter
getValueType
in interface Converter<Class>
getValueType
in class ClassConverter
public Class parse(String text) throws ConversionException
Converter
Converter.getValueType()
.parse
in interface Converter<Class>
parse
in class ClassConverter
text
- The textual representation of the value.ConversionException
- If the conversion fails.public String format(Class javaType)
Converter
Converter.getValueType()
to its
plain text representation.format
in interface Converter<Class>
format
in class ClassConverter
javaType
- The value to be converted to text.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.