Uploaded image for project: 'Woden'
  1. Woden
  2. WODEN-126

Underlying <xs:schema> element should be accessible from API

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • M7
    • None
    • None

    Description

      Woden supports XML Schema datatypes via ws-commons XmlSchema, but Woden users may prefer to use other mechanisms for manipulating schema information. The API should allow the user to access the underlying <xs:schema> element 'wrapped' by the ImportedSchema or InlinedSchema object so they have the flexibility to choose other mechanisms. For example, in the DOM implementation the underlying schema element is an org.w3c.dom.Element object. To avoid API-dependencies on particular XML parsers or object models the org.apache.woden.XMLElement class should be used for this purpose, as this is an abstraction of DOM Element, OM Element, etc.

      The org.apache.woden.schema.Schema interface (supertype of ImportedSchema and InlinedSchema) requires two new methods:

      void setSchemaElement(XMLElement)
      XMLElement getSchemaElement()

      Attachments

        Activity

          People

            jkaputin John Alan William Kaputin
            jkaputin John Alan William Kaputin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: