umbrello/umbrello
umlcanvasobject.cpp
Go to the documentation of this file.
UMLAssociationList getAggregations()
Shorthand for getSpecificAssocs(Uml::at_Aggregation)
Definition: umlcanvasobject.cpp:423
UMLObject * getObject(Uml::RoleType::Enum role) const
Returns the UMLObject assigned to the given role.
Definition: association.cpp:497
void clear()
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: umlobject.cpp:288
Definition: umlobject.h:61
int associations()
Returns the number of associations for the CanvasObject.
Definition: umlcanvasobject.cpp:319
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
UMLAssociationList getSpecificAssocs(Uml::AssociationType::Enum assocType)
Return the subset of m_List that matches the given type.
Definition: umlcanvasobject.cpp:61
Definition: basictypes.h:215
bool operator==(const UMLCanvasObject &rhs) const
Overloaded '==' operator.
Definition: umlcanvasobject.cpp:282
Definition: basictypes.h:216
const T & at(int i) const
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
Definition: umlobject.h:72
Definition: umlobject.h:60
Definition: umlobject.h:62
int removeAssociationEnd(UMLAssociation *assoc)
Remove an association end from the CanvasObject.
Definition: umlcanvasobject.cpp:117
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:910
void sigAssociationEndRemoved(UMLAssociation *assoc)
UMLAssociationList getRelationships()
Shorthand for getSpecificAssocs(Uml::at_Relationship)
Definition: umlcanvasobject.cpp:443
This class contains the non-graphic representation of an association.
Definition: association.h:32
UMLAssociationList getAssociations()
Return the list of associations for the CanvasObject.
Definition: umlcanvasobject.cpp:337
static QString toString(ObjectType ot)
Helper function for debug output.
Definition: umlobject.cpp:1079
QString number(int n, int base)
int count(const T &value) const
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
bool isEmpty() const
bool isEmpty() const
int removeAll(const T &value)
Uml::AssociationType::Enum getAssocType() const
Returns the AssociationType::Enum of the UMLAssociation.
Definition: association.cpp:103
UMLAssociationList getCompositions()
Shorthand for getSpecificAssocs(Uml::at_Composition)
Definition: umlcanvasobject.cpp:433
void removeAssociation(UMLAssociation *assoc, bool doSetModified=true)
Removes an association.
Definition: umldoc.cpp:1073
Definition: umlobject.h:74
virtual UMLObject * findChildObjectById(Uml::ID::Type id, bool considerAncestors=false)
Find an association.
Definition: umlcanvasobject.cpp:266
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject)
Find a child object with the given name.
Definition: umlcanvasobject.cpp:240
Definition: umlobject.h:73
QString toLower() const
Definition: umlobject.h:59
Definition: umlobject.h:58
UMLClassifierList getSubClasses()
Return a list of the classes that inherit from this concept.
Definition: umlcanvasobject.cpp:388
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: umlcanvasobject.cpp:303
UMLClassifierList getSuperClasses(bool withRealizations=true)
Return a list of the superclasses of this concept.
Definition: umlcanvasobject.cpp:360
bool activeLanguageIsCaseSensitive()
Return true if the active language is case sensitive.
Definition: uml.cpp:2447
Definition: umlobject.h:50
void removeAllAssociationEnds()
Remove all association ends from the CanvasObject.
Definition: umlcanvasobject.cpp:132
void sigAssociationEndAdded(UMLAssociation *assoc)
Uml::ID::Type getObjectId(Uml::RoleType::Enum role) const
Returns the ID of the UMLObject assigned to the given role.
Definition: association.cpp:509
virtual QString uniqChildName(const UMLObject::ObjectType type, const QString &prefix=QString())
Returns a name for the new association, operation, template or attribute appended with a number if th...
Definition: umlcanvasobject.cpp:185
bool addAssociationEnd(UMLAssociation *assoc)
Adds an association end to m_List.
Definition: umlcanvasobject.cpp:83
virtual UMLAssociationList getRealizations()
Shorthand for getSpecificAssocs(Uml::at_Realization)
Definition: umlcanvasobject.cpp:413
Definition: umlobject.h:69
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.