|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jsefa.common.converter.DateConverter
public class DateConverter
Converter for Date objects.
The format consists of one String describing the date format as required by SimpleDateFormat,e. g.
""dd.MM.yyyy".
It is thread-safe (the access to the non-thread-safe SimpleDateFormat is synchronized).
| Constructor Summary | |
|---|---|
protected |
DateConverter(SimpleTypeConverterConfiguration configuration)
Constructs a new DateConverter. |
| Method Summary | |
|---|---|
static DateConverter |
create(SimpleTypeConverterConfiguration configuration)
Constructs a DateConverter. |
Date |
fromString(String value)
Converts the given String object into an object with the simple data type this converter is
intended for. |
protected String |
getDefaultFormat()
Returns the default format which is used when no format is given. |
String |
toString(Object value)
Converts the given value to a String object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DateConverter(SimpleTypeConverterConfiguration configuration)
DateConverter.getDefaultFormat()) is used.
configuration - the configuration
ConversionException - if the given format is not valid.| Method Detail |
|---|
public static DateConverter create(SimpleTypeConverterConfiguration configuration)
DateConverter.getDefaultFormat()) is used.
configuration - the configuration
ConversionException - if the given format is not valid.public final Date fromString(String value)
String object into an object with the simple data type this converter is
intended for.
fromString in interface SimpleTypeConvertervalue - the String object to convert
public final String toString(Object value)
String object.
toString in interface SimpleTypeConvertervalue - the value to convert
protected String getDefaultFormat()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||