You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "David T. Adcox (JIRA)" <tu...@ws.apache.org> on 2007/04/25 23:36:15 UTC
[jira] Created: (TUSCANY-1233) Enhance SDO static codegen
(XSD2Java) to support multiple namespaces in a single pass.
Enhance SDO static codegen (XSD2Java) to support multiple namespaces in a single pass.
--------------------------------------------------------------------------------------
Key: TUSCANY-1233
URL: https://issues.apache.org/jira/browse/TUSCANY-1233
Project: Tuscany
Issue Type: Improvement
Components: Java SDO Tools
Affects Versions: Java-SDO-M2
Environment: n/a
Reporter: David T. Adcox
Priority: Minor
Fix For: Java-SDO-beta1
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Resolved: (TUSCANY-1233) Enhance SDO static codegen
(XSD2Java) to support multiple namespaces in a single pass.
Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kelvin Goodson resolved TUSCANY-1233.
-------------------------------------
Resolution: Fixed
I spent a fair time testing this update in my local workspace, but as we don't yet have infrastructure to run generator tests properly in the build I have deferred committing these tests. I have opened discussion on the tuscany-dev mailing list and on the maven-users mailing list today to try to find best practice to overcome the issues presented there, and will defer addition of these tests until that discussion has resolved.
> Enhance SDO static codegen (XSD2Java) to support multiple namespaces in a single pass.
> --------------------------------------------------------------------------------------
>
> Key: TUSCANY-1233
> URL: https://issues.apache.org/jira/browse/TUSCANY-1233
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SDO Tools
> Affects Versions: Java-SDO-M2
> Environment: n/a
> Reporter: David T. Adcox
> Assignee: Kelvin Goodson
> Priority: Minor
> Fix For: Java-SDO-1.0
>
> Attachments: 1233.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-1233) Enhance SDO static codegen
(XSD2Java) to support multiple namespaces in a single pass.
Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kelvin Goodson updated TUSCANY-1233:
------------------------------------
Fix Version/s: (was: Java-SDO-beta1)
Java-SDO-Mx
> Enhance SDO static codegen (XSD2Java) to support multiple namespaces in a single pass.
> --------------------------------------------------------------------------------------
>
> Key: TUSCANY-1233
> URL: https://issues.apache.org/jira/browse/TUSCANY-1233
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SDO Tools
> Affects Versions: Java-SDO-M2
> Environment: n/a
> Reporter: David T. Adcox
> Priority: Minor
> Fix For: Java-SDO-Mx
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Commented: (TUSCANY-1233) Enhance SDO static codegen
(XSD2Java) to support multiple namespaces in a single pass.
Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500161 ]
Kelvin Goodson commented on TUSCANY-1233:
-----------------------------------------
I'm working through this patch, and feeling a little uncomfortable about the use of the "-schemaNamespace all" incantation. I think I would prefer to either have a -allNamespaces argument, in order to avoid having to reserve the [aA][lL][lL] namespaces. Alternatively, whilst I'm not a fan of changing default behaviours, I wonder if it would be a problem to make the "all" behaviour the default, and then only select a subset of namespaces if either the schemaNamespace or namespaceInfo arguments are applied.
> Enhance SDO static codegen (XSD2Java) to support multiple namespaces in a single pass.
> --------------------------------------------------------------------------------------
>
> Key: TUSCANY-1233
> URL: https://issues.apache.org/jira/browse/TUSCANY-1233
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SDO Tools
> Affects Versions: Java-SDO-M2
> Environment: n/a
> Reporter: David T. Adcox
> Assignee: Kelvin Goodson
> Priority: Minor
> Fix For: Java-SDO-1.0
>
> Attachments: 1233.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-1233) Enhance SDO static codegen
(XSD2Java) to support multiple namespaces in a single pass.
Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kelvin Goodson updated TUSCANY-1233:
------------------------------------
Patch Info: [Patch Available]
> Enhance SDO static codegen (XSD2Java) to support multiple namespaces in a single pass.
> --------------------------------------------------------------------------------------
>
> Key: TUSCANY-1233
> URL: https://issues.apache.org/jira/browse/TUSCANY-1233
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SDO Tools
> Affects Versions: Java-SDO-M2
> Environment: n/a
> Reporter: David T. Adcox
> Priority: Minor
> Fix For: Java-SDO-Next
>
> Attachments: 1233.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-1233) Enhance SDO static codegen
(XSD2Java) to support multiple namespaces in a single pass.
Posted by "David T. Adcox (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David T. Adcox updated TUSCANY-1233:
------------------------------------
Attachment: 1233.patch
I believe the attached patch file should meet the needs of this JIRA. I've enhanced the -schemaNamespace option to allow for an 'all' namespace that indicates all namespaces should be processed. Additionally, I've added a new option '-namespaceInfo' to allow for namespace;package;prefix options to be specified. There was a problem in the javajet that required fixing, before the 'all' namespace processing would work correctly down in the EMF generator. That fix is also included in this patch. Lastly, a framework was added on the XSD2JavaGenerate method that allows for introspection of the newly created classes. Through the use of inner class structures and a new public method, the generated packages and classes may be inspected.
> Enhance SDO static codegen (XSD2Java) to support multiple namespaces in a single pass.
> --------------------------------------------------------------------------------------
>
> Key: TUSCANY-1233
> URL: https://issues.apache.org/jira/browse/TUSCANY-1233
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SDO Tools
> Affects Versions: Java-SDO-M2
> Environment: n/a
> Reporter: David T. Adcox
> Priority: Minor
> Fix For: Java-SDO-Next
>
> Attachments: 1233.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Assigned: (TUSCANY-1233) Enhance SDO static codegen
(XSD2Java) to support multiple namespaces in a single pass.
Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kelvin Goodson reassigned TUSCANY-1233:
---------------------------------------
Assignee: Kelvin Goodson
> Enhance SDO static codegen (XSD2Java) to support multiple namespaces in a single pass.
> --------------------------------------------------------------------------------------
>
> Key: TUSCANY-1233
> URL: https://issues.apache.org/jira/browse/TUSCANY-1233
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SDO Tools
> Affects Versions: Java-SDO-M2
> Environment: n/a
> Reporter: David T. Adcox
> Assignee: Kelvin Goodson
> Priority: Minor
> Fix For: Java-SDO-1.0
>
> Attachments: 1233.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org