umbrello API Documentation

javaclassifiercodedocument.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) 2004-2006                                               *
00009  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00010  ***************************************************************************/
00011 
00012 /*  This code generated by:
00013  *      Author : thomas
00014  *      Date   : Mon Jun 23 2003
00015  */
00016 
00017 
00018 
00019 #ifndef JAVACLASSIFIERCODEDOCUMENT_H
00020 #define JAVACLASSIFIERCODEDOCUMENT_H
00021 
00022 #include <qstring.h>
00023 #include "../codeclassfieldlist.h"
00024 #include "../classifiercodedocument.h"
00025 #include "../classifier.h"
00026 #include "../hierarchicalcodeblock.h"
00027 #include "classifierinfo.h"
00028 #include "javacodeclassfield.h"
00029 #include "javacodeoperation.h"
00030 
00031 class JavaClassDeclarationBlock;
00032 class JavaCodeGenerationPolicy;
00033 
00039 class JavaClassifierCodeDocument : public ClassifierCodeDocument
00040 {
00041     Q_OBJECT
00042 public:
00043 
00044     // Constructors/Destructors
00045     //
00046 
00047 
00051     JavaClassifierCodeDocument (UMLClassifier * classifier);
00052 
00056     virtual ~JavaClassifierCodeDocument ( );
00057 
00062     //CodeDocumentDialog getDialog ( );
00063 
00064     QString scopeToJavaDecl(Uml::Visibility scope);
00065     QString capitalizeFirstLetter(const QString &string);
00066 
00067     // Make it easier on ourselves
00068     JavaCodeGenerationPolicy * getJavaPolicy();
00069 
00070     QString getJavaClassName (const QString &name);
00071 
00072     QString getPath();
00073 
00077     bool addCodeOperation (CodeOperation * op );
00078 
00079 protected:
00080 
00081     // reset/clear our inventory of textblocks in this document
00082     void resetTextBlocks();
00083 
00088     virtual void loadChildTextBlocksFromNode ( QDomElement & root);
00089 
00090     void addOrUpdateCodeClassFieldMethodsInCodeBlock(CodeClassFieldList &list, JavaClassDeclarationBlock * codeBlock);
00091 
00092     bool forceDoc ();
00093 
00094     void updateContent();
00095 
00096 private:
00097 
00098     JavaClassDeclarationBlock * classDeclCodeBlock;
00099     HierarchicalCodeBlock * constructorBlock;
00100     HierarchicalCodeBlock * operationsBlock;
00101 
00102     ClassifierInfo * info;
00103     QString fileName; // Just for our convience in creating code
00104     QString endLine; // characters for ending line. Just for our convience in creating code
00105     QString JavaClassName;
00106 
00107     void init ( );
00108     JavaClassDeclarationBlock * getClassDecl();
00109 
00110 
00111 };
00112 
00113 #endif // JAVACLASSIFIERCODEDOCUMENT_H
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:57 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003