- java.lang.Object
-
- jakarta.xml.bind.annotation.adapters.XmlAdapter<java.lang.Integer,java.time.Month>
-
- io.github.threetenjaxb.core.MonthXmlAdapter
-
public class MonthXmlAdapter extends XmlAdapter<java.lang.Integer,java.time.Month>
XmlAdaptermapping JSR-310Monthto ISO proleptic month numberMonth number interpretation details:
Month.of(int)Month.getValue()
Be aware that using this adapter will yield
nullwhen unmarshallingxsd:gMonthtypes. UseMonthAsTextXmlAdapterinstead.- See Also:
XmlAdapter,Month
-
-
Constructor Summary
Constructors Constructor Description MonthXmlAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integermarshal(java.time.Month value)java.time.Monthunmarshal(java.lang.Integer intValue)
-
-
-
Method Detail
-
unmarshal
public java.time.Month unmarshal(java.lang.Integer intValue)
- Specified by:
unmarshalin classXmlAdapter<java.lang.Integer,java.time.Month>
-
marshal
public java.lang.Integer marshal(java.time.Month value)
- Specified by:
marshalin classXmlAdapter<java.lang.Integer,java.time.Month>
-
-