Class PeriodAdapter


  • public class PeriodAdapter
    extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​org.joda.time.Period>
    Adapter to use Joda Period when marshalling XML.
    • Constructor Summary

      Constructors 
      Constructor Description
      PeriodAdapter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String marshal​(org.joda.time.Period period)  
      org.joda.time.Period unmarshal​(java.lang.String periodString)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PeriodAdapter

        public PeriodAdapter()
    • Method Detail

      • unmarshal

        @Nullable
        public org.joda.time.Period unmarshal​(@Nullable
                                              java.lang.String periodString)
        Specified by:
        unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​org.joda.time.Period>
      • marshal

        @Nullable
        public java.lang.String marshal​(@Nullable
                                        org.joda.time.Period period)
        Specified by:
        marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​org.joda.time.Period>