public static class Link.JaxbAdapter extends XmlAdapter<Link.JaxbLink,Link>
XmlAdapter
that maps the JAX-RS 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; } ... }
Link.JaxbLink
Constructor and Description |
---|
Link.JaxbAdapter() |
Modifier and Type | Method and Description |
---|---|
Link.JaxbLink |
marshal(Link v)
Convert a
Link into a Link.JaxbLink . |
Link |
unmarshal(Link.JaxbLink v)
Convert a
Link.JaxbLink into a Link . |
public Link unmarshal(Link.JaxbLink v)
Link.JaxbLink
into a Link
.unmarshal
in class XmlAdapter<Link.JaxbLink,Link>
v
- instance of type Link.JaxbLink
.Link.JaxbLink
public Link.JaxbLink marshal(Link v)
Link
into a Link.JaxbLink
.marshal
in class XmlAdapter<Link.JaxbLink,Link>
v
- instance of type Link
.Link.JaxbLink
.Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.