umbrello/umbrello
package.cpp
Go to the documentation of this file.
167 i18n("An object with the name %1\nalready exists in the package %2.\nPlease enter a new name:", prevName, this->name()),
UMLObject * getObject(Uml::RoleType::Enum role) const
Returns the UMLObject assigned to the given role.
Definition: association.cpp:476
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
virtual bool loadFromXMI(QDomElement &element)
This method loads the generic parts of the XMI common to most model classes.
Definition: umlobject.cpp:914
Definition: basictypes.h:209
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: package.cpp:52
Definition: umlobject.h:55
static bool tagEq(const QString &tag, const QString &pattern)
Function for comparing tags in XMI files.
Definition: umldoc.cpp:3030
Definition: basictypes.h:210
This class contains the non-graphical information required for UMLObjects which appear as moveable wi...
Definition: umlcanvasobject.h:33
bool hasAssociation(UMLAssociation *assoc)
Determine if this canvasobject has the given association.
Definition: umlcanvasobject.cpp:104
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates the XMI element.
Definition: package.cpp:436
int removeAssociationEnd(UMLAssociation *assoc)
Remove an association end from the CanvasObject.
Definition: umlcanvasobject.cpp:117
virtual void copyInto(UMLObjectList *rhs) const
Copy the internal presentation of this object into the new object.
Definition: umlobjectlist.cpp:26
This class contains the non-graphic representation of an association.
Definition: association.h:32
UMLObject * findObjectById(Uml::ID::Type id)
Find the object of the given ID in the list of contained objects.
Definition: package.cpp:262
void appendPackages(UMLPackageList &packages, bool includeNested=true)
Append all packages from this packaed (and those from nested packeges) to the given UMLPackageList...
Definition: package.cpp:275
void appendClassifiers(UMLClassifierList &classifiers, bool includeNested=true)
Append all classifiers from this package (and those from nested packages) to the given UMLClassifierL...
Definition: package.cpp:298
void appendEntities(UMLEntityList &entities, bool includeNested=true)
Append all entities from this package (and those from nested packages) to the given UMLEntityList...
Definition: package.cpp:346
virtual bool resolveRef()
Resolve referenced objects (if any.) Needs to be called after all UML objects are loaded from file...
Definition: umlobject.cpp:709
QString uniqObjectName(UMLObject::ObjectType type, UMLPackage *parentPkg, QString prefix)
Returns a name for the new object, appended with a number if the default name is taken e...
Definition: model_utils.cpp:452
bool setUMLPackage(UMLPackage *pPkg)
Sets the UMLPackage in which this class is located.
Definition: umlobject.cpp:545
void removeObject(UMLObject *pObject)
Removes an object from this package.
Definition: package.cpp:193
Definition: umlobject.h:69
Uml::AssociationType::Enum getAssocType() const
Returns the AssociationType::Enum of the UMLAssociation.
Definition: association.cpp:103
UMLPackage(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Sets up a Package.
Definition: package.cpp:36
Definition: umlobject.h:67
void appendClassesAndInterfaces(UMLClassifierList &classifiers, bool includeNested=true)
Append all classes and interfaces from this package (and those from nested packages) to the given UML...
Definition: package.cpp:370
bool isCommonXMIAttribute(const QString &tag)
Return true if the given tag is a one of the common XMI attributes, such as: "name" | "visibility" | ...
Definition: model_utils.cpp:503
bool hasUMLRepresentation(Enum item)
Returns true if the given AssociationType has a representation as a UMLAssociation.
Definition: basictypes.cpp:440
Definition: umlobject.h:53
Definition: umlobject.h:57
QDomElement save(const QString &tag, QDomDocument &qDoc)
Auxiliary to saveToXMI.
Definition: umlobject.cpp:808
UMLObject * findObjectInList(Uml::ID::Type id, const UMLObjectList &inList)
Seek the given id in the given list of objects.
Definition: model_utils.cpp:80
UMLPackage * umlPackage()
Returns the UMLPackage that this class is located in.
Definition: umlobject.cpp:641
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: umlcanvasobject.cpp:303
Definition: umlobject.h:56
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)=0
This sub-class adds copyInto and clone to the QList base class.
Definition: umlobjectlist.h:26
UMLObject * makeObjectFromXMI(const QString &xmiTag, const QString &stereoID)
Make a new UMLObject according to the given XMI tag.
Definition: object_factory.cpp:309
bool activeLanguageIsCaseSensitive()
Return true if the active language is case sensitive.
Definition: uml.cpp:2361
UMLObjectList m_objects
References to the objects contained in this package.
Definition: package.h:78
UMLObject * findObject(const QString &name)
Find the object of the given name in the list of contained objects.
Definition: package.cpp:241
Uml::ID::Type getObjectId(Uml::RoleType::Enum role) const
Returns the ID of the UMLObject assigned to the given role.
Definition: association.cpp:488
Definition: umlobject.h:52
void removeAssocFromConcepts(UMLAssociation *assoc)
Remove the association from the participating concepts.
Definition: package.cpp:108
void appendClasses(UMLClassifierList &classes, bool includeNested=true)
Append all classes from this package (and those from nested packages) to the given UMLClassifierList...
Definition: package.cpp:322
bool addAssociationEnd(UMLAssociation *assoc)
Adds an association end to m_List.
Definition: umlcanvasobject.cpp:83
Definition: umlobject.h:54
UMLObjectList containedObjects()
Returns the list of objects contained in this package.
Definition: package.cpp:230
This class contains the non-graphical information required for a UML Entity.
Definition: entity.h:34
void addAssocToConcepts(UMLAssociation *assoc)
Adds an existing association to the matching concept in the list of concepts.
Definition: package.cpp:80
void appendInterfaces(UMLClassifierList &interfaces, bool includeNested=true)
Append all interfaces from this package (and those from nested packages) to the given UMLClassifierLi...
Definition: package.cpp:394
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.