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:
The following table shows the JAXB mapping annotations ohair@286: that can be associated with each program element.
ohair@286: ohair@286:Program Element | ohair@286:JAXB annotation | ohair@286:|||||||||||||||||||
Package | ohair@286:
ohair@286:
|
ohair@286: |||||||||||||||||||
Class | ohair@286:
ohair@286:
|
ohair@286: |||||||||||||||||||
Enum type | ohair@286:
ohair@286:
|
ohair@286: |||||||||||||||||||
JavaBean Property/field | ohair@286:
ohair@286:
|
ohair@286: |||||||||||||||||||
Parameter | ohair@286:
ohair@286:
|
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:
The following usage constraints are defined here since ohair@286: they apply to more than annotation: ohair@286:
The following namespace prefixes are used in the XML Schema ohair@286: fragments in this package.
ohair@286: ohair@286:
Prefix | ohair@286:Namespace | ohair@286:Notes | ohair@286:
xs | ohair@286:http://www.w3.org/2001/XMLSchema | ohair@286:Namespace of XML Schema namespace | ohair@286:
ref | ohair@286:http://ws-i.org/profiles/basic/1.1/xsd | ohair@286:Namespace for swaref schema component | ohair@286:
xsi | ohair@286:http://www.w3.org/2001/XMLSchema-instance | ohair@286:XML Schema namespace for instances | ohair@286: