Package com.bc.ceres.binding.converters
Class ArrayConverter
- java.lang.Object
- 
- com.bc.ceres.binding.converters.ArrayConverter
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringSEPARATORstatic StringSEPARATOR_ESC
 - 
Constructor SummaryConstructors Constructor Description ArrayConverter(Class<?> arrayType, Converter componentConverter)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(Object array)Converts a value of the type returned byConverter.getValueType()to its plain text representation.Class<?>getValueType()Gets the value type.Objectparse(String text)Converts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType().
 
- 
- 
- 
Field Detail- 
SEPARATORpublic static final String SEPARATOR - See Also:
- Constant Field Values
 
 - 
SEPARATOR_ESCpublic static final String SEPARATOR_ESC - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getValueTypepublic Class<?> getValueType() Description copied from interface:ConverterGets the value type.- Specified by:
- getValueTypein interface- Converter<Object>
- Returns:
- The value type.
 
 - 
parsepublic Object parse(String text) throws ConversionException 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 interface- Converter<Object>
- Parameters:
- text- The textual representation of the value.
- Returns:
- The converted value.
- Throws:
- ConversionException- If the conversion fails.
 
 - 
formatpublic String format(Object array) Description copied from interface:ConverterConverts a value of the type returned byConverter.getValueType()to its plain text representation.
 
- 
 
-