|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
com.thoughtworks.xstream.converters.extended.DurationConverter
public class DurationConverter
A Converter for the XML Schema datatype duration and the Java type
Duration
.
Constructor Summary | |
---|---|
DurationConverter()
|
|
DurationConverter(javax.xml.datatype.DatatypeFactory factory)
|
Method Summary | |
---|---|
boolean |
canConvert(java.lang.Class c)
Determines whether the converter can marshall a particular type. |
java.lang.Object |
fromString(java.lang.String s)
Unmarshals an Object from its single value representation. |
Methods inherited from class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DurationConverter() throws javax.xml.datatype.DatatypeConfigurationException
javax.xml.datatype.DatatypeConfigurationException
public DurationConverter(javax.xml.datatype.DatatypeFactory factory)
Method Detail |
---|
public boolean canConvert(java.lang.Class c)
ConverterMatcher
canConvert
in interface ConverterMatcher
canConvert
in class AbstractSingleValueConverter
c
- the Class representing the object type to be convertedpublic java.lang.Object fromString(java.lang.String s)
SingleValueConverter
fromString
in interface SingleValueConverter
fromString
in class AbstractSingleValueConverter
s
- the String with the single value of the Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |