PACK WOC
$VERSION$
|
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 More... | |
WocSchemaOut (const QDomElement &) | |
initializes the output object with the given DOM element More... | |
void | addStaticSchemas (QString compound=QString(), WocProcessor::MessageEncoding encoding=WocProcessor::DefaultEncoding) |
copies the static parts of the schemas into the target directory More... | |
Public Member Functions inherited from WocOutput | |
WocOutput () | |
the constructor should set up and initialize the environment of the generator More... | |
virtual | ~WocOutput () |
currently there is no guarantee that the destructor is ever called. More... | |
Protected Member Functions | |
virtual void | finalize () |
writes any last words after parsing finished More... | |
virtual void | newClass (const WocClass &) |
creates a class More... | |
virtual void | newTable (const WocTable &) |
creates a table More... | |
virtual void | newTransaction (const WocTransaction &) |
creates a transaction More... | |
Private Member Functions | |
void | initialize () |
helper for the constructor More... | |
QString | schemaType (QString) |
helper: returns the corresponding schema type for a WOB type More... | |
QString | schemaType (const WocClass &, QString) |
helper: returns the corresponding schema type for a WOB type More... | |
Private Attributes | |
QString | m_name |
QString | m_dir |
QDomDocument | m_doc |
QDomElement | m_root |
Additional Inherited Members | |
Signals inherited from WocOutput | |
void | errorFound () |
Protected Slots inherited from WocOutput |
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 |
|
protectedvirtual |
writes any last words after parsing finished
Implements WocOutput.
|
private |
helper for the constructor
|
protectedvirtual |
creates a class
Implements WocOutput.
|
protectedvirtual |
creates a table
Implements WocOutput.
|
protectedvirtual |
creates a transaction
Implements WocOutput.
|
private |
helper: returns the corresponding schema type for a WOB type
|
private |
helper: returns the corresponding schema type for a WOB type
|
private |
|
private |
|
private |
|
private |