umbrello/umbrello
operation.cpp
Go to the documentation of this file.
void removeParm(UMLAttribute *a, bool emitModifiedSignal=true)
Remove a parameter from the operation.
Definition: operation.cpp:151
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
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
UMLClassifier * getType() const
Returns the type of the UMLClassifierListItem.
Definition: classifierlistitem.cpp:100
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: operation.cpp:309
virtual bool loadFromXMI(QDomElement &element)
This method loads the generic parts of the XMI common to most model classes.
Definition: umlobject.cpp:914
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
Definition: basictypes.h:243
QString getInitialValue() const
Returns The initial value of the UMLAttribute.
Definition: attribute.cpp:98
virtual void setType(UMLObject *type)
Sets the type of the UMLAttribute.
Definition: classifierlistitem.cpp:125
Uml::ParameterDirection::Enum getParmKind() const
Definition: attribute.cpp:121
static bool tagEq(const QString &tag, const QString &pattern)
Function for comparing tags in XMI files.
Definition: umldoc.cpp:3030
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
Definition: umlobject.h:59
Definition: umloperationdialog.h:37
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
Definition: basictypes.h:137
UMLAttribute * findParm(const QString &name)
Finds a parameter of the operation.
Definition: operation.cpp:182
Definition: basictypes.h:136
virtual bool resolveRef()
Resolve referenced objects (if any.) Needs to be called after all UML objects are loaded from file...
Definition: umlobject.cpp:709
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
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: classifierlistitem.cpp:77
QString toString(Enum item, bool mnemonic)
Convert Visibility item into QString representation.
Definition: basictypes.cpp:99
Definition: basictypes.h:229
QString stereotype(bool includeAdornments=false) const
Returns the stereotype.
Definition: umlobject.cpp:581
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
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
QDomElement save(const QString &tag, QDomDocument &qDoc)
Auxiliary to saveToXMI.
Definition: umlobject.cpp:808
bool showPropertiesDialog(QWidget *parent)
Display the properties configuration dialog for the template.
Definition: operation.cpp:421
Definition: basictypes.h:138
UMLPackage * umlPackage()
Returns the UMLPackage that this class is located in.
Definition: umlobject.cpp:641
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
Definition: basictypes.h:251
Definition: basictypes.h:227
virtual void copyInto(UMLAttributeList *rhs) const
Copy the internal presentation of this object into the new object.
Definition: umlattributelist.cpp:34
Uml::ProgrammingLanguage::Enum activeLanguage() const
Get the language for import and code generation.
Definition: uml.cpp:2353
bool isConstructorOperation()
Returns whether this operation is a constructor.
Definition: operation.cpp:352
QString m_SecondaryId
xmi.id of the secondary object for intermediate use during loading.
Definition: umlobject.h:186
Definition: basictypes.h:228
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Returns the fully qualified name, i.e.
Definition: umlobject.cpp:201
virtual QString getTypeName() const
Returns the type name of the UMLClassifierListItem.
Definition: classifierlistitem.cpp:110
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the UMLAttribute.
Definition: attribute.cpp:132
void modified()
UMLObject * m_pSecondary
pointer to an associated object Only a few of the classes inheriting from UMLObject use this...
Definition: umlobject.h:182
void setParmKind(Uml::ParameterDirection::Enum pk)
Definition: attribute.cpp:116
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.