umbrello/umbrello
classifier.h
Go to the documentation of this file.
92 UMLOperationList getOpList(bool includeInherited = false, UMLClassifierSet *alreadyTraversed = 0);
int removeAttribute(UMLAttribute *att)
Removes an attribute from the class.
Definition: classifier.cpp:901
void attributeAdded(UMLClassifierListItem *)
void operationAdded(UMLClassifierListItem *)
void templateAdded(UMLClassifierListItem *)
void operationRemoved(UMLClassifierListItem *)
UMLTemplate * addTemplate(const QString &name, Uml::ID::Type id=Uml::ID::None)
Adds an already created template.
Definition: classifier.cpp:1051
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
Definition: classifier.h:47
This sub-class adds copyInto and clone to the QPtrList base class...
Definition: umlclassifierlistitemlist.h:26
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
virtual bool acceptAssociationType(Uml::AssociationType::Enum type)
Reimplemented from UMLObject.
Definition: classifier.cpp:734
Definition: classifier.h:47
Definition: classifier.h:47
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
UMLAttributeList getAttributeListStatic(Uml::Visibility::Enum scope) const
Returns the static attributes for the specified scope.
Definition: classifier.cpp:501
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Returns the entries in m_List that are of the requested type.
Definition: classifier.cpp:1027
virtual UMLAttribute * createAttribute(const QString &name=QString(), UMLObject *type=0, Uml::Visibility::Enum vis=Uml::Visibility::Private, const QString &init=QString())
Creates an attribute for the class.
Definition: classifier.cpp:764
virtual bool load(QDomElement &element)
Auxiliary to loadFromXMI: The loading of operations is implemented here.
Definition: classifier.cpp:1525
This class contains all the ID translations done for each UMLObject pasted.
Definition: idchangelog.h:26
void setIsReference(bool isRef=true)
Set the m_isRef flag (true when dealing with a pointer type)
Definition: classifier.cpp:1289
UMLOperation * createOperation(const QString &name=QString(), bool *isExistingOp=NULL, Model_Utils::NameAndType_List *params=NULL)
Creates an operation in the current document.
Definition: classifier.cpp:243
int removeTemplate(UMLTemplate *umltemplate)
Removes a template from the class.
Definition: classifier.cpp:1128
void setBaseType(UMLObject::ObjectType ot)
Reimplementation of method from class UMLObject for controlling the exact type of this classifier: cl...
Definition: classifier.cpp:82
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlattributelist.h:26
This class holds information used by template classes, called paramaterised class in UML and a generi...
Definition: template.h:26
UMLOperationList findOperations(const QString &n)
Find a list of operations with the given name.
Definition: classifier.cpp:536
UMLOperation * checkOperationSignature(const QString &name, UMLAttributeList opParams, UMLOperation *exemptOp=NULL)
Checks whether an operation is valid based on its signature - An operation is "valid" if the operatio...
Definition: classifier.cpp:141
int removeOperation(UMLOperation *op)
Remove an operation from the Classifier.
Definition: classifier.cpp:372
Definition: basictypes.h:58
This class contains the non-graphic representation of an association.
Definition: association.h:32
bool addOperation(UMLOperation *op, int position=-1)
Appends an operation to the classifier.
Definition: classifier.cpp:312
UMLClassifier(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Sets up a Classifier.
Definition: classifier.cpp:62
bool isInterface() const
Returns true if this classifier represents an interface.
Definition: classifier.cpp:117
void setClassAssoc(UMLAssociation *assoc)
Sets the UMLAssociation for which this class shall act as an association class.
Definition: classifier.cpp:920
UMLClassifierList findSubClassConcepts(ClassifierType type=ALL)
Returns a list of concepts which inherit from this concept.
Definition: classifier.cpp:585
void attributeRemoved(UMLClassifierListItem *)
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Utility method called by "get*ChildClassfierList()" methods.
Definition: classifier.cpp:1413
virtual bool resolveRef()
Needs to be called after all UML objects are loaded from file.
Definition: classifier.cpp:700
bool hasStaticAttributes()
Return true if this classifier has static attributes.
Definition: classifier.cpp:1331
bool hasVectorFields()
Return true if this classifier has vector fields.
Definition: classifier.cpp:1369
virtual UMLAssociationList getUniAssociationToBeImplemented()
Return the list of unidirectional association that should show up in the code.
Definition: classifier.cpp:1377
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: classifier.cpp:673
virtual UMLObject * findChildObjectById(Uml::ID::Type id, bool considerAncestors=false)
Find the child object by the given id.
Definition: classifier.cpp:561
UMLClassifierList findSuperClassConcepts(ClassifierType type=ALL)
Returns a list of concepts which this concept inherits from.
Definition: classifier.cpp:624
UMLAttributeList getAttributeList() const
Returns the attributes for the specified scope.
Definition: classifier.cpp:449
Definition: classifier.h:47
UMLClassifier * originType() const
Get the origin type (in case of e.g.
Definition: classifier.cpp:1280
virtual UMLClassifierListItem * makeChildObject(const QString &xmiTag)
utility functions to allow easy determination of what classifiers are "owned" by the current one via ...
Definition: classifier.cpp:1501
UMLObject * createTemplate(const QString &name=QString())
Create and add a just created template.
Definition: classifier.cpp:395
bool hasAbstractOps()
Return true if this classifier has abstract operations.
Definition: classifier.cpp:938
bool isDatatype() const
Returns true if this classifier represents a datatype.
Definition: classifier.cpp:125
UMLOperationList getOpList(bool includeInherited=false, UMLClassifierSet *alreadyTraversed=0)
Return a list of operations for the Classifier.
Definition: classifier.cpp:968
bool hasAccessorMethods()
Return true if this classifier has accessor methods.
Definition: classifier.cpp:1341
UMLAttribute * addAttribute(const QString &name, Uml::ID::Type id=Uml::ID::None)
Creates and adds an attribute for the class.
Definition: classifier.cpp:818
UMLTemplate * findTemplate(const QString &name)
Seeks the template parameter of the given name.
Definition: classifier.cpp:1145
bool hasOperationMethods()
Return true if this classifier has operation methods.
Definition: classifier.cpp:1349
UMLOperation * findOperation(const QString &name, Model_Utils::NameAndType_List params)
Find an operation of the given name and parameter signature.
Definition: classifier.cpp:186
void setOriginType(UMLClassifier *origType)
Set the origin type (in case of e.g.
Definition: classifier.cpp:1271
int takeItem(UMLClassifierListItem *item)
Take and return a subordinate item from this classifier.
Definition: classifier.cpp:1194
bool operator==(const UMLClassifier &rhs) const
Overloaded '==' operator.
Definition: classifier.cpp:656
void templateRemoved(UMLClassifierListItem *)
UMLAssociation * getClassAssoc() const
Returns the UMLAssociation for which this class acts as an association class.
Definition: classifier.cpp:930
bool hasAssociations()
Return true if this classifier has associations.
Definition: classifier.cpp:1307
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:25 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:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.