aoqi@0: aoqi@0: aoqi@0: aoqi@0: aoqi@0:
aoqi@0: aoqi@0: aoqi@0: aoqi@0: aoqi@0: aoqi@0: aoqi@0:aoqi@0: Defines annotations for customizing Java program elements to XML Schema mapping. aoqi@0: aoqi@0:
The following table shows the JAXB mapping annotations aoqi@0: that can be associated with each program element.
aoqi@0: aoqi@0:Program Element | aoqi@0:JAXB annotation | aoqi@0:|||||||||||||||||||
Package | aoqi@0:
aoqi@0:
|
aoqi@0: |||||||||||||||||||
Class | aoqi@0:
aoqi@0:
|
aoqi@0: |||||||||||||||||||
Enum type | aoqi@0:
aoqi@0:
|
aoqi@0: |||||||||||||||||||
JavaBean Property/field | aoqi@0:
aoqi@0:
|
aoqi@0: |||||||||||||||||||
Parameter | aoqi@0:
aoqi@0:
|
aoqi@0:
aoqi@0: JavaBean property and field: For the purposes of aoqi@0: mapping, there is no semantic difference between a field and aoqi@0: a JavaBean property. Thus, an annotation that can be applied aoqi@0: to a JavaBean property can always be applied to a aoqi@0: field. Hence in the Javadoc documentation, for brevity, the aoqi@0: term JavaBean property or property is used to mean either JavaBean aoqi@0: property or a field. Where required, both are explicitly aoqi@0: mentioned. aoqi@0:
aoqi@0: top level class: For the purpose of mapping, there is aoqi@0: no semantic difference between a top level class and a aoqi@0: static nested class. Thus, an annotation that can be applied aoqi@0: to a top level class, can always be applied to a nested aoqi@0: static class. Hence in the Javadoc documentation, for aoqi@0: brevity, the term "top level class" or just class is used to aoqi@0: mean either a top level class or a nested static aoqi@0: class. aoqi@0:
aoqi@0: mapping annotation:A JAXB 2.0 defined program aoqi@0: annotation based on the JSR 175 programming annotation aoqi@0: facility. aoqi@0:
The following usage constraints are defined here since aoqi@0: they apply to more than annotation: aoqi@0:
The following namespace prefixes are used in the XML Schema aoqi@0: fragments in this package.
aoqi@0: aoqi@0:
Prefix | aoqi@0:Namespace | aoqi@0:Notes | aoqi@0:
xs | aoqi@0:http://www.w3.org/2001/XMLSchema | aoqi@0:Namespace of XML Schema namespace | aoqi@0:
ref | aoqi@0:http://ws-i.org/profiles/basic/1.1/xsd | aoqi@0:Namespace for swaref schema component | aoqi@0:
xsi | aoqi@0:http://www.w3.org/2001/XMLSchema-instance | aoqi@0:XML Schema namespace for instances | aoqi@0: