You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Ron Gavlin (JIRA)" <tu...@ws.apache.org> on 2007/09/11 17:08:32 UTC

[jira] Created: (TUSCANY-1685) SDOXSDECoreBuilder.validAliasName(XSDTypeDefinition) does not mangle dashes in typeNames to underscores

SDOXSDECoreBuilder.validAliasName(XSDTypeDefinition) does not mangle dashes in typeNames to underscores
-------------------------------------------------------------------------------------------------------

                 Key: TUSCANY-1685
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1685
             Project: Tuscany
          Issue Type: Bug
          Components: Java SDO Implementation
    Affects Versions: Java-SDO-1.0
            Reporter: Ron Gavlin
            Priority: Critical


I have the following complex type in a schema:

<xsd:complexType name="Bogus-1">
<xsd:sequence>
<xsd:element name="name1" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>

When I use XSD2JavaGenerator to code-generate classes for this schema, an invalidly named Bogus-1.java class is generated. The class name should be mangled into a valid Java class name, such as Bogus_1.java. EMF provides this behavior in its NameMangler which Tuscany currently disables.



-- 
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-1685) XSD2JavaGenerator should support name mangling (dashes to underscores, etc.)

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528095 ] 

Kelvin Goodson commented on TUSCANY-1685:
-----------------------------------------

Any name overrides must be done with schema annotations,  so the input to the generator must contain those annotations,  such as sdo:name="Bogus_1" in the input schema. The SDO spec allows for a generator to insert annotations into an updated schema before generating, in which case the generator must be able to output the annotated schema, but we don't have that capacity currently.

> XSD2JavaGenerator should support name mangling (dashes to underscores, etc.)
> ----------------------------------------------------------------------------
>
>                 Key: TUSCANY-1685
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1685
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-1.0
>            Reporter: Ron Gavlin
>            Priority: Critical
>             Fix For: Java-SDO-Next
>
>
> I have the following complex type in a schema:
> <xsd:complexType name="Bogus-1">
> <xsd:sequence>
> <xsd:element name="name1" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> When I use XSD2JavaGenerator to code-generate classes for this schema, an invalidly named Bogus-1.java class is generated. The class name should be mangled into a valid Java class name, such as Bogus_1.java. EMF provides this behavior in its NameMangler which Tuscany currently disables.

-- 
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-1685) XSD2JavaGenerator should support name mangling (dashes to underscores, etc.)

Posted by "Ron Gavlin (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ron Gavlin updated TUSCANY-1685:
--------------------------------

    Component/s:     (was: Java SDO Implementation)
                 Java SDO Tools
        Summary: XSD2JavaGenerator should support name mangling (dashes to underscores, etc.)  (was: SDOXSDECoreBuilder.validAliasName(XSDTypeDefinition) does not mangle dashes in typeNames to underscores)

> XSD2JavaGenerator should support name mangling (dashes to underscores, etc.)
> ----------------------------------------------------------------------------
>
>                 Key: TUSCANY-1685
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1685
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-1.0
>            Reporter: Ron Gavlin
>            Priority: Critical
>
> I have the following complex type in a schema:
> <xsd:complexType name="Bogus-1">
> <xsd:sequence>
> <xsd:element name="name1" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> When I use XSD2JavaGenerator to code-generate classes for this schema, an invalidly named Bogus-1.java class is generated. The class name should be mangled into a valid Java class name, such as Bogus_1.java. EMF provides this behavior in its NameMangler which Tuscany currently disables.

-- 
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-1685) Implement a general-purpose XSD4JavaAnnotator to add SDO annotations to an XSD that supports name mangling (dashes to underscores, etc.) required by Java

Posted by "Ron Gavlin (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ron Gavlin updated TUSCANY-1685:
--------------------------------

       Priority: Minor  (was: Critical)
    Description: 
I would like to use a Tuscany-implemented tool to add SDO annotations to an XSD that supports name mangling (dashes to underscores, etc.) required by Java. 



  was:
I have the following complex type in a schema:

<xsd:complexType name="Bogus-1">
<xsd:sequence>
<xsd:element name="name1" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>

When I use XSD2JavaGenerator to code-generate classes for this schema, an invalidly named Bogus-1.java class is generated. The class name should be mangled into a valid Java class name, such as Bogus_1.java. EMF provides this behavior in its NameMangler which Tuscany currently disables.



     Issue Type: New Feature  (was: Bug)
        Summary: Implement a general-purpose XSD4JavaAnnotator to add SDO annotations to an XSD that supports name mangling (dashes to underscores, etc.) required by Java  (was: XSD2JavaGenerator should support name mangling (dashes to underscores, etc.))

Re-cast this issue as a new feature rather than a bug fix.

> Implement a general-purpose XSD4JavaAnnotator to add SDO annotations to an XSD that supports name mangling (dashes to underscores, etc.) required by Java
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1685
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1685
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-1.0
>            Reporter: Ron Gavlin
>            Priority: Minor
>             Fix For: Java-SDO-Next
>
>
> I would like to use a Tuscany-implemented tool to add SDO annotations to an XSD that supports name mangling (dashes to underscores, etc.) required by Java. 

-- 
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