PACK WOC  $VERSION$
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
WocSchemaOut Class Reference

generates output for a schema file More...

#include <schemaout.h>

Inheritance diagram for WocSchemaOut:
WocOutput

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

Detailed Description

generates output for a schema file

Constructor & Destructor Documentation

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

Parameters
dirnamethe directory below the base directory to store all Schema files in
filenamethe 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

Member Function Documentation

void WocSchemaOut::addStaticSchemas ( QString  compound = QString(),
WocProcessor::MessageEncoding  encoding = WocProcessor::DefaultEncoding 
)

copies the static parts of the schemas into the target directory

Parameters
compoundif not empty: the file name of a schema file that includes all schema files copied and created in the target directory
encodingif given the encoding that will be validated by the compound schema file
void WocSchemaOut::finalize ( )
protectedvirtual

writes any last words after parsing finished

Implements WocOutput.

void WocSchemaOut::initialize ( )
private

helper for the constructor

void WocSchemaOut::newClass ( const WocClass cls)
protectedvirtual

creates a class

Implements WocOutput.

void WocSchemaOut::newTable ( const WocTable )
protectedvirtual

creates a table

Implements WocOutput.

void WocSchemaOut::newTransaction ( const WocTransaction trn)
protectedvirtual

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

Member Data Documentation

QString WocSchemaOut::m_dir
private
QDomDocument WocSchemaOut::m_doc
private
QString WocSchemaOut::m_name
private
QDomElement WocSchemaOut::m_root
private

The documentation for this class was generated from the following files: