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:497
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:912
QDomNode appendChild(const QDomNode &newChild)
Definition: basictypes.h:215
QString attribute(const QString &name, const QString &defValue) const
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: package.cpp:52
Definition: umlobject.h:56
static bool tagEq(const QString &tag, const QString &pattern)
Function for comparing tags in XMI files.
Definition: umldoc.cpp:3081
Definition: basictypes.h:216
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:388
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
int indexOf(const T &value, int from) const
QDomElement toElement() const
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 package (and those from nested packages) 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:322
void append(const T &value)
virtual bool resolveRef()
Resolve referenced objects (if any.) Needs to be called after all UML objects are loaded from file...
Definition: umlobject.cpp:707
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:461
bool setUMLPackage(UMLPackage *pPkg)
Sets the UMLPackage in which this class is located.
Definition: umlobject.cpp:543
void removeObject(UMLObject *pObject)
Removes an object from this package.
Definition: package.cpp:193
bool isEmpty() const
Definition: umlobject.h:70
int removeAll(const T &value)
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
void deleteLater()
T & first()
Definition: umlobject.h:68
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:346
QString toLower() const
bool isCommonXMIAttribute(const QString &tag)
Return true if the given tag is one of the common XMI attributes, such as: "name" | "visibility" | "i...
Definition: model_utils.cpp:525
bool isNull() const
bool hasUMLRepresentation(Enum item)
Returns true if the given AssociationType has a representation as a UMLAssociation.
Definition: basictypes.cpp:446
Definition: umlobject.h:54
Definition: umlobject.h:58
QDomElement save(const QString &tag, QDomDocument &qDoc)
Auxiliary to saveToXMI.
Definition: umlobject.cpp:806
UMLObject * findObjectInList(Uml::ID::Type id, const UMLObjectList &inList)
Seek the given id in the given list of objects.
Definition: model_utils.cpp:81
QDomNode firstChild() const
UMLPackage * umlPackage()
Returns the UMLPackage that this class is located in.
Definition: umlobject.cpp:639
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: umlcanvasobject.cpp:303
Definition: umlobject.h:57
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:355
bool activeLanguageIsCaseSensitive()
Return true if the active language is case sensitive.
Definition: uml.cpp:2447
UMLObjectList m_objects
References to the objects contained in this package.
Definition: package.h:75
int length() const
UMLObject * findObject(const QString &name)
Find the object of the given name in the list of contained objects.
Definition: package.cpp:241
QString tagName() const
Uml::ID::Type getObjectId(Uml::RoleType::Enum role) const
Returns the ID of the UMLObject assigned to the given role.
Definition: association.cpp:509
Definition: umlobject.h:53
QDomElement createElement(const QString &tagName)
void removeAssocFromConcepts(UMLAssociation *assoc)
Remove the association from the participating concepts.
Definition: package.cpp:108
bool addAssociationEnd(UMLAssociation *assoc)
Adds an association end to m_List.
Definition: umlcanvasobject.cpp:83
Definition: umlobject.h:55
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
bool hasNext() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.