Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-195

Review and update how annotations are made available

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: Version 2.1
    • Fix Version/s: TBD
    • Component/s: SOM
    • Labels:
      None
    • Environment:
      All

      Description

      Currently the way XmlBeans makes annotations available can be confusing - for instance to get an annotation on an element instead of just calling something simple like:

      MyElement.getAnnotation();

      you have to do something like:

      SchemaAnnotation ann = ((SchemaLocalElement) MyElement.type.getContentModel()).getAnnotation();

      XmlBeans should review all places where annotations are available in the Schema spec and review and update how it makes them available.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ljones Lawrence Aston Jones
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: