Qt 4.8
Public Functions | Public Variables | List of all members
QXmlSchemaValidatorPrivate Class Reference

#include <qxmlschemavalidator_p.h>

Public Functions

 QXmlSchemaValidatorPrivate (const QXmlSchema &schema)
 
void setSchema (const QXmlSchema &schema)
 

Public Variables

QPatternist::XsdSchemaContext::Ptr m_context
 
QPatternist::ReferenceCountedValue< QAbstractMessageHandler >::Ptr m_messageHandler
 
QXmlNamePool m_namePool
 
QPatternist::ReferenceCountedValue< QNetworkAccessManager >::Ptr m_networkAccessManager
 
QXmlSchema m_originalSchema
 
QPatternist::XsdSchema::Ptr m_schema
 
QUrl m_schemaDocumentUri
 
const QAbstractUriResolverm_uriResolver
 
QAbstractMessageHandlerm_userMessageHandler
 
QNetworkAccessManagerm_userNetworkAccessManager
 

Detailed Description

Definition at line 71 of file qxmlschemavalidator_p.h.

Constructors and Destructors

◆ QXmlSchemaValidatorPrivate()

QXmlSchemaValidatorPrivate::QXmlSchemaValidatorPrivate ( const QXmlSchema schema)
inline

Definition at line 74 of file qxmlschemavalidator_p.h.

75  : m_namePool(schema.namePool())
77  , m_uriResolver(0)
79  {
80  setSchema(schema);
81 
82  const QXmlSchemaPrivate *p = schema.d;
83 
84  // initialize the environment properties with the ones from the schema
85 
86  if (p->m_userNetworkAccessManager) // schema has user defined network access manager
88  else
90 
91  if (p->m_userMessageHandler) // schema has user defined message handler
93  else
95 
97  }
QSharedDataPointer< QXmlSchemaPrivate > d
Definition: qxmlschema.h:90
QPatternist::ReferenceCountedValue< QAbstractMessageHandler >::Ptr m_messageHandler
Definition: qxmlschema_p.h:96
QAbstractMessageHandler * m_userMessageHandler
QNetworkAccessManager * m_userNetworkAccessManager
QPatternist::ReferenceCountedValue< QNetworkAccessManager >::Ptr m_networkAccessManager
const QAbstractUriResolver * m_uriResolver
Definition: qxmlschema_p.h:94
QPatternist::ReferenceCountedValue< QNetworkAccessManager >::Ptr m_networkAccessManager
Definition: qxmlschema_p.h:97
QAbstractMessageHandler * m_userMessageHandler
Definition: qxmlschema_p.h:93
QNetworkAccessManager * m_userNetworkAccessManager
Definition: qxmlschema_p.h:95
const QAbstractUriResolver * m_uriResolver
QPatternist::ReferenceCountedValue< QAbstractMessageHandler >::Ptr m_messageHandler
QXmlNamePool namePool() const
Returns the name pool used by this QXmlSchema for constructing QXmlName {names}.
Definition: qxmlschema.cpp:192
void setSchema(const QXmlSchema &schema)

Functions

◆ setSchema()

void QXmlSchemaValidatorPrivate::setSchema ( const QXmlSchema schema)
inline

Definition at line 99 of file qxmlschemavalidator_p.h.

Referenced by QXmlSchemaValidatorPrivate(), and QXmlSchemaValidator::setSchema().

100  {
101  // use same name pool as the schema
102  m_namePool = schema.namePool();
103  m_schema = schema.d->m_schemaParserContext->schema();
104  m_schemaDocumentUri = schema.documentUri();
105 
106  // create a new schema context
108  m_context->m_schemaTypeFactory = schema.d->m_schemaContext->m_schemaTypeFactory;
109  m_context->m_builtinTypesFacetList = schema.d->m_schemaContext->m_builtinTypesFacetList;
110 
111  m_originalSchema = schema;
112  }
QSharedDataPointer< QXmlSchemaPrivate > d
Definition: qxmlschema.h:90
QUrl documentUri() const
Returns the document URI of the schema or an empty URI if no schema has been set. ...
Definition: qxmlschema.cpp:201
A context for schema parsing and validation.
QPatternist::XsdSchemaContext::Ptr m_schemaContext
Definition: qxmlschema_p.h:99
QPatternist::XsdSchema::Ptr m_schema
QPatternist::XsdSchemaParserContext::Ptr m_schemaParserContext
Definition: qxmlschema_p.h:100
QExplicitlySharedDataPointer< XsdSchemaContext > Ptr
QPatternist::XsdSchemaContext::Ptr m_context
QExplicitlySharedDataPointer< QPatternist::NamePool > d
Definition: qxmlnamepool.h:88
QXmlNamePool namePool() const
Returns the name pool used by this QXmlSchema for constructing QXmlName {names}.
Definition: qxmlschema.cpp:192

Properties

◆ m_context

QPatternist::XsdSchemaContext::Ptr QXmlSchemaValidatorPrivate::m_context

Definition at line 122 of file qxmlschemavalidator_p.h.

Referenced by setSchema(), and QXmlSchemaValidator::validate().

◆ m_messageHandler

QPatternist::ReferenceCountedValue<QAbstractMessageHandler>::Ptr QXmlSchemaValidatorPrivate::m_messageHandler

◆ m_namePool

QXmlNamePool QXmlSchemaValidatorPrivate::m_namePool

Definition at line 114 of file qxmlschemavalidator_p.h.

Referenced by QXmlSchemaValidator::namePool(), and setSchema().

◆ m_networkAccessManager

QPatternist::ReferenceCountedValue<QNetworkAccessManager>::Ptr QXmlSchemaValidatorPrivate::m_networkAccessManager

◆ m_originalSchema

QXmlSchema QXmlSchemaValidatorPrivate::m_originalSchema

Definition at line 121 of file qxmlschemavalidator_p.h.

Referenced by QXmlSchemaValidator::schema(), and setSchema().

◆ m_schema

QPatternist::XsdSchema::Ptr QXmlSchemaValidatorPrivate::m_schema

Definition at line 123 of file qxmlschemavalidator_p.h.

Referenced by setSchema(), and QXmlSchemaValidator::validate().

◆ m_schemaDocumentUri

QUrl QXmlSchemaValidatorPrivate::m_schemaDocumentUri

Definition at line 124 of file qxmlschemavalidator_p.h.

Referenced by setSchema(), and QXmlSchemaValidator::validate().

◆ m_uriResolver

const QAbstractUriResolver* QXmlSchemaValidatorPrivate::m_uriResolver

◆ m_userMessageHandler

QAbstractMessageHandler* QXmlSchemaValidatorPrivate::m_userMessageHandler

◆ m_userNetworkAccessManager

QNetworkAccessManager* QXmlSchemaValidatorPrivate::m_userNetworkAccessManager

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