java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<Link.JaxbLink,Link>
jakarta.ws.rs.core.Link.JaxbAdapter
- Enclosing class:
- Link
@Deprecated
public static class Link.JaxbAdapter
extends jakarta.xml.bind.annotation.adapters.XmlAdapter<Link.JaxbLink,Link>
Deprecated.
An implementation of JAXB
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; } ... }Note that usage of this class requires the Jakarta XML Binding API and an implementation. The Jakarta RESTful Web Services implementation is not required to provide these dependencies.
- Since:
- 2.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Convert aLink
into aLink.JaxbLink
.Deprecated.Convert aLink.JaxbLink
into aLink
.
-
Constructor Details
-
JaxbAdapter
public JaxbAdapter()Deprecated.
-
-
Method Details
-
unmarshal
Deprecated.Convert aLink.JaxbLink
into aLink
.- Specified by:
unmarshal
in classjakarta.xml.bind.annotation.adapters.XmlAdapter<Link.JaxbLink,
Link> - Parameters:
v
- instance of typeLink.JaxbLink
.- Returns:
- mapped instance of type
Link.JaxbLink
-
marshal
Deprecated.Convert aLink
into aLink.JaxbLink
.- Specified by:
marshal
in classjakarta.xml.bind.annotation.adapters.XmlAdapter<Link.JaxbLink,
Link> - Parameters:
v
- instance of typeLink
.- Returns:
- mapped instance of type
Link.JaxbLink
.
-