52 #ifndef Patternist_XsdValidatingInstanceReader_H 53 #define Patternist_XsdValidatingInstanceReader_H 60 #include <QtCore/QStack> bool validateIdentityConstraint(const XsdElement::Ptr &element, const QXmlItem ¤tItem)
QHash< QXmlName, TargetNode::Set > m_idcKeys
QSet< QString > m_processedNamespaces
QString qNameAttribute(const QXmlName &attributeName)
void addSchema(const XsdSchema::Ptr &schema, const QUrl &url)
#define QT_END_NAMESPACE
This macro expands to.
bool validateElementType(const XsdElement::Ptr &declaration, const SchemaType::Ptr &type, bool isNilled, bool &hasStateMachine)
void addIdIdRefBinding(const QString &id, const NamedSchemaComponent::Ptr &binding)
bool loadSchema(const QString &targetNamespace, const QUrl &location)
bool validateKeyIdentityConstraint(const XsdElement::Ptr &element, const XsdIdentityConstraint::Ptr &constraint, const TargetNode::Set &targetNodeSet, const TargetNode::Set &qualifiedNodeSet)
SchemaType::Ptr m_idRefsType
The QXmlItem class contains either an XML node or an atomic value.
The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object...
const QXmlName m_xsiTypeName
The QStack class is a template class that provides a stack.
MergedSchemas m_mergedSchemas
const QXmlName m_xsiSchemaLocationName
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
XsdValidatedXmlNodeModel::Ptr m_model
XsdValidatingInstanceReader(XsdValidatedXmlNodeModel *model, const QUrl &documentUri, const XsdSchemaContext::Ptr &context)
QHashIterator< QUrl, QStringList > MergedSchemasIterator
SchemaType::Ptr typeByName(const QXmlName &name) const
bool validateElement(const XsdElement::Ptr &declaration, bool &hasStateMachine)
bool validateKeyRefIdentityConstraint(const XsdElement::Ptr &element, const XsdIdentityConstraint::Ptr &constraint, const TargetNode::Set &qualifiedNodeSet)
XsdAttribute::Ptr attributeByName(const QXmlName &name) const
QHash< QUrl, QStringList > MergedSchemas
QSet< QString > m_processedSchemaLocations
bool selectNodeSets(const XsdElement::Ptr &element, const QXmlItem ¤tItem, const XsdIdentityConstraint::Ptr &constraint, TargetNode::Set &targetNodeSet, TargetNode::Set &qualifiedNodeSet)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QExplicitlySharedDataPointer< XsdValidatingInstanceReader > Ptr
QXmlQuery createXQuery(const QList< QXmlName > &namespaceBindings, const QXmlItem &contextNode, const QString &query) const
The schema instance reader.
The namespace for the internal API of QtXmlPatterns.
const QXmlName m_xsiNilName
XsdComplexType::Ptr m_anyType
XsdComplexType::Ptr anyType()
bool validateElementComplexType(const XsdElement::Ptr &declaration, const SchemaType::Ptr &type, bool isNilled, bool &hasStateMachine)
bool validateAttributeWildcard(const QXmlName &attributeName, const XsdWildcard::Ptr &wildcard)
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
bool validate(bool &hasStateMachine, XsdElement::Ptr &element)
A delegate class that wraps around a QAbstractXmlNodeModel and provides additional validation specifi...
XsdElement::Ptr elementByName(const QXmlName &name) const
const QXmlName m_xsiNoNamespaceSchemaLocationName
static QTestResult::TestLocation location
bool validateElementSimpleType(const XsdElement::Ptr &declaration, const SchemaType::Ptr &type, bool isNilled)
void error(const QString &msg) const
QStack< XsdStateMachine< XsdTerm::Ptr > > m_stateMachines
The validating schema instance reader.
bool validateAttribute(const XsdAttributeUse::Ptr &declaration, const QString &value)
The QXmlQuery class performs XQueries on XML data, or on non-XML data modeled to look like XML...
QVector< QXmlName > namespaceBindings(const QXmlNodeModelIndex &index) const
const NamePool::Ptr m_namePool
void createAndPushStateMachine(const XsdParticle::Ptr &particle)
bool validateUniqueIdentityConstraint(const XsdElement::Ptr &element, const XsdIdentityConstraint::Ptr &constraint, const TargetNode::Set &qualifiedNodeSet)