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 [EMAIL PROTECTED] (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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]