umbrello/umbrello
operation.cpp
Go to the documentation of this file.
451 operationElement.setAttribute(QLatin1String("isQuery"), m_bConst ? QLatin1String("true") : QLatin1String("false"));
452 QDomElement featureElement = qDoc.createElement(QLatin1String("UML:BehavioralFeature.parameter"));
void removeParm(UMLAttribute *a, bool emitModifiedSignal=true)
Remove a parameter from the operation.
Definition: operation.cpp:152
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
QString & append(QChar ch)
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:310
virtual bool loadFromXMI(QDomElement &element)
This method loads the generic parts of the XMI common to most model classes.
Definition: umlobject.cpp:912
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
Definition: basictypes.h:249
QString getInitialValue() const
Returns The initial value of the UMLAttribute.
Definition: attribute.cpp:99
QDomNode appendChild(const QDomNode &newChild)
virtual void setType(UMLObject *type)
Sets the type of the UMLAttribute.
Definition: classifierlistitem.cpp:125
Uml::ParameterDirection::Enum getParmKind() const
Definition: attribute.cpp:122
QString attribute(const QString &name, const QString &defValue) const
static bool tagEq(const QString &tag, const QString &pattern)
Function for comparing tags in XMI files.
Definition: umldoc.cpp:3081
QString getUniqueParameterName()
Returns an unused parameter name for a new parameter.
Definition: operation.cpp:273
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlattributelist.h:26
Definition: umlobject.h:60
QString & remove(int position, int n)
Definition: umloperationdialog.h:37
bool operator==(const UMLOperation &rhs) const
Overloaded '==' operator.
Definition: operation.cpp:286
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the operation.
Definition: operation.cpp:199
QDomNode nextSibling() const
int indexOf(const T &value, int from) const
void clear()
void setType(UMLObject *type)
Reimplement method from UMLClassifierListItem.
Definition: operation.cpp:88
QDomElement toElement() const
bool isLifeOperation()
Shortcut for (isConstructorOperation() || isDestructorOperation()).
Definition: operation.cpp:395
QString getXmiId(QDomElement element)
Return the xmi.id (XMI-1) or xmi:id (XMI-2) of a QDomElement.
Definition: model_utils.cpp:511
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Saves to the XMI element.
Definition: operation.cpp:448
Definition: basictypes.h:142
QString number(int n, int base)
int count(const T &value) const
UMLAttribute * findParm(const QString &name)
Finds a parameter of the operation.
Definition: operation.cpp:183
void append(const T &value)
Definition: basictypes.h:141
virtual bool resolveRef()
Resolve referenced objects (if any.) Needs to be called after all UML objects are loaded from file...
Definition: umlobject.cpp:707
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:260
void setAttribute(const QString &name, const QString &value)
bool isEmpty() const
int removeAll(const T &value)
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
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:235
bool hasChildNodes() const
QString stereotype(bool includeAdornments=false) const
Returns the stereotype.
Definition: umlobject.cpp:579
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:45
bool isNull() const
QDomElement save(const QString &tag, QDomDocument &qDoc)
Auxiliary to saveToXMI.
Definition: umlobject.cpp:806
bool showPropertiesDialog(QWidget *parent)
Display the properties configuration dialog for the template.
Definition: operation.cpp:421
QDomNode firstChild() const
Definition: basictypes.h:143
UMLPackage * umlPackage()
Returns the UMLPackage that this class is located in.
Definition: umlobject.cpp:639
QString mid(int position, int n) const
void insert(int i, const T &value)
bool isComment() const
void moveParmLeft(UMLAttribute *a)
Move a parameter one position to the left.
Definition: operation.cpp:100
Definition: basictypes.h:140
QString getSourceCode() const
Returns the source code for this operation.
Definition: operation.cpp:440
Definition: basictypes.h:257
int length() const
Definition: basictypes.h:233
QString tagName() const
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:2439
QDomElement createElement(const QString &tagName)
bool isConstructorOperation()
Returns whether this operation is a constructor.
Definition: operation.cpp:353
QString m_SecondaryId
xmi.id of the secondary object for intermediate use during loading.
Definition: umlobject.h:186
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
Definition: basictypes.h:234
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Returns the fully qualified name, i.e.
Definition: umlobject.cpp:202
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:133
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:117
void moveParmRight(UMLAttribute *a)
Move a parameter one position to the right.
Definition: operation.cpp:124
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.