public static class Link.JaxbAdapter extends XmlAdapter<Link.JaxbLink,Link>
An implementation of JAXB XmlAdapter
that maps the JAX-RS Link type to a value that can be
marshalled and unmarshalled by JAXB.
Link.JaxbLink| Constructor and Description |
|---|
Link.JaxbAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Link.JaxbLink |
marshal(Link v)
Convert a bound type to a value type.
|
Link |
unmarshal(Link.JaxbLink v)
Convert a value type to a bound type.
|
public Link unmarshal(Link.JaxbLink v) throws Exception
XmlAdapterunmarshal in class XmlAdapter<Link.JaxbLink,Link>v - The value to be converted. Can be null.Exception - if there's an error during the conversion. The caller is responsible for
reporting the error to the user through ValidationEventHandler.public Link.JaxbLink marshal(Link v) throws Exception
XmlAdaptermarshal in class XmlAdapter<Link.JaxbLink,Link>v - The value to be convereted. Can be null.Exception - if there's an error during the conversion. The caller is responsible for
reporting the error to the user through ValidationEventHandler.Copyright © 2013. All Rights Reserved.