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

Signals | |
| void | entityAttributeAdded (UMLClassifierListItem *) |
| void | entityAttributeRemoved (UMLClassifierListItem *) |
Public Member Functions | |
| UMLEntity (const QString &name="", Uml::IDType id=Uml::id_None) | |
| Sets up an entity. | |
| virtual | ~UMLEntity () |
| Standard deconstructor. | |
| bool | operator== (UMLEntity &rhs) |
| Overloaded '==' operator. | |
| virtual void | copyInto (UMLEntity *rhs) const |
| Copy the internal presentation of this object into the new object. | |
| virtual UMLObject * | clone () const |
| Make a clone of this object. | |
| UMLAttribute * | createAttribute (const QString &name=QString::null, UMLObject *type=0) |
| Creates an entity attribute for the parent concept. | |
| UMLObject * | addEntityAttribute (const QString &name, Uml::IDType id=Uml::id_None) |
| Adds an entityAttribute to the entity. | |
| bool | addEntityAttribute (UMLEntityAttribute *att, IDChangeLog *Log=0) |
| Adds an already created entityAttribute. | |
| bool | addEntityAttribute (UMLEntityAttribute *att, int position) |
| Adds an entityAttribute to the entity, at the given position. | |
| int | removeEntityAttribute (UMLClassifierListItem *a) |
| Removes an entityAttribute from the class. | |
| void | signalEntityAttributeRemoved (UMLClassifierListItem *eattr) |
| Emit the entityAttributeRemoved signal. | |
| int | entityAttributes () |
| Returns the number of entityAttributes for the class. | |
| virtual bool | resolveRef () |
| Resolve the types referenced by our UMLEntityAttributes. | |
| virtual void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
| Creates the <UML:Entity> element including its entityliterals. | |
Protected Member Functions | |
| bool | load (QDomElement &element) |
| Loads the <UML:Entity> element including its entityAttributes. | |
Detailed Description
This class contains the non-graphical information required for a UML Entity. Non-graphical Information for an Entity.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 entity.h.
Constructor & Destructor Documentation
|
||||||||||||
|
Sets up an entity.
Definition at line 26 of file entity.cpp. References UMLPackage::init(). Referenced by clone(). |
|
|
Standard deconstructor.
Definition at line 30 of file entity.cpp. |
Member Function Documentation
|
|
Overloaded '==' operator.
Definition at line 34 of file entity.cpp. References UMLClassifier::operator==(). |
|
|
Copy the internal presentation of this object into the new object.
Definition at line 38 of file entity.cpp. References UMLClassifier::copyInto(). Referenced by clone(). |
|
|
Make a clone of this object.
Reimplemented from UMLClassifier. Definition at line 43 of file entity.cpp. References clone(), copyInto(), and UMLEntity(). Referenced by clone(). |
|
||||||||||||
|
Creates an entity attribute for the parent concept. Reimplementation of method from UMLClassifier.
Definition at line 55 of file entity.cpp. References addEntityAttribute(), UMLCanvasObject::findChildObject(), UMLApp::getDocument(), UMLObject::getName(), UMLDoc::signalUMLObjectCreated(), and UMLCanvasObject::uniqChildName(). |
|
||||||||||||
|
Adds an entityAttribute to the entity.
Definition at line 98 of file entity.cpp. References UMLObject::emitModified(), and UMLObject::modified(). Referenced by createAttribute(). |
|
||||||||||||
|
Adds an already created entityAttribute. The entityAttribute object must not belong to any other concept.
Definition at line 107 of file entity.cpp. References UMLObject::emitModified(), UMLCanvasObject::findChildObject(), UMLObject::getName(), and UMLObject::modified(). |
|
||||||||||||
|
Adds an entityAttribute to the entity, at the given position. If position is negative or too large, the entityAttribute is added to the end of the list.
Definition at line 124 of file entity.cpp. References UMLObject::emitModified(), UMLCanvasObject::findChildObject(), UMLObject::getName(), and UMLObject::modified(). |
|
|
Removes an entityAttribute from the class.
Definition at line 142 of file entity.cpp. References UMLObject::emitModified(). Referenced by UMLDoc::removeUMLObject(). |
|
|
Emit the entityAttributeRemoved signal.
Definition at line 161 of file entity.cpp. Referenced by UMLClassifier::takeItem(). |
|
|
Returns the number of entityAttributes for the class.
Definition at line 156 of file entity.cpp. References entityAttributes(), and UMLClassifier::getFilteredList(). Referenced by entityAttributes(), and saveToXMI(). |
|
|
Resolve the types referenced by our UMLEntityAttributes. Reimplements the method from UMLClassifier. Reimplemented from UMLClassifier. Definition at line 165 of file entity.cpp. References UMLObject::getBaseType(), UMLObject::resolveRef(), and UMLClassifier::resolveRef(). |
|
||||||||||||
|
Creates the <UML:Entity> element including its entityliterals.
Reimplemented from UMLClassifier. Definition at line 178 of file entity.cpp. References entityAttributes(), UMLClassifier::getFilteredList(), UMLObject::save(), and UMLObject::saveToXMI(). |
|
|
Loads the <UML:Entity> element including its entityAttributes.
Reimplemented from UMLClassifier. Definition at line 190 of file entity.cpp. References UMLObject::loadFromXMI(). |
The documentation for this class was generated from the following files:
