Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1233

Enhance SDO static codegen (XSD2Java) to support multiple namespaces in a single pass.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Java-SDO-M2
    • Java-SDO-1.0
    • Java SDO Tools
    • None
    • n/a
    • Patch Available

    Description

      The SDO static codegen tool (XSD2Java) is currently only able to process a single namespace per invocation. This limitation is problematic when the target schema contains multiple namespaces or includes other schemas with namespaces that are different from the target schema. The user of the tool is forced to invoke the tool multiple times, once for each namespace referenced. More troubling is the case where the javapackage option is used. In that case, the java package information is changed from the default naming scheme. This change will break any generated classes that point to the name-modified package.

      Supporting this feature would include items such as these listed below:

      • Support the processing of multiple namespaces via a command-line option (this behavior should not be the default)
      • Provide support for multiple namespaces within a single schema or WSDL
      • Support processing of multiple namespaces imported by the target schema or WSDL.
      • Allow for all namespaces to be discovered through interrogation of the target and its dependencies.
      • Allow for user input to determine all namespaces to be processed (enhanced schemaNamespace option).
      • Provide support for javaPackage to namespace mapping. In effect, enhance the current javaPackage option to allow for multiple package-namespace pairs.
      • Provide support for prefix to namespace mapping. Again, much like the previous item, enhance the current prefix option to support multiple prefix-namespace pairs.

      Attachments

        1. 1233.patch
          31 kB
          David T. Adcox

        Activity

          People

            kgoodson Kelvin Goodson
            dtadcox David T. Adcox
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: