Converts an element (and its descendants) from/to DOM (or similar) representation.
Used by XmlAccessorOrder to control the ordering of properties and fields in a JAXB bound class.
XmlAccessTypeUsed by XmlAccessorType to control serialization of fields or properties.
XmlNsFormEnumeration of XML Schema namespace qualifications.
Controls the ordering of fields and properties in a class.
XmlAccessorTypeControls whether fields or Javabean properties are serialized by default.
XmlAnyAttributeMaps a JavaBean property to a map of wildcard attributes.
XmlAnyElementMaps a JavaBean property to XML infoset representation and/or JAXB element.
XmlAttachmentRefMarks a field/property that its XML form is a uri reference to mime content.
XmlAttributeMaps a JavaBean property to a XML attribute.
XmlElementMaps a JavaBean property to a XML element derived from property name.
XmlElementDeclMaps a factory method to a XML element.
XmlElementRefMaps a JavaBean property to a XML element derived from property's type.
XmlElementRefsMarks a property that refers to classes with
XmlElement
or JAXBElement.
XmlElementsA container for multiple @
XmlElement
annotations.
XmlElementWrapperGenerates a wrapper element around XML representation.
XmlEnumMaps an enum type
Enum
to XML representation.
XmlEnumValueMaps an enum constant in
Enum
type to XML representation.
XmlIDMaps a JavaBean property to XML ID.
XmlIDREFMaps a JavaBean property to XML IDREF.
XmlInlineBinaryDataDisable consideration of XOP encoding for datatypes that are bound to base64-encoded binary data in XML.
XmlListUsed to map a property to a list simple type.
XmlMimeTypeAssociates the MIME type that controls the XML representation of the property.
XmlMixedAnnotate a JavaBean multi-valued property to support mixed content.
XmlNsAssociates a namespace prefix with a XML namespace URI.
XmlRegistryMarks a class that has
XmlElementDecl
s.
XmlRootElementMaps a class or an enum type to an XML element.
XmlSchemaMaps a package name to a XML namespace.
XmlSchemaTypeMaps a Java type to a simple schema built-in type.
XmlSchemaTypesA container for multiple @
XmlSchemaType
annotations.
XmlSeeAlsoInstructs JAXB to also bind other classes when binding this class.
XmlTransientPrevents the mapping of a JavaBean property/type to XML representation.
XmlTypeMaps a class or an enum type to a XML Schema type.
XmlValueEnables mapping a class to a XML Schema complex type with a simpleContent or a XML Schema simple type.
Defines annotations for customizing Java program elements to XML Schema mapping.
Package SpecificationThe following table shows the JAXB mapping annotations that can be associated with each program element.
Program Element JAXB annotation Package Class Enum type JavaBean Property/field Parameter TerminologyJavaBean property and field: For the purposes of mapping, there is no semantic difference between a field and a JavaBean property. Thus, an annotation that can be applied to a JavaBean property can always be applied to a field. Hence in the Javadoc documentation, for brevity, the term JavaBean property or property is used to mean either JavaBean property or a field. Where required, both are explicitly mentioned.
top level class: For the purpose of mapping, there is no semantic difference between a top level class and a static nested class. Thus, an annotation that can be applied to a top level class, can always be applied to a nested static class. Hence in the Javadoc documentation, for brevity, the term "top level class" or just class is used to mean either a top level class or a nested static class.
mapping annotation:A JAXB 2.0 defined program annotation based on the JSR 175 programming annotation facility.
Common Usage ConstraintsThe following usage constraints are defined here since they apply to more than annotation:
The following namespace prefixes are used in the XML Schema fragments in this package.
Prefix Namespace Notes xs http://www.w3.org/2001/XMLSchema Namespace of XML Schema namespace ref http://ws-i.org/profiles/basic/1.1/xsd Namespace for swaref schema component xsi http://www.w3.org/2001/XMLSchema-instance XML Schema namespace for instances 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, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4