umbrello API Documentation

JavaWriter Class Reference

class JavaWriter is a code generator for UMLClassifier objects. More...

#include <javawriter.h>

Inheritance diagram for JavaWriter:

SimpleCodeGenerator CodeGenerator List of all members.

Public Member Functions

 JavaWriter ()
 Constructor, initialises a couple of variables.
virtual ~JavaWriter ()
 Destructor, empty.
virtual void writeClass (UMLClassifier *c)
 call this method to generate java code for a UMLClassifier
virtual Uml::Programming_Language getLanguage ()
 returns "Java"
QStringList defaultDatatypes ()
 Overrides method from class CodeGenerator.

Detailed Description

class JavaWriter is a code generator for UMLClassifier objects.

Create an instance of this class, and feed it a UMLClassifier when calling writeClass and it will generate a java source file for that concept

Definition at line 36 of file javawriter.h.


Constructor & Destructor Documentation

JavaWriter::JavaWriter  ) 
 

Constructor, initialises a couple of variables.

Definition at line 37 of file javawriter.cpp.

JavaWriter::~JavaWriter  )  [virtual]
 

Destructor, empty.

Definition at line 41 of file javawriter.cpp.


Member Function Documentation

void JavaWriter::writeClass UMLClassifier c  )  [virtual]
 

call this method to generate java code for a UMLClassifier

Parameters:
c the class to generate code for

Implements SimpleCodeGenerator.

Definition at line 47 of file javawriter.cpp.

References CodeGenerator::cleanName(), CodeGenerator::codeGenerated(), CodeGenerator::findFileName(), CodeGenerator::findObjectsRelated(), CodeGenerator::getHeadingFile(), and CodeGenerator::openFile().

Uml::Programming_Language JavaWriter::getLanguage  )  [virtual]
 

returns "Java"

Implements CodeGenerator.

Definition at line 43 of file javawriter.cpp.

QStringList JavaWriter::defaultDatatypes  )  [virtual]
 

Overrides method from class CodeGenerator.

Reimplemented from CodeGenerator.

Definition at line 701 of file javawriter.cpp.


The documentation for this class was generated from the following files:
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:08:05 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003