attribute.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef ATTRIBUTE_H
00013 #define ATTRIBUTE_H
00014
00015 #include "classifierlistitem.h"
00016 #include "umlnamespace.h"
00017 #include "umlclassifierlist.h"
00018
00028 class UMLAttribute : public UMLClassifierListItem {
00029 public:
00040 UMLAttribute(const UMLObject *parent, const QString& name,
00041 Uml::IDType id = Uml::id_None,
00042 Uml::Visibility s = Uml::Visibility::Private,
00043 UMLObject *type = 0, const QString& iv = 0);
00044
00050 UMLAttribute(const UMLObject *parent);
00051
00055 bool operator==( UMLAttribute &rhs);
00056
00060 virtual ~UMLAttribute();
00061
00066 virtual void copyInto(UMLAttribute *rhs) const;
00067
00071 virtual UMLObject* clone() const;
00072
00078 QString getInitialValue();
00079
00085 void setInitialValue( const QString &iv );
00086
00094 QString toString(Uml::Signature_Type sig = Uml::st_NoSig);
00095
00099 QString getFullyQualifiedName(QString separator = QString::null,
00100 bool includeRoot = false) const;
00101
00105 void saveToXMI( QDomDocument & qDoc, QDomElement & qElement );
00106
00110 virtual bool showPropertiesDialog(QWidget* parent);
00111
00112 void setParmKind (Uml::Parameter_Direction pk);
00113 Uml::Parameter_Direction getParmKind () const;
00114
00118 virtual UMLClassifierList getTemplateParams();
00119
00120 protected:
00124 bool load( QDomElement & element );
00125
00126 QString m_InitialValue;
00127 Uml::Parameter_Direction m_ParmKind;
00128
00129 private:
00133 void setTemplateParams(QString templateParam, UMLClassifierList &templateParamList);
00134
00135 };
00136
00137 #endif
This file is part of the documentation for umbrello Version 3.1.0.