umbrello 2.39.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
Non-graphical information for a Package. More...
#include <package.h>
Protected Member Functions | |
virtual bool | load1 (QDomElement &element) |
![]() | |
void | init () |
void | maybeSignalObjectCreated () |
void | save1end (QXmlStreamWriter &writer) |
Protected Attributes | |
UMLObjectList | m_objects |
![]() | |
Uml::ID::Type | m_nId |
object's id | |
QString | m_Doc |
object's documentation | |
QPointer< UMLStereotype > | m_pStereotype |
stereotype of the object if applicable | |
QString | m_name |
objects name | |
ObjectType | m_BaseType |
objects type | |
Uml::Visibility::Enum | m_visibility |
objects visibility | |
bool | m_bAbstract |
state of whether the object is abstract or not | |
bool | m_bStatic |
flag for instance scope | |
bool | m_bCreationWasSignalled |
auxiliary to maybeSignalObjectCreated() | |
QPointer< UMLObject > | m_pSecondary |
QString | m_SecondaryId |
QString | m_SecondaryFallback |
QStringList | m_TaggedValues |
UMLObjectPrivate * | m_d |
private data | |
Non-graphical information for a Package.
This class contains the non-graphical information required for a UML Package. This class inherits from UMLCanvasObject which contains most of the information.
|
explicit |
Sets up a Package.
name | The name of the Concept. |
id | The unique id of the Concept. |
|
virtual |
Destructor.
void UMLPackage::addAssocToConcepts | ( | UMLAssociation * | assoc | ) |
Adds an existing association to the matching classifier in the list of concepts. The selection of the matching classifier depends on the association type: For generalizations, the assoc is added to the classifier that matches role A. For aggregations and compositions, the assoc is added to the classifier that matches role B.
assoc | the association to add |
Adds an object in this package.
pObject | Pointer to the UMLObject to add. |
interactOnConflict | If pObject's name is already present in the package's contained objects then
|
void UMLPackage::appendClassesAndInterfaces | ( | UMLClassifierList & | classifiers, |
bool | includeNested = true ) const |
Append all classes, interfaces, and enums from this package (and those from nested packages) to the given UMLClassifierList.
classifiers | The list to append to. |
includeNested | Whether to include the classifiers from nested packages (default: true.) |
void UMLPackage::appendClassifiers | ( | UMLClassifierList & | classifiers, |
bool | includeNested = true ) const |
Append all classifiers from this package (and those from nested packages) to the given UMLClassifierList.
classifiers | The list to append to. |
includeNested | Whether to include the classifiers from nested packages (default: true.) |
void UMLPackage::appendEntities | ( | UMLEntityList & | entities, |
bool | includeNested = true ) const |
Append all entities from this package (and those from nested packages) to the given UMLEntityList.
entities | The list to append to. |
includeNested | Whether to include the entities from nested packages (default: true.) |
void UMLPackage::appendPackages | ( | UMLPackageList & | packages, |
bool | includeNested = true ) const |
Append all packages from this package (and those from nested packages) to the given UMLPackageList.
packages | The list to append to |
includeNested | Whether to include the packages from nested packages (default:true) |
|
virtual |
Make a clone of this object.
Reimplemented from UMLObject.
Reimplemented in UMLArtifact, UMLClassifier, UMLComponent, UMLEntity, UMLEnum, and UMLFolder.
UMLObjectList UMLPackage::containedObjects | ( | bool | includeInactive = false | ) | const |
Returns the list of objects contained in this package.
Copy the internal presentation of this object into the new object.
Reimplemented from UMLCanvasObject.
Reimplemented in UMLClassifier, UMLEntity, and UMLEnum.
Find the object of the given name in the list of contained objects.
name | The name to seek. |
UMLObject * UMLPackage::findObjectById | ( | Uml::ID::Type | id | ) | const |
Find the object of the given ID in the list of contained objects.
id | The ID to seek. |
|
protectedvirtual |
Loads the <UML:Package> XMI element. Auxiliary to UMLObject::loadFromXMI.
Reimplemented from UMLObject.
Reimplemented in UMLArtifact, UMLClassifier, UMLComponent, UMLDatatype, UMLEntity, UMLEnum, and UMLFolder.
|
virtual |
Removes all objects from this package. Inner containers (e.g. nested packages) are removed recursively.
void UMLPackage::removeAssocFromConcepts | ( | UMLAssociation * | assoc | ) |
Remove the association from the participating concepts.
assoc | the association to remove |
Removes an object from this package. Does not physically delete the object. Does not emit signals.
pObject | Pointer to the UMLObject to be removed. |
Reimplemented in UMLClassifier.
|
virtual |
Resolve types. Required when dealing with foreign XMI files. Needs to be called after all UML objects are loaded from file. Overrides the method from UMLObject. Calls resolveRef() on each contained object.
Reimplemented from UMLCanvasObject.
Reimplemented in UMLClassifier, and UMLEntity.
|
virtual |
Creates the <UML:Package> XMI element.
Reimplemented from UMLObject.
Reimplemented in UMLArtifact, UMLClassifier, UMLComponent, UMLDatatype, UMLEntity, UMLEnum, and UMLFolder.
|
protected |
References to the objects contained in this package. The UMLPackage is the owner of the objects. The objects stored here are "standalone" objects which have an existence on their own (such as classifiers, packages). On the other hand, the objects stored in UMLCanvasObject::m_List are "subordinate" objects which cannot exist on their own (such as attributes, operations). They are always slaved to a "standalone" object.
This design may be revisited - m_objects could be merged into UMLCanvasObject::m_List.