Constructor and Description |
---|
ClassConverter() |
ClassConverter(ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
String |
format(Class value)
Converts a value of the type returned by
getValueType() to its
plain text representation. |
Class<? extends 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
getValueType() . |
public ClassConverter()
public ClassConverter(ClassLoader classLoader)
public Class<? extends Class> getValueType()
getValueType
in interface Converter<Class>
public Class parse(String text) throws ConversionException
getValueType()
.parse
in interface Converter<Class>
text
- The textual representation of the value.ConversionException
- If the conversion fails.Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.