- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.ZoneId>
-
- io.github.threetenjaxb.core.ZoneIdXmlAdapter
-
public class ZoneIdXmlAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.ZoneId>
XmlAdapter
mapping JSR-310ZoneId
andZoneOffset
to the time-zone ID stringTime-zone ID format details:
ZoneId.of(java.lang.String)
ZoneId.getId()
- See Also:
XmlAdapter
,ZoneId
,ZoneOffset
-
-
Constructor Summary
Constructors Constructor Description ZoneIdXmlAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
marshal(java.time.ZoneId value)
java.time.ZoneId
unmarshal(java.lang.String stringValue)
-
-
-
Method Detail
-
unmarshal
public java.time.ZoneId unmarshal(java.lang.String stringValue)
- Specified by:
unmarshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.ZoneId>
-
marshal
public java.lang.String marshal(java.time.ZoneId value)
- Specified by:
marshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.ZoneId>
-
-