Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
As discussed in axis-c-user@ws.apache.org (and CC'ed in axis-c-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