- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.Duration>
-
- io.github.threetenjaxb.core.DurationXmlAdapter
-
public class DurationXmlAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.Duration>
XmlAdapter
mapping JSR-310Duration
to ISO-8601 stringString format details:
Duration.parse(java.lang.CharSequence)
Duration.toString()
- See Also:
XmlAdapter
,Duration
-
-
Constructor Summary
Constructors Constructor Description DurationXmlAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
marshal(java.time.Duration value)
java.time.Duration
unmarshal(java.lang.String stringValue)
-
-
-
Method Detail
-
unmarshal
public java.time.Duration unmarshal(java.lang.String stringValue)
- Specified by:
unmarshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.Duration>
-
marshal
public java.lang.String marshal(java.time.Duration value)
- Specified by:
marshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.Duration>
-
-