XMLSchemaWriter Class Reference
Class XMLSchemaWriter is a code generator for UMLClassifier objects. More...
#include <xmlschemawriter.h>
Inheritance diagram for XMLSchemaWriter:

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
|
|
Constructor, initialises a couple of variables.
Definition at line 31 of file xmlschemawriter.cpp. |
|
|
Destructor, empty.
Definition at line 41 of file xmlschemawriter.cpp. |
Member Function Documentation
|
|
call this method to generate XMLschema code for a UMLClassifier
Implements SimpleCodeGenerator. Definition at line 52 of file xmlschemawriter.cpp. References CodeGenerator::codeGenerated(), CodeGenerator::findFileName(), CodeGenerator::getHeadingFile(), SimpleCodeGenerator::getIndent(), and CodeGenerator::openFile(). |
|
|
returns "XMLSchema"
Implements CodeGenerator. Definition at line 47 of file xmlschemawriter.cpp. |
|
|
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:
