java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<
String,
org.joda.time.Period>
google.registry.xml.PeriodAdapter
public class PeriodAdapter
extends jakarta.xml.bind.annotation.adapters.XmlAdapter<String,org.joda.time.Period>
Adapter to use Joda Period
when marshalling XML.
-
Constructor Summary
Constructors
-
Method Summary
marshal(org.joda.time.Period period)
org.joda.time.Period
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PeriodAdapter
public PeriodAdapter()
-
Method Details
-
unmarshal
@Nullable
public org.joda.time.Period unmarshal(@Nullable
String periodString)
- Specified by:
unmarshal
in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,org.joda.time.Period>
-
marshal
@Nullable
public String marshal(@Nullable
org.joda.time.Period period)
- Specified by:
marshal
in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,org.joda.time.Period>