public class XmlDateTimeConverter extends Object implements SimpleTypeConverter
XmlDateTime
objects.It is thread safe.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FORMAT
The default format which is used when no format is explicitly given.
|
Modifier | Constructor and Description |
---|---|
protected |
XmlDateTimeConverter(SimpleTypeConverterConfiguration configuration)
Constructs a
XmlDateTimeConverter .If no format is given, the default format (see getDefaultFormat() ) is used. |
Modifier and Type | Method and Description |
---|---|
static XmlDateTimeConverter |
create(SimpleTypeConverterConfiguration configuration)
Constructs a
XmlDateTimeConverter .If no format is given, the default format (see getDefaultFormat() ) is used. |
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. |
public static final String DEFAULT_FORMAT
protected XmlDateTimeConverter(SimpleTypeConverterConfiguration configuration)
XmlDateTimeConverter
.getDefaultFormat()
) is used.configuration
- the configurationpublic static XmlDateTimeConverter create(SimpleTypeConverterConfiguration configuration)
XmlDateTimeConverter
.getDefaultFormat()
) is used.configuration
- the configurationpublic final Date fromString(String value)
String
object into an object with the simple data type this converter is
intended for.fromString
in interface SimpleTypeConverter
value
- the String
object to convertpublic final String toString(Object value)
String
object.toString
in interface SimpleTypeConverter
value
- the value to convertprotected String getDefaultFormat()
Copyright © 2014. All rights reserved.