umbrello/umbrello
operation.h
Go to the documentation of this file.
void removeParm(UMLAttribute *a, bool emitModifiedSignal=true)
Remove a parameter from the operation.
Definition: operation.cpp:151
bool getConst() const
Returns whether this operation is a query (C++ "const").
Definition: operation.cpp:411
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: operation.cpp:309
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
QString getUniqueParameterName()
Returns an unused parameter name for a new parameter.
Definition: operation.cpp:272
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlattributelist.h:26
bool operator==(const UMLOperation &rhs) const
Overloaded '==' operator.
Definition: operation.cpp:285
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the operation.
Definition: operation.cpp:198
void setType(UMLObject *type)
Reimplement method from UMLClassifierListItem.
Definition: operation.cpp:87
bool isLifeOperation()
Shortcut for (isConstructorOperation() || isDestructorOperation()).
Definition: operation.cpp:395
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Saves to the XMI element.
Definition: operation.cpp:448
UMLAttribute * findParm(const QString &name)
Finds a parameter of the operation.
Definition: operation.cpp:182
void setSourceCode(const QString &code)
Sets the source code for this operation.
Definition: operation.cpp:432
void addParm(UMLAttribute *parameter, int position=-1)
Add a parameter to the operation.
Definition: operation.cpp:259
void setConst(bool b)
Sets whether this operation is a query (C++ "const").
Definition: operation.cpp:403
bool isDestructorOperation()
Returns whether this operation is a destructor.
Definition: operation.cpp:373
Definition: basictypes.h:57
UMLOperation(UMLClassifier *parent, const QString &name, Uml::ID::Type id=Uml::ID::None, Uml::Visibility::Enum s=Uml::Visibility::Public, UMLObject *rt=0)
Constructs an UMLOperation.
Definition: operation.cpp:44
bool showPropertiesDialog(QWidget *parent)
Display the properties configuration dialog for the template.
Definition: operation.cpp:421
void moveParmLeft(UMLAttribute *a)
Move a parameter one position to the left.
Definition: operation.cpp:99
Definition: basictypes.h:135
QString getSourceCode() const
Returns the source code for this operation.
Definition: operation.cpp:440
bool isConstructorOperation()
Returns whether this operation is a constructor.
Definition: operation.cpp:352
void moveParmRight(UMLAttribute *a)
Move a parameter one position to the right.
Definition: operation.cpp:123
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.