Class ObjectAdapter


  • public class ObjectAdapter
    extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Object,​java.lang.Object>
    Maps any object to itself. Useful for mapping interfaces.
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectAdapter()  
    • Method Summary

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

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

      • ObjectAdapter

        public ObjectAdapter()
    • Method Detail

      • marshal

        public java.lang.Object marshal​(java.lang.Object v)
                                 throws java.lang.Exception
        Specified by:
        marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Object,​java.lang.Object>
        Throws:
        java.lang.Exception
      • unmarshal

        public java.lang.Object unmarshal​(java.lang.Object v)
                                   throws java.lang.Exception
        Specified by:
        unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Object,​java.lang.Object>
        Throws:
        java.lang.Exception