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:893
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:1043
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:726
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:493
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Returns the entries in m_List that are of the requested type.
Definition: classifier.cpp:1019
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:756
virtual bool load(QDomElement &element)
Auxiliary to loadFromXMI: The loading of operations is implemented here.
Definition: classifier.cpp:1509
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:1281
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:238
int removeTemplate(UMLTemplate *umltemplate)
Removes a template from the class.
Definition: classifier.cpp:1120
QLinkedList< NameAndType > NameAndType_List
Auxiliary type for OpDescriptor.
Definition: model_utils.h:109
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:528
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:136
int removeOperation(UMLOperation *op)
Remove an operation from the Classifier.
Definition: classifier.cpp:364
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:304
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:112
void setClassAssoc(UMLAssociation *assoc)
Sets the UMLAssociation for which this class shall act as an association class.
Definition: classifier.cpp:912
UMLClassifierList findSubClassConcepts(ClassifierType type=ALL)
Returns a list of concepts which inherit from this concept.
Definition: classifier.cpp:577
void attributeRemoved(UMLClassifierListItem *)
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Utility method called by "get*ChildClassfierList()" methods.
Definition: classifier.cpp:1403
virtual bool resolveRef()
Needs to be called after all UML objects are loaded from file.
Definition: classifier.cpp:692
bool hasStaticAttributes()
Return true if this classifier has static attributes.
Definition: classifier.cpp:1323
bool hasVectorFields()
Return true if this classifier has vector fields.
Definition: classifier.cpp:1361
virtual UMLAssociationList getUniAssociationToBeImplemented()
Return the list of unidirectional association that should show up in the code.
Definition: classifier.cpp:1369
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: classifier.cpp:665
virtual UMLObject * findChildObjectById(Uml::ID::Type id, bool considerAncestors=false)
Find the child object by the given id.
Definition: classifier.cpp:553
UMLClassifierList findSuperClassConcepts(ClassifierType type=ALL)
Returns a list of concepts which this concept inherits from.
Definition: classifier.cpp:616
UMLAttributeList getAttributeList() const
Returns the attributes for the specified scope.
Definition: classifier.cpp:441
Definition: classifier.h:47
UMLClassifier * originType() const
Get the origin type (in case of e.g.
Definition: classifier.cpp:1272
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:1487
UMLObject * createTemplate(const QString &name=QString())
Create and add a just created template.
Definition: classifier.cpp:387
bool hasAbstractOps()
Return true if this classifier has abstract operations.
Definition: classifier.cpp:930
bool isDatatype() const
Returns true if this classifier represents a datatype.
Definition: classifier.cpp:120
UMLOperationList getOpList(bool includeInherited=false, UMLClassifierSet *alreadyTraversed=0)
Return a list of operations for the Classifier.
Definition: classifier.cpp:960
bool hasAccessorMethods()
Return true if this classifier has accessor methods.
Definition: classifier.cpp:1333
UMLAttribute * addAttribute(const QString &name, Uml::ID::Type id=Uml::ID::None)
Creates and adds an attribute for the class.
Definition: classifier.cpp:810
UMLTemplate * findTemplate(const QString &name)
Seeks the template parameter of the given name.
Definition: classifier.cpp:1137
bool hasOperationMethods()
Return true if this classifier has operation methods.
Definition: classifier.cpp:1341
UMLOperation * findOperation(const QString &name, Model_Utils::NameAndType_List params)
Find an operation of the given name and parameter signature.
Definition: classifier.cpp:181
void setOriginType(UMLClassifier *origType)
Set the origin type (in case of e.g.
Definition: classifier.cpp:1263
int takeItem(UMLClassifierListItem *item)
Take and return a subordinate item from this classifier.
Definition: classifier.cpp:1186
bool operator==(const UMLClassifier &rhs) const
Overloaded '==' operator.
Definition: classifier.cpp:648
void templateRemoved(UMLClassifierListItem *)
UMLAssociation * getClassAssoc() const
Returns the UMLAssociation for which this class acts as an association class.
Definition: classifier.cpp:922
bool hasAssociations()
Return true if this classifier has associations.
Definition: classifier.cpp:1299
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 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:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.