Top Description Annotations Classes
[default module]

Package jakarta.xml.bind.annotation.adapters


jakarta.xml.bind.annotation.adapters.XmlAdapter and its spec-defined sub-classes to allow arbitrary Java classes to be used with Jakarta XML Binding.

References in this document to JAXB refer to the Jakarta XML Binding unless otherwise noted.

Package Specification

Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please see:
See Also
Jakarta XML Binding Website

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
XmlJavaTypeAdapter

Use an adapter that implements XmlAdapter for custom marshaling.

public @interface
XmlJavaTypeAdapters

A container for multiple @XmlJavaTypeAdapter annotations.

Class Summary

Modifier and TypeClass and Description
public class
CollapsedStringAdapter

Built-in XmlAdapter to handle xs:token and its derived types.

public class
HexBinaryAdapter

XmlAdapter for xs:hexBinary.

public class
NormalizedStringAdapter

XmlAdapter to handle xs:normalizedString.

public abstract class
XmlAdapter<
The type that Jakarta XML Binding knows how to handle out of the box.
ValueType
,
The type that Jakarta XML Binding doesn't know how to handle. An adapter is written to allow this type to be used as an in-memory representation through the ValueType.
BoundType
>

Adapts a Java type for custom marshaling.