Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Dali/Indigo/JAXB 2.x/PackageAnnotations

< Dali‎ | Indigo‎ | JAXB 2.x
Revision as of 14:48, 7 October 2010 by Unnamed Poltroon (Talk)

Functional Specification: JAXB Package Annotations

[enter bug location here]

Document History

Date Author Version Description & Notes
10-6-2010 Paul Fullbright Draft

Feature overview

This feature is about support for JAXB package annotations

Goals:

  • Support the ability to annotate packages
  • Support JAXB package level annotations and default values
    • @XmlSchema
    • @XmlNs
    • @XmlAccessorType
    • @XmlAccessorOrder
    • @XmlSchemaType/Types
  • Support JAXB package level enums
    • XmlNsForm
    • XmlAccessType
    • XmlAccessOrder

Concepts

Package annotations could conceivably be placed on a package declaration of any class within a package, but in truth, in eclipse, it is only possible to annotate the package-info.java file. Annotating any other package declaration leads to a compile error. In addition, it is extremely unlikely that any externally compiled classes (e.g. jars) come from anything other than file-system-based java implementations, and so extremely unlikely that we'll have to deal with anything other than package annotations only being on the package-info "class".

Dali does not currently support package-info.java annotations, so that is the first technical hurdle. However, much has already been done in bug 265087.

References

Java Language Specification: Packages

Bug 265087: Package-level annotations support

Requirements / Functionality

Support package level annotations

See above comments and reference

=

Back to the top