umbrello/umbrello
attribute.cpp
Go to the documentation of this file.
352 void UMLAttribute::setTemplateParams(const QString& templateParam, UMLClassifierList &templateParamList)
QString getFullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Reimplement method from UMLObject.
Definition: attribute.cpp:183
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
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
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
QString getInitialValue() const
Returns The initial value of the UMLAttribute.
Definition: attribute.cpp:99
QDomNode appendChild(const QDomNode &newChild)
Uml::ParameterDirection::Enum getParmKind() const
Definition: attribute.cpp:122
QString attribute(const QString &name, const QString &defValue) const
void setVisibility(Uml::Visibility::Enum s)
Reimplementation of method from UMLObject is required as an extra signal, attributeChanged(), is emitted.
Definition: attribute.cpp:87
static bool tagEq(const QString &tag, const QString &pattern)
Function for comparing tags in XMI files.
Definition: umldoc.cpp:3081
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
Definition: basictypes.h:250
QString simplified() const
void setName(const QString &name)
Reimplementation of method from UMLObject is required as an extra signal, attributeChanged(), is emitted.
Definition: attribute.cpp:76
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the UMLAttribute object.
Definition: attribute.cpp:231
Definition: umlattributedialog.h:28
bool operator==(const UMLAttribute &rhs) const
Overloaded '==' operator.
Definition: attribute.cpp:211
Definition: umlobject.h:60
QString & remove(int position, int n)
virtual bool showPropertiesDialog(QWidget *parent)
Display the properties configuration dialog for the attribute.
Definition: attribute.cpp:343
UMLObject * findUMLObject(const UMLObjectList &inList, const QString &inName, UMLObject::ObjectType type, UMLObject *currentObj)
Find the UML object of the given type and name in the passed-in list.
Definition: model_utils.cpp:140
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:910
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
Definition: basictypes.h:58
QDomNode nextSibling() const
Definition: basictypes.h:252
int indexOf(const T &value, int from) const
QDomElement toElement() const
QString getXmiId(QDomElement element)
Return the xmi.id (XMI-1) or xmi:id (XMI-2) of a QDomElement.
Definition: model_utils.cpp:511
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Creates a UMLObject of the given type.
Definition: object_factory.cpp:192
Definition: basictypes.h:142
void append(const T &value)
Definition: basictypes.h:141
void setInitialValue(const QString &iv)
Sets the initial value of the UMLAttribute.
Definition: attribute.cpp:109
void setAttribute(const QString &name, const QString &value)
bool isEmpty() const
QString activeLanguageScopeSeparator()
Return the target language depedent scope separator.
Definition: uml.cpp:2459
Definition: basictypes.h:254
typedef Iterator
UMLAttribute(UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None, Uml::Visibility::Enum s=Uml::Visibility::Private, UMLObject *type=0, const QString &iv=QString())
Sets up an attribute.
Definition: attribute.cpp:35
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
QString right(int n) const
iterator end()
Definition: umlobject.h:59
bool isNull() const
QDomElement save(const QString &tag, QDomDocument &qDoc)
Auxiliary to saveToXMI.
Definition: umlobject.cpp:806
QDomNode firstChild() const
UMLPackage * umlPackage()
Returns the UMLPackage that this class is located in.
Definition: umlobject.cpp:639
QString mid(int position, int n) const
virtual UMLClassifierList getTemplateParams()
Returns all the template params (if any) that are in the type of this attribute.
Definition: attribute.cpp:404
bool isComment() const
Definition: basictypes.h:140
const QChar at(int position) const
int length() const
Definition: basictypes.h:233
QString left(int n) const
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates the XMI element.
Definition: attribute.cpp:259
void attributeChanged()
QString tagName() const
Uml::ProgrammingLanguage::Enum activeLanguage() const
Get the language for import and code generation.
Definition: uml.cpp:2439
QString m_SecondaryId
xmi.id of the secondary object for intermediate use during loading.
Definition: umlobject.h:186
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
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the UMLAttribute.
Definition: attribute.cpp:133
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Used to find a UMLObject by its type and name.
Definition: umldoc.cpp:825
iterator begin()
Definition: umlobject.h:55
UMLObjectList containedObjects()
Returns the list of objects contained in this package.
Definition: package.cpp:230
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
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.