javax.xml.bind.annotation.adapters (Java Platform SE 8 )
Keywords: javax.xml.bind.annotation.adapters package
Date: 2020-03-26

# Package javax.xml.bind.annotation.adapters

`XmlAdapter` and its spec-defined sub-classes to allow arbitrary Java classes to be used with JAXB.

See: Description

- Class Summary
  Class | Description
  --- | ---
  CollapsedStringAdapter | Built-in `XmlAdapter` to handle `xs:token` and its derived types.
  HexBinaryAdapter | `XmlAdapter` for `xs:hexBinary`.
  NormalizedStringAdapter | `XmlAdapter` to handle `xs:normalizedString`.
  XmlAdapter<ValueType,BoundType> | Adapts a Java type for custom marshaling.
  XmlJavaTypeAdapter.DEFAULT | Used in `XmlJavaTypeAdapter.type()` to signal that the type be inferred from the signature of the field, property, parameter or the class.

- Annotation Types Summary
  Annotation Type | Description
  --- | ---
  XmlJavaTypeAdapter | Use an adapter that implements `XmlAdapter` for custom marshaling.
  XmlJavaTypeAdapters | A container for multiple @`XmlJavaTypeAdapter` annotations.

## Package javax.xml.bind.annotation.adapters Description

`XmlAdapter` and its spec-defined sub-classes to allow arbitrary Java classes to be used with JAXB.

## Package Specification

- JAXB Specification

## Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please see:

- The JAXB Website

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.