- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.YearMonth>
-
- io.github.threetenjaxb.core.YearMonthXmlAdapter
-
public class YearMonthXmlAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.YearMonth>XmlAdaptermapping JSR-310YearMonthto a string such as 2007-12String format details:
YearMonth.parse(java.lang.CharSequence)YearMonth.toString()
- See Also:
XmlAdapter,YearMonth
-
-
Constructor Summary
Constructors Constructor Description YearMonthXmlAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringmarshal(java.time.YearMonth value)java.time.YearMonthunmarshal(java.lang.String stringValue)
-
-
-
Method Detail
-
unmarshal
public java.time.YearMonth unmarshal(java.lang.String stringValue)
- Specified by:
unmarshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.YearMonth>
-
marshal
public java.lang.String marshal(java.time.YearMonth value)
- Specified by:
marshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.YearMonth>
-
-