umbrello
2.32.2
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 () |
Protected Attributes | |
UMLObjectList | m_objects |
![]() | |
Uml::ID::Type | m_nId |
object's id More... | |
QString | m_Doc |
object's documentation More... | |
QPointer< UMLStereotype > | m_pStereotype |
stereotype of the object if applicable More... | |
QString | m_name |
objects name More... | |
ObjectType | m_BaseType |
objects type More... | |
Uml::Visibility::Enum | m_visibility |
objects visibility More... | |
bool | m_bAbstract |
state of whether the object is abstract or not More... | |
bool | m_bStatic |
flag for instance scope More... | |
bool | m_bInPaste |
caller sets this true when in paste operation More... | |
bool | m_bCreationWasSignalled |
auxiliary to maybeSignalObjectCreated() More... | |
QPointer< UMLObject > | m_pSecondary |
QString | m_SecondaryId |
QString | m_SecondaryFallback |
UMLObjectPrivate * | m_d |
private data More... | |
Additional Inherited Members | |
![]() | |
enum | ObjectType { ot_Unknown = -1, ot_UMLObject = 100, ot_Actor, ot_UseCase, ot_Package, ot_Interface, ot_Datatype, ot_Enum, ot_Class, ot_Instance, ot_Association, ot_Attribute, ot_Operation, ot_EnumLiteral, ot_Template, ot_Component, ot_Artifact, ot_Node, ot_Stereotype, ot_Role, ot_Entity, ot_EntityAttribute, ot_Folder, ot_EntityConstraint, ot_UniqueConstraint, ot_ForeignKeyConstraint, ot_CheckConstraint, ot_Category, ot_Port, ot_InstanceAttribute, ot_SubSystem } |
![]() | |
void | emitModified () |
![]() | |
void | sigAssociationEndAdded (UMLAssociation *assoc) |
void | sigAssociationEndRemoved (UMLAssociation *assoc) |
![]() | |
void | modified () |
![]() | |
static QString | toString (ObjectType ot) |
static QString | toI18nString (ObjectType t) |
static Icon_Utils::IconType | toIcon (ObjectType t) |
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 concept in the list of concepts. The selection of the matching concept depends on the association type: For generalizations, the assoc is added to the concept that matches role A. For aggregations and compositions, the assoc is added to the concept that matches role B.
assoc | the association to add |
bool UMLPackage::addObject | ( | UMLObject * | pObject, |
bool | interactOnConflict = true |
||
) |
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 |
||
) |
Append all classes and interfaces 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 |
||
) |
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 |
||
) |
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 |
||
) |
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 UMLClassifier, UMLArtifact, UMLFolder, UMLEntity, UMLComponent, and UMLEnum.
UMLObjectList UMLPackage::containedObjects | ( | bool | includeInactive = false | ) |
Returns the list of objects contained in this package.
|
virtual |
Copy the internal presentation of this object into the new object.
Reimplemented from UMLCanvasObject.
Reimplemented in UMLClassifier, UMLEntity, and UMLEnum.
UMLObject * UMLPackage::findObject | ( | const QString & | name | ) |
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 | ) |
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 UMLClassifier, UMLEntity, UMLFolder, UMLEnum, UMLArtifact, UMLInstance, UMLComponent, and UMLDatatype.
|
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 |
void UMLPackage::removeObject | ( | UMLObject * | pObject | ) |
Removes an object from this package. Does not physically delete the object.
pObject | Pointer to the UMLObject to be removed. |
|
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, UMLEntity, and UMLInstance.
|
virtual |
Creates the <UML:Package> XMI element.
Reimplemented from UMLObject.
Reimplemented in UMLClassifier, UMLEntity, UMLFolder, UMLEnum, UMLArtifact, UMLDatatype, UMLInstance, and UMLComponent.
|
protected |
References to the objects contained in this package. The UMLPackage is the owner of the objects.