Class ChronologyConverter
java.lang.Object
com.thoughtworks.xstream.converters.time.ChronologyConverter
- All Implemented Interfaces:
ConverterMatcher, SingleValueConverter
Converts a
Chronology instance to a string using its id.- Since:
- 1.4.10
-
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.
-
Constructor Details
-
ChronologyConverter
public ChronologyConverter()
-
-
Method Details
-
canConvert
Description copied from interface:ConverterMatcherDetermines whether the converter can marshall a particular type.- Specified by:
canConvertin interfaceConverterMatcher- 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- 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- Parameters:
obj- the Object to be converted- Returns:
- a String with the single value of the Object or
null
-