Package com.bc.ceres.binding.converters
Class IntervalConverter
- java.lang.Object
- 
- com.bc.ceres.binding.converters.IntervalConverter
 
- 
- All Implemented Interfaces:
- Converter<ValueRange>
 
 public class IntervalConverter extends Object implements Converter<ValueRange> 
- 
- 
Constructor SummaryConstructors Constructor Description IntervalConverter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(ValueRange value)Converts a value of the type returned byConverter.getValueType()to its plain text representation.Class<ValueRange>getValueType()Gets the value type.ValueRangeparse(String text)Converts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType().
 
- 
- 
- 
Method Detail- 
getValueTypepublic Class<ValueRange> getValueType() Description copied from interface:ConverterGets the value type.- Specified by:
- getValueTypein interface- Converter<ValueRange>
- Returns:
- The value type.
 
 - 
parsepublic ValueRange 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<ValueRange>
- Parameters:
- text- The textual representation of the value.
- Returns:
- The converted value.
- Throws:
- ConversionException- If the conversion fails.
 
 - 
formatpublic String format(ValueRange value) Description copied from interface:ConverterConverts a value of the type returned byConverter.getValueType()to its plain text representation.- Specified by:
- formatin interface- Converter<ValueRange>
- Parameters:
- value- The value to be converted to text.
- Returns:
- The textual representation of the value.
 
 
- 
 
-