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