Uploaded image for project: 'XmlSchema'
  1. XmlSchema
  2. XMLSCHEMA-11

XmlSchemaChoice.getItems() should probably return XmlSchemaChoiceMember instead of XmlSchemaObject.

    XMLWordPrintableJSON

    Details

    • Type: Question
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: XmlSchema 2.0
    • Fix Version/s: 2.2.0
    • Labels:
    • Environment:

      Java

      Description

      XmlSchemaSequence.getItems() returns XmlSchemaSequenceMember. IMHO XmlSchemaChoice.getItems() should return XmlSchemaChoiceMember.
      Also XmlSchemaChoiceMember could inherit XmlSchemaObjectBase (as XmlSchemaSequenceMember does), so both XmlSchemaSequence.getItems() and XmlSchemaChoice.getItems() will return XmlSchemaObjectBase type that facilitates parsing.

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              redmitry Dmitri Repchevsky
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: