public class CalendarConverter extends DateConverter
DATE_CONTEXT, DATETIME_CONTEXT, TIME_CONTEXT| Constructor and Description |
|---|
CalendarConverter()
Creates a new CalendarConverter.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
fromString(String string,
ConverterContext context)
Converts from a String to a Calendar.
|
String |
toString(Object object,
ConverterContext context)
Converts the object to String.
|
getDefaultDatetimeFormat, getDefaultFormat, getDefaultTimeFormat, setDefaultDatetimeFormat, setDefaultFormat, setDefaultTimeFormat, supportFromString, supportToStringpublic String toString(Object object, ConverterContext context)
DateConvertertoString in interface ObjectConvertertoString in class DateConverterobject - the object to be convertedcontext - the converter context.public Object fromString(String string, ConverterContext context)
fromString in interface ObjectConverterfromString in class DateConverterstring - the string to be converted.context - the context. It could be DATETIME_CONTEXT, DATE_CONTEXT or TIME_CONTEXT.Copyright © 2017. All rights reserved.