umbrello API Documentation

classifierinfo.h

00001 /***************************************************************************
00002                           classifierinfo.h  -  description
00003                              -------------------
00004     copyright            : (C) 2003 Brian Thomas
00005  ***************************************************************************/
00006 
00007 /***************************************************************************
00008  *                                                                         *
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU General Public License as published by  *
00011  *   the Free Software Foundation; either version 2 of the License, or     *
00012  *   (at your option) any later version.                                   *
00013  *                                                                         *
00014  *   copyright (C) 2004-2007                                               *
00015  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00016  ***************************************************************************/
00017 
00018 #ifndef CLASSIFIERINFO_H
00019 #define CLASSIFIERINFO_H
00020 
00021 #include "../classifier.h"
00022 #include "../umldoc.h"
00023 #include "../attribute.h"
00024 #include "../association.h"
00025 #include "../umlclassifierlist.h"
00026 #include "../umlassociationlist.h"
00027 #include "../umlattributelist.h"
00028 
00029 #include <qstring.h>
00030 
00035 class ClassifierInfo {
00036 public:
00037 
00041     ClassifierInfo (UMLClassifier * classifier, UMLDoc * doc);
00042 
00046     virtual ~ClassifierInfo();
00047 
00048     // Fields
00049     //
00050 
00055     UMLAttributeList atpub;
00056     UMLAttributeList atprot;
00057     UMLAttributeList atpriv;
00058 
00062     UMLAttributeList static_atpub;
00063     UMLAttributeList static_atprot;
00064     UMLAttributeList static_atpriv;
00065 
00069     UMLAssociationList plainAssociations;
00070     UMLAssociationList uniAssociations;
00071     UMLAssociationList aggregations;
00072     UMLAssociationList compositions;
00073 
00077     UMLClassifierList superclasses;
00078     UMLClassifierList subclasses;
00079 
00083     bool isInterface; // Whether or not this classifier is an interface.
00084     bool hasAssociations;
00085     bool hasAttributes;
00086     bool hasStaticAttributes;
00087     bool hasMethods;
00088     bool hasAccessorMethods;
00089     bool hasOperationMethods;
00090     bool hasVectorFields;
00091 
00095     QString className;
00096     QString fileName;
00097 
00103     UMLClassifierList getPlainAssocChildClassifierList();
00104     UMLClassifierList getAggregateChildClassifierList();
00105     UMLClassifierList getCompositionChildClassifierList();
00106 
00111     UMLAttributeList* getAttList();
00112 
00113 
00114 protected:
00115     void init (UMLClassifier *c);
00116 
00117 private:
00118 
00119     Uml::IDType m_nID; // id of the classifier
00120 
00127     UMLClassifierList findAssocClassifierObjsInRoles (UMLAssociationList * list);
00128 
00132     UMLAttributeList m_AttsList;
00133 
00134 };
00135 
00136 #endif // CLASSIFIERINFO_H
00137 
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