public static class Link.JaxbAdapter extends XmlAdapter<Link.JaxbLink,Link>
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; } ... }
Link.JaxbLink
Constructor | Description |
---|---|
JaxbAdapter() |
Modifier and Type | Method | 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 (c) 2019 Eclipse Foundation. Licensed under Eclipse Foundation Specification License.