- java.lang.Object
-
- jakarta.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.Month>
-
- io.github.threetenjaxb.core.MonthAsTextXmlAdapter
-
public class MonthAsTextXmlAdapter extends XmlAdapter<java.lang.String,java.time.Month>
XmlAdaptermapping JSR-310Monthto ISO proleptic month stringMonth string interpretation details (transformed to a string):
Month.of(int)Month.getValue()
This adapter is suitable for
xsd:gMonthtypes.- See Also:
XmlAdapter,Month
-
-
Constructor Summary
Constructors Constructor Description MonthAsTextXmlAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringmarshal(java.time.Month value)java.time.Monthunmarshal(java.lang.String stringValue)
-
-
-
Method Detail
-
unmarshal
public java.time.Month unmarshal(java.lang.String stringValue)
- Specified by:
unmarshalin classXmlAdapter<java.lang.String,java.time.Month>
-
marshal
public java.lang.String marshal(java.time.Month value)
- Specified by:
marshalin classXmlAdapter<java.lang.String,java.time.Month>
-
-