• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • kdesdk
  • Sitemap
  • Contact Us
 

umbrello/umbrello

XMLSchemaWriter Class Reference

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

#include <xmlschemawriter.h>

Inheritance diagram for XMLSchemaWriter:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 XMLSchemaWriter ()
virtual ~XMLSchemaWriter ()
virtual Uml::Programming_Language getLanguage ()
virtual const QStringList reservedKeywords () const
virtual void writeClass (UMLClassifier *c)

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 37 of file xmlschemawriter.h.


Constructor & Destructor Documentation

XMLSchemaWriter::XMLSchemaWriter (  ) 

Constructor, initialises a couple of variables.

Definition at line 28 of file xmlschemawriter.cpp.

XMLSchemaWriter::~XMLSchemaWriter (  )  [virtual]

Destructor, empty.

Definition at line 37 of file xmlschemawriter.cpp.


Member Function Documentation

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

returns "XMLSchema"

Implements CodeGenerator.

Definition at line 44 of file xmlschemawriter.cpp.

const QStringList XMLSchemaWriter::reservedKeywords (  )  const [virtual]

get list of reserved keywords

Reimplemented from CodeGenerator.

Definition at line 759 of file xmlschemawriter.cpp.

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 50 of file xmlschemawriter.cpp.


The documentation for this class was generated from the following files:
  • xmlschemawriter.h
  • xmlschemawriter.cpp

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdesdk

Skip menu "kdesdk"
  • kapptemplate
  • kate
  •     kate
  • kbugbuster
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal