Class PeriodAdapter

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 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>