Class JavaTypeConverter
java.lang.Object
com.bc.ceres.binding.converters.ClassConverter
org.esa.snap.core.util.converters.JavaTypeConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts a value of the type returned byConverter.getValueType()to its plain text representation.Gets the value type.Converts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType().Methods inherited from class com.bc.ceres.binding.converters.ClassConverter
addPackageQualifier
-
Constructor Details
-
JavaTypeConverter
public JavaTypeConverter()
-
-
Method Details
-
getValueType
Description copied from interface:ConverterGets the value type.- Specified by:
getValueTypein interfaceConverter<Class>- Overrides:
getValueTypein classClassConverter- Returns:
- The value type.
-
parse
Description copied from interface:ConverterConverts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType().- Specified by:
parsein interfaceConverter<Class>- Overrides:
parsein classClassConverter- Parameters:
text- The textual representation of the value.- Returns:
- The converted value.
- Throws:
ConversionException- If the conversion fails.
-
format
Description copied from interface:ConverterConverts a value of the type returned byConverter.getValueType()to its plain text representation.- Specified by:
formatin interfaceConverter<Class>- Overrides:
formatin classClassConverter- Parameters:
javaType- The value to be converted to text.- Returns:
- The textual representation of the value.
-