Qt 4.8
|
A context for schema parsing. More...
#include <qxsdschemaparsercontext_p.h>
Public Types | |
typedef QExplicitlySharedDataPointer< XsdSchemaParserContext > | Ptr |
Public Functions | |
XsdSchemaChecker::Ptr | checker () const |
QXmlName | createAnonymousName (const QString &targetNamespace) const |
ElementDescription< XsdSchemaToken, XsdTagScope::Type >::Hash | elementDescriptions () const |
NamePool::Ptr | namePool () const |
XsdSchemaResolver::Ptr | resolver () const |
XsdSchema::Ptr | schema () const |
XsdSchemaParserContext (const NamePool::Ptr &namePool, const XsdSchemaContext::Ptr &context) | |
Public Functions inherited from QSharedData | |
QSharedData () | |
Constructs a QSharedData object with a reference count of 0. More... | |
QSharedData (const QSharedData &) | |
Constructs a QSharedData object with reference count 0. More... | |
Static Private Functions | |
static ElementDescription< XsdSchemaToken, XsdTagScope::Type >::Hash | setupElementDescriptions () |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
A context for schema parsing.
This class provides a context for all components that are nedded for parsing and compiling the XML schema.
Definition at line 158 of file qxsdschemaparsercontext_p.h.
typedef QExplicitlySharedDataPointer<XsdSchemaParserContext> QPatternist::XsdSchemaParserContext::Ptr |
A smart pointer wrapping XsdSchemaParserContext instances.
Definition at line 164 of file qxsdschemaparsercontext_p.h.
XsdSchemaParserContext::XsdSchemaParserContext | ( | const NamePool::Ptr & | namePool, |
const XsdSchemaContext::Ptr & | context | ||
) |
Creates a new schema parser context object.
namePool | The name pool where all names of the schema will be stored in. |
context | The schema context to use for error reporting etc. |
Definition at line 48 of file qxsdschemaparsercontext.cpp.
XsdSchemaChecker::Ptr XsdSchemaParserContext::checker | ( | ) | const |
Returns the schema resolver of the schema context.
Definition at line 67 of file qxsdschemaparsercontext.cpp.
Returns an unique name that is used by the schema parser for anonymous types.
targetNamespace | The namespace of the name. |
Definition at line 82 of file qxsdschemaparsercontext.cpp.
Referenced by QPatternist::XsdSchemaParser::parseLocalComplexType(), QPatternist::XsdSchemaParser::parseLocalSimpleType(), and QPatternist::XsdSchemaParser::parseRedefine().
ElementDescription< XsdSchemaToken, XsdTagScope::Type >::Hash XsdSchemaParserContext::elementDescriptions | ( | ) | const |
Returns the element descriptions for the schema parser.
The element descriptions are a fast lookup table for verifying whether certain attributes are allowed for a given element type.
Definition at line 77 of file qxsdschemaparsercontext.cpp.
Referenced by setupElementDescriptions().
NamePool::Ptr XsdSchemaParserContext::namePool | ( | ) | const |
Returns the name pool of the schema parser context.
Definition at line 57 of file qxsdschemaparsercontext.cpp.
XsdSchemaResolver::Ptr XsdSchemaParserContext::resolver | ( | ) | const |
Returns the schema resolver of the schema context.
Definition at line 62 of file qxsdschemaparsercontext.cpp.
Referenced by QPatternist::XsdSchemaParser::parseRedefine(), and QPatternist::XsdSchemaParser::XsdSchemaParser().
XsdSchema::Ptr XsdSchemaParserContext::schema | ( | ) | const |
Returns the schema object of the schema context.
Definition at line 72 of file qxsdschemaparsercontext.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::loadSchema(), QPatternist::XsdSchemaParser::parseRedefine(), and QPatternist::XsdSchemaParser::XsdSchemaParser().
|
staticprivate |
Fills the element description hash with the required and prohibited attributes.
Definition at line 91 of file qxsdschemaparsercontext.cpp.
|
mutableprivate |
Definition at line 223 of file qxsdschemaparsercontext_p.h.
Referenced by createAnonymousName().
|
private |
Definition at line 220 of file qxsdschemaparsercontext_p.h.
Referenced by checker().
|
private |
Definition at line 222 of file qxsdschemaparsercontext_p.h.
Referenced by elementDescriptions().
|
private |
Definition at line 218 of file qxsdschemaparsercontext_p.h.
Referenced by createAnonymousName(), and namePool().
|
private |
Definition at line 221 of file qxsdschemaparsercontext_p.h.
Referenced by resolver().
|
private |
Definition at line 219 of file qxsdschemaparsercontext_p.h.
Referenced by schema().