Class Link.JaxbAdapter

  • Enclosing class:
    Link

    public static class Link.JaxbAdapter
    extends XmlAdapter<Link.JaxbLink,​Link>
    An implementation of JAXB XmlAdapter that maps the Link type to a value that can be marshalled and unmarshalled by JAXB. The following example shows how to use this adapter on a JAXB bean class:
     @XmlRootElement
     public class MyModel {
    
       private Link link;
    
       @XmlElement(name="link")
       @XmlJavaTypeAdapter(JaxbAdapter.class)
       public Link getLink() {
         return link;
       }
       ...
     }
     
    Since:
    2.0
    See Also:
    Link.JaxbLink