umbrello API Documentation

XMLSchemaWriter Class Reference

Class XMLSchemaWriter is a code generator for UMLClassifier objects. More...

#include <xmlschemawriter.h>

Inheritance diagram for XMLSchemaWriter:

SimpleCodeGenerator CodeGenerator List of all members.

Public Member Functions

 XMLSchemaWriter ()
 Constructor, initialises a couple of variables.
virtual ~XMLSchemaWriter ()
 Destructor, empty.
virtual void writeClass (UMLClassifier *c)
 call this method to generate XMLschema code for a UMLClassifier
virtual Uml::Programming_Language getLanguage ()
 returns "XMLSchema"
virtual const QStringList reservedKeywords () const
 get list of reserved keywords

Detailed Description

Class XMLSchemaWriter 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 XMLschema source file for that concept

Our basic approach is to map UMLClassifiers (classes/interfaces) into XML elements (or nodes). We declare these element in the schema either as complexType or as groups based on whether they are concrete or abstract in nature. This is not a perfect decision, but thats life with XML Schema... you cant fully represent Objects in the XML world ..yet. -b.t.

Definition at line 43 of file xmlschemawriter.h.


Constructor & Destructor Documentation

XMLSchemaWriter::XMLSchemaWriter  ) 
 

Constructor, initialises a couple of variables.

Definition at line 31 of file xmlschemawriter.cpp.

XMLSchemaWriter::~XMLSchemaWriter  )  [virtual]
 

Destructor, empty.

Definition at line 41 of file xmlschemawriter.cpp.


Member Function Documentation

void XMLSchemaWriter::writeClass UMLClassifier c  )  [virtual]
 

call this method to generate XMLschema code for a UMLClassifier

Parameters:
c the class to generate code for

Implements SimpleCodeGenerator.

Definition at line 52 of file xmlschemawriter.cpp.

References CodeGenerator::codeGenerated(), CodeGenerator::findFileName(), CodeGenerator::getHeadingFile(), SimpleCodeGenerator::getIndent(), and CodeGenerator::openFile().

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

returns "XMLSchema"

Implements CodeGenerator.

Definition at line 47 of file xmlschemawriter.cpp.

const QStringList XMLSchemaWriter::reservedKeywords  )  const [virtual]
 

get list of reserved keywords

Reimplemented from CodeGenerator.

Definition at line 783 of file xmlschemawriter.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:08 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003