UMLEnum Class Reference
This class contains the non-graphical information required for a UML Enum. Non-graphical Information for an Enum. More...
#include <enum.h>
Inheritance diagram for UMLEnum:

Signals | |
| void | enumLiteralAdded (UMLClassifierListItem *) |
| void | enumLiteralRemoved (UMLClassifierListItem *) |
Public Member Functions | |
| UMLEnum (const QString &name="", Uml::IDType id=Uml::id_None) | |
| Sets up an enum. | |
| virtual | ~UMLEnum () |
| Standard deconstructor. | |
| bool | operator== (UMLEnum &rhs) |
| Overloaded '==' operator. | |
| virtual void | copyInto (UMLEnum *rhs) const |
| Copy the internal presentation of this object into the new object. | |
| virtual UMLObject * | clone () const |
| Make a clone of this object. | |
| UMLObject * | createEnumLiteral () |
| Creates a literal for the enum. | |
| UMLObject * | addEnumLiteral (const QString &name, Uml::IDType id=Uml::id_None) |
| Adds an enumliteral to the enum. | |
| bool | addEnumLiteral (UMLEnumLiteral *Att, IDChangeLog *Log=0) |
| Adds an already created enumliteral. | |
| bool | addEnumLiteral (UMLEnumLiteral *Att, int position) |
| Adds an enumliteral to the enum, at the given position. | |
| int | removeEnumLiteral (UMLEnumLiteral *a) |
| Removes an enumliteral from the class. | |
| int | enumLiterals () |
| Returns the number of enumliterals for the class. | |
| void | signalEnumLiteralRemoved (UMLClassifierListItem *elit) |
| Emit the enumLiteralRemoved signal. | |
| virtual void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
| Creates the <UML:Enum> element including its enumliterals. | |
Protected Member Functions | |
| bool | load (QDomElement &element) |
| Loads the <UML:Enum> element including its enumliterals. | |
Detailed Description
This class contains the non-graphical information required for a UML Enum. Non-graphical Information for an Enum.This class inherits from UMLClassifier which contains most of the information.
- Author:
- Jonathan Riddell Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
Definition at line 29 of file enum.h.
Constructor & Destructor Documentation
|
||||||||||||
|
Sets up an enum.
Definition at line 24 of file enum.cpp. References UMLPackage::init(). Referenced by clone(). |
|
|
Standard deconstructor.
|
Member Function Documentation
|
|
Overloaded '==' operator.
Definition at line 32 of file enum.cpp. References UMLClassifier::operator==(). |
|
|
Copy the internal presentation of this object into the new object.
Definition at line 36 of file enum.cpp. References UMLClassifier::copyInto(). Referenced by clone(). |
|
|
Make a clone of this object.
Reimplemented from UMLClassifier. Definition at line 41 of file enum.cpp. References clone(), copyInto(), and UMLEnum(). Referenced by clone(). |
|
|
Creates a literal for the enum.
Definition at line 54 of file enum.cpp. References addEnumLiteral(), UMLApp::getDocument(), UMLObject::getName(), UMLEnumLiteral::showPropertiesDialog(), UMLDoc::signalUMLObjectCreated(), and UMLCanvasObject::uniqChildName(). |
|
||||||||||||
|
Adds an enumliteral to the enum.
Definition at line 83 of file enum.cpp. References UMLObject::emitModified(), UMLCanvasObject::findChildObject(), and UMLObject::modified(). Referenced by createEnumLiteral(). |
|
||||||||||||
|
Adds an already created enumliteral. The enumliteral object must not belong to any other concept.
Definition at line 98 of file enum.cpp. References UMLObject::emitModified(), UMLCanvasObject::findChildObject(), UMLObject::getName(), and UMLObject::modified(). |
|
||||||||||||
|
Adds an enumliteral to the enum, at the given position. If position is negative or too large, the enumliteral is added to the end of the list.
Definition at line 115 of file enum.cpp. References UMLObject::emitModified(), UMLCanvasObject::findChildObject(), UMLObject::getName(), and UMLObject::modified(). |
|
|
Removes an enumliteral from the class.
Definition at line 133 of file enum.cpp. References UMLObject::emitModified(). Referenced by UMLDoc::removeUMLObject(). |
|
|
Returns the number of enumliterals for the class.
Definition at line 147 of file enum.cpp. Referenced by saveToXMI(). |
|
|
Emit the enumLiteralRemoved signal.
Definition at line 151 of file enum.cpp. Referenced by UMLClassifier::takeItem(). |
|
||||||||||||
|
Creates the <UML:Enum> element including its enumliterals.
Reimplemented from UMLClassifier. Definition at line 155 of file enum.cpp. References enumLiterals(), UMLClassifier::getFilteredList(), UMLObject::save(), and UMLObject::saveToXMI(). |
|
|
Loads the <UML:Enum> element including its enumliterals.
Reimplemented from UMLClassifier. Definition at line 167 of file enum.cpp. References UMLObject::loadFromXMI(). |
The documentation for this class was generated from the following files:
