Class MoneyAdapter


  • public class MoneyAdapter
    extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​Money>
    Author:
    Fabrizio Giudici
    • Constructor Summary

      Constructors 
      Constructor Description
      MoneyAdapter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String marshal​(Money money)  
      Money unmarshal​(java.lang.String string)  
      • Methods inherited from class java.lang.Object

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

      • MoneyAdapter

        public MoneyAdapter()
    • Method Detail

      • unmarshal

        @Nonnull
        public Money unmarshal​(@Nonnull
                               java.lang.String string)
                        throws java.text.ParseException
        Specified by:
        unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​Money>
        Throws:
        java.text.ParseException
      • marshal

        @Nonnull
        public java.lang.String marshal​(@Nonnull
                                        Money money)
        Specified by:
        marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​Money>