umbrello API Documentation

attribute.h

00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  *   copyright (C) 2002-2006                                               *
00009  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
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
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:07:54 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003