umbrello/umbrello
XMLSchemaWriter Class Reference
Class XMLSchemaWriter is a code generator for UMLClassifier objects. More...
#include <xmlschemawriter.h>

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] |
| 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:
KDE 4.4 API Reference