[Uml-devel] Literals?

Jonathan Riddell jr at jriddell.org
Tue Dec 30 08:26:03 UTC 2003


On Tue, Dec 30, 2003 at 12:04:46AM +0200, Peeter Russak wrote:

> Umbrello contains support for literals, but I can't find anything about them 
> from UML documentation. Are they just named differently in UML docs or are 
> they non-official enhancements?

Literals are just the values of an enum.

A typical example is   

 weekdays {monday, tuesday, wednesday, thursday, friday} 

Here monday etc are the enum literals.  The literals are just
represented as numbers internally but it helps the programmer to have
nice names for them.

Enums are part of C, C++ and will be part of Java 1.5

Jonathan Riddell






More information about the umbrello-devel mailing list