axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sérgio Gomes (JIRA) <j...@apache.org>
Subject [jira] Created: (AXIS2C-1133) Better support for string-type enemerations in the ADB code generator
Date Tue, 13 May 2008 09:00:56 GMT
Better support for string-type enemerations in the ADB code generator
---------------------------------------------------------------------

                 Key: AXIS2C-1133
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1133
             Project: Axis2-C
          Issue Type: Improvement
          Components: code generation
            Reporter: Sérgio Gomes
            Priority: Minor


As discussed in axis-c-user@ws.apache.org (and CC'ed in axis2-dev), this patch adds support
for a more "C-like" handling of string-type enumerations, by allowing values to be read and
written with a native enum structure.

Summary of changes:

src/org/apache/axis2/schema/writer/CStructWriter.java:
 - Capitalize and normalize (i.e., remove invalid characters) the "id" property in enumFacet
tags

src/org/apache/axis2/schema/template/CADBBeanTemplateHeader.xsl:
 - Generate enum declaration
 - Generate declarations for specialized enum getter and setter

src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
 - Generate specialized getter and setter; the data is still stored in string format, these
functions simply convert back and forth

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message