generates output for a schema file More...
#include <schemaout.h>
Public Member Functions | |
WocSchemaOut (QString dirname, QString filename="project.xsd") | |
initializes the output object with the given directory and file name that will receive the schema for this project | |
WocSchemaOut (const QDomElement &) | |
initializes the output object with the given DOM element | |
void | addStaticSchemas (QString compound=QString(), WocProcessor::MessageEncoding encoding=WocProcessor::DefaultEncoding) |
copies the static parts of the schemas into the target directory | |
Protected Member Functions | |
virtual void | finalize () |
writes any last words after parsing finished | |
virtual void | newClass (const WocClass &) |
creates a class | |
virtual void | newTable (const WocTable &) |
creates a table | |
virtual void | newTransaction (const WocTransaction &) |
creates a transaction | |
Private Member Functions | |
void | initialize () |
helper for the constructor | |
QString | schemaType (QString) |
helper: returns the corresponding schema type for a WOB type | |
QString | schemaType (const WocClass &, QString) |
helper: returns the corresponding schema type for a WOB type | |
Private Attributes | |
QString | m_name |
QString | m_dir |
QDomDocument | m_doc |
QDomElement | m_root |
generates output for a schema file
WocSchemaOut::WocSchemaOut | ( | QString | dirname, | |
QString | filename = "project.xsd" | |||
) |
initializes the output object with the given directory and file name that will receive the schema for this project
dirname | the directory below the base directory to store all Schema files in | |
filename | the file that will contain the projects own XML Schema, per default "project.xsd" |
WocSchemaOut::WocSchemaOut | ( | const QDomElement & | el | ) |
initializes the output object with the given DOM element
void WocSchemaOut::addStaticSchemas | ( | QString | compound = QString() , |
|
WocProcessor::MessageEncoding | encoding = WocProcessor::DefaultEncoding | |||
) |
copies the static parts of the schemas into the target directory
compound | if not empty: the file name of a schema file that includes all schema files copied and created in the target directory | |
encoding | if given the encoding that will be validated by the compound schema file |
void WocSchemaOut::finalize | ( | ) | [protected, virtual] |
writes any last words after parsing finished
Implements WocOutput.
void WocSchemaOut::initialize | ( | ) | [private] |
helper for the constructor
void WocSchemaOut::newClass | ( | const WocClass & | cls | ) | [protected, virtual] |
creates a class
Implements WocOutput.
void WocSchemaOut::newTable | ( | const WocTable & | ) | [protected, virtual] |
creates a table
Implements WocOutput.
void WocSchemaOut::newTransaction | ( | const WocTransaction & | trn | ) | [protected, virtual] |
creates a transaction
Implements WocOutput.
QString WocSchemaOut::schemaType | ( | QString | tp | ) | [private] |
helper: returns the corresponding schema type for a WOB type
QString WocSchemaOut::schemaType | ( | const WocClass & | cls, | |
QString | prop | |||
) | [private] |
helper: returns the corresponding schema type for a WOB type
QString WocSchemaOut::m_dir [private] |
QDomDocument WocSchemaOut::m_doc [private] |
QString WocSchemaOut::m_name [private] |
QDomElement WocSchemaOut::m_root [private] |