Class ISO8601SqlTimestampConverter
java.lang.Object
com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
com.thoughtworks.xstream.converters.extended.ISO8601DateConverter
com.thoughtworks.xstream.converters.extended.ISO8601SqlTimestampConverter
- All Implemented Interfaces:
ConverterMatcher, SingleValueConverter
A SqlTimestampConverter conforming to the ISO8601 standard.
http://www.iso.ch/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=26780
- Since:
- 1.1.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvert(Class type) Determines whether the converter can marshall a particular type.fromString(String str) Unmarshals an Object from its single value representation.Marshals an Object into a single value representation.
-
Field Details
-
PADDING
- See Also:
-
-
Constructor Details
-
ISO8601SqlTimestampConverter
public ISO8601SqlTimestampConverter()
-
-
Method Details
-
canConvert
Description copied from interface:ConverterMatcherDetermines whether the converter can marshall a particular type.- Specified by:
canConvertin interfaceConverterMatcher- Overrides:
canConvertin classISO8601DateConverter- Parameters:
type- the Class representing the object type to be converted
-
fromString
Description copied from interface:SingleValueConverterUnmarshals an Object from its single value representation.- Specified by:
fromStringin interfaceSingleValueConverter- Overrides:
fromStringin classISO8601DateConverter- Parameters:
str- the String with the single value of the Object- Returns:
- the Object
-
toString
Description copied from interface:SingleValueConverterMarshals an Object into a single value representation.- Specified by:
toStringin interfaceSingleValueConverter- Overrides:
toStringin classISO8601DateConverter- Parameters:
obj- the Object to be converted- Returns:
- a String with the single value of the Object or
null
-