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