ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286:

ohair@286: Defines annotations for customizing Java program elements to XML Schema mapping. ohair@286: ohair@286:

Package Specification

ohair@286:

The following table shows the JAXB mapping annotations ohair@286: that can be associated with each program element.

ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286:
Program ElementJAXB annotation
Package ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286:
XmlAccessorOrder
XmlAccessorType
XmlSchema
XmlSchemaType
XmlSchemaTypes
XmlJavaTypeAdapter
XmlJavaTypeAdapters
ohair@286:
Class ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286:
XmlAccessorOrder
XmlAccessorType
XmlInlineBinaryData
XmlRootElement
XmlType
XmlJavaTypeAdapter
ohair@286:
Enum type ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286:
XmlEnum
XmlEnumValue (enum constant only)
XmlRootElement
XmlType
XmlJavaTypeAdapter
ohair@286:
JavaBean Property/field ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286:
XmlElement
XmlElements
XmlElementRef
XmlElementRefs
XmlElementWrapper
XmlAnyElement
XmlAttribute
XmlAnyAttribute
XmlTransient
XmlValue
XmlID
XmlIDREF
XmlList
XmlMixed
XmlMimeType
XmlAttachmentRef
XmlInlineBinaryData
XmlElementDecl (only on method)
XmlJavaTypeAdapter
ohair@286:
Parameter ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286:
XmlList
XmlAttachmentRef
XmlMimeType
XmlJavaTypeAdapter
ohair@286:
ohair@286:

Terminology

ohair@286:

ohair@286: JavaBean property and field: For the purposes of ohair@286: mapping, there is no semantic difference between a field and ohair@286: a JavaBean property. Thus, an annotation that can be applied ohair@286: to a JavaBean property can always be applied to a ohair@286: field. Hence in the Javadoc documentation, for brevity, the ohair@286: term JavaBean property or property is used to mean either JavaBean ohair@286: property or a field. Where required, both are explicitly ohair@286: mentioned. ohair@286:

ohair@286: top level class: For the purpose of mapping, there is ohair@286: no semantic difference between a top level class and a ohair@286: static nested class. Thus, an annotation that can be applied ohair@286: to a top level class, can always be applied to a nested ohair@286: static class. Hence in the Javadoc documentation, for ohair@286: brevity, the term "top level class" or just class is used to ohair@286: mean either a top level class or a nested static ohair@286: class. ohair@286:

ohair@286: mapping annotation:A JAXB 2.0 defined program ohair@286: annotation based on the JSR 175 programming annotation ohair@286: facility. ohair@286:

Common Usage Constraints

ohair@286:

The following usage constraints are defined here since ohair@286: they apply to more than annotation: ohair@286:

ohair@286:

Notations

ohair@286: Namespace prefixes ohair@286:

The following namespace prefixes are used in the XML Schema ohair@286: fragments in this package.

ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286: ohair@286:
PrefixNamespaceNotes
xshttp://www.w3.org/2001/XMLSchemaNamespace of XML Schema namespace
refhttp://ws-i.org/profiles/basic/1.1/xsdNamespace for swaref schema component
xsihttp://www.w3.org/2001/XMLSchema-instanceXML Schema namespace for instances
ohair@286: ohair@286: ohair@286: @since JAXB 2.0 ohair@286: ohair@286: ohair@286: ohair@286: