umbrello API Documentation

javacodegenerator.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   : Thu Jun 19 2003
00015  */
00016 
00017 
00018 
00019 #ifndef JAVACODEGENERATOR_H
00020 #define JAVACODEGENERATOR_H
00021 
00022 #include <qstring.h>
00023 #include "../codeviewerstate.h"
00024 #include "../codegenerator.h"
00025 #include "../codeblockwithcomments.h"
00026 #include "../umldoc.h"
00027 
00028 #include "classifierinfo.h"
00029 #include "javaclassifiercodedocument.h"
00030 #include "javaantcodedocument.h"
00031 
00032 #include "javacodegenerationpolicy.h"
00033 
00034 class CodeViewerDialog;
00035 
00036 class JavaCodeGenerator : public CodeGenerator
00037 {
00038     Q_OBJECT
00039 public:
00040 
00041     // Constructors/Destructors
00042     //
00043 
00044     static const bool DEFAULT_BUILD_ANT_DOC;
00045 
00049     JavaCodeGenerator ();
00050     JavaCodeGenerator (QDomElement & element);
00051 
00055     virtual ~JavaCodeGenerator ( );
00056 
00057     // Public attributes
00058     //
00059 
00060 
00061     // Public attribute accessor methods
00062     //
00063 
00064 
00069     void setCreateANTBuildFile ( bool new_var );
00070 
00075     bool getCreateANTBuildFile ( );
00076 
00080     bool getAutoGenerateAttribAccessors( );
00081 
00085     bool getAutoGenerateAssocAccessors( );
00086 
00090     static QString getListFieldClassName();
00091 
00094     virtual CodeViewerDialog * getCodeViewerDialog( QWidget* parent, CodeDocument * doc,
00095             Settings::CodeViewerState state);
00096 
00097     // Other methods
00098     //
00099 
00100     // general purpose function we may reuse for all types of Java code documents
00101     static QString capitalizeFirstLetter(const QString &string);
00102 
00106     JavaCodeGenerationPolicy * getJavaPolicy();
00107 
00112     CodeDocument * newClassifierCodeDocument (UMLClassifier * classifier);
00113 
00114     // return "Java"
00115     Uml::Programming_Language getLanguage();
00116 
00120     virtual QStringList defaultDatatypes();
00121 
00127     static QString fixTypeName(const QString &string);
00128 
00132     virtual const QStringList reservedKeywords() const;
00133 
00134 protected:
00135 
00139     CodeBlockWithComments * createClassDecl ( UMLClassifier *c, ClassifierInfo *info, JavaClassifierCodeDocument * doc);
00140 
00144     JavaANTCodeDocument * newANTCodeDocument ( );
00145 
00146 private:
00147 
00148     void init();
00149 
00150     bool m_createANTBuildFile;
00151 };
00152 
00153 #endif // JAVACODEGENERATOR_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