Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
Modello should be able to generate and handle enumerations.
[model]: Add reading of <enumeration> tags. Be able to create integer and string type enumerations.
Integer style enumerations look like this:
public final static FOO = 1;
public final static BAR = 2;
String style enumerations look like this:
public final static FOO = "foo";
public final static BAR = "bar";
[java]: Enumeration classes like [1] should be generated. The model should only return instances of the generated enumeration class.
[xpp3]: When reading and writing enumeration fields serialize and deserialize the enumeration.
[jpox]: Same as for [xpp3].
[xml-schema]: I'm pretty sure xml-schema can handle something like this.
[xdoc]: Add documentation support for the different enumeration elements.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Component/s | modello-plugin-jpox [ 11470 ] |
| Fix Version/s | 1.1 [ 14908 ] |
| Fix Version/s | 1.1 [ 14908 ] |
XML-Schema does handle enumerations - some example syntax is:
<simpleType name="size">
<restriction base="xs:string">
<enumeration value="S"/>
<enumeration value="M"/>
<enumeration value="L"/>
<enumeration value="XL"/>
</restriction>
</simpleType>