jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Modello
  • Modello
  • MODELLO-26

Handle enumerations

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: modello-core, modello-plugin-java, modello-plugin-xdoc, modello-plugin-xml, modello-plugin-xpp3, modello-plugin-xsd
  • Labels:
    None
  • Number of attachments :
    0

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.

http://svn.apache.org/viewcvs.cgi/maven/continuum/trunk/continuum-model/src/main/java/org/apache/maven/continuum/project/ContinuumProjectState.java?rev=170005&view=log

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity

People

  • Assignee:
    Unassigned
    Reporter:
    Trygve Laugstøl
Vote (0)
Watch (3)

Dates

  • Created:
    18/May/05 8:43 AM
    Updated:
    16/Aug/09 4:17 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.