52 #ifndef Patternist_XsdValidatedXmlNodeModel_H 53 #define Patternist_XsdValidatedXmlNodeModel_H The QVariant class acts like a union for the most common Qt data types.
XsdValidatedXmlNodeModel(const QAbstractXmlNodeModel *model)
virtual void sendNamespaces(const QXmlNodeModelIndex &n, QAbstractXmlReceiver *const receiver) const
virtual QXmlNodeModelIndex root(const QXmlNodeModelIndex &n) const
Returns the root node of the tree that contains the node whose index is n.
The QXmlNodeModelIndex class identifies a node in an XML node model subclassed from QAbstractXmlNodeM...
void setAssignedAttribute(const QXmlNodeModelIndex &index, const XsdAttribute::Ptr &attribute)
void setAssignedType(const QXmlNodeModelIndex &index, const SchemaType::Ptr &type)
A push interface for the XPath Data Model. Similar to SAX's ContentHandler.
virtual QPatternist::ItemTypePtr type(const QXmlNodeModelIndex &ni) const
#define QT_END_NAMESPACE
This macro expands to.
QHash< QXmlNodeModelIndex, XsdAttribute::Ptr > m_assignedAttributes
Due to strong interdependencies, this file contains the definitions for the classes Item...
virtual bool isDeepEqual(const QXmlNodeModelIndex &ni1, const QXmlNodeModelIndex &ni2) const
Determines whether ni1 is deep equal to ni2.
virtual QUrl baseUri(const QXmlNodeModelIndex &ni) const
Returns the base URI for the node whose index is n.
virtual QXmlName name(const QXmlNodeModelIndex &ni) const
Returns the name of ni.
virtual QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< QXmlNodeModelIndex > > iterate(const QXmlNodeModelIndex &ni, QXmlNodeModelIndex::Axis axis) const
Performs navigation, starting from ni, by returning an QAbstractXmlForwardIterator that returns nodes...
virtual QPatternist::ItemIteratorPtr sequencedTypedValue(const QXmlNodeModelIndex &ni) const
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
virtual QXmlName::NamespaceCode namespaceForPrefix(const QXmlNodeModelIndex &ni, const QXmlName::PrefixCode prefix) const
Returns the namespace URI on ni that corresponds to prefix.
The QHash class is a template class that provides a hash-table-based dictionary.
virtual ~XsdValidatedXmlNodeModel()
QSet< NamedSchemaComponent::Ptr > idIdRefBindings(const QString &id) const
QStringList idIdRefBindingIds() const
virtual QXmlNodeModelIndex::NodeKind kind(const QXmlNodeModelIndex &ni) const
Returns a value indicating the kind of node identified by ni.
QHash< QXmlNodeModelIndex, XsdElement::Ptr > m_assignedElements
QHash< QString, QSet< NamedSchemaComponent::Ptr > > m_idIdRefBindings
SchemaType::Ptr assignedType(const QXmlNodeModelIndex &index) const
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual QVector< QXmlName > namespaceBindings(const QXmlNodeModelIndex &n) const
Returns the in-scope namespaces of n.
XsdElement::Ptr assignedElement(const QXmlNodeModelIndex &index) const
QExplicitlySharedDataPointer< const QAbstractXmlNodeModel > m_internalModel
void setAssignedElement(const QXmlNodeModelIndex &index, const XsdElement::Ptr &element)
The QAbstractXmlNodeModel class is an abstract base class for modeling non-XML data to look like XML ...
DocumentOrder
Identifies the specific node comparison operator that should be used.
The QStringList class provides a list of strings.
The namespace for the internal API of QtXmlPatterns.
virtual QUrl documentUri(const QXmlNodeModelIndex &ni) const
Returns the document URI of n.
XsdAttribute::Ptr assignedAttribute(const QXmlNodeModelIndex &index) const
virtual QVariant typedValue(const QXmlNodeModelIndex &n) const
Returns the typed value for node node.
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
virtual QXmlNodeModelIndex nextFromSimpleAxis(SimpleAxis axis, const QXmlNodeModelIndex &origin) const
When QtXmlPatterns evaluate path expressions, it emulate them through a combination of calls with QSi...
A delegate class that wraps around a QAbstractXmlNodeModel and provides additional validation specifi...
NodeKind
Identifies a kind of node.
virtual QVector< QXmlNodeModelIndex > nodesByIdref(const QXmlName &NCName) const
Returns the elements and/or attributes that have an IDREF value equal to idref.
SimpleAxis
Four axes that each contain one node only.
virtual void copyNodeTo(const QXmlNodeModelIndex &node, QAbstractXmlReceiver *const receiver, const NodeCopySettings &) const
virtual QVector< QXmlNodeModelIndex > attributes(const QXmlNodeModelIndex &element) const
Returns the attributes of element.
Axis
Identify the axes emanating from a node.
QHash< QXmlNodeModelIndex, SchemaType::Ptr > m_assignedTypes
The QFlags class provides a type-safe way of storing OR-combinations of enum values.
virtual QXmlNodeModelIndex elementById(const QXmlName &NCName) const
Returns the index of the element identified as id.
void addIdIdRefBinding(const QString &id, const NamedSchemaComponent::Ptr &binding)
virtual QXmlNodeModelIndex::DocumentOrder compareOrder(const QXmlNodeModelIndex &ni1, const QXmlNodeModelIndex &ni2) const
This function returns the relative document order for the nodes indexed by ni1 and ni2...
QExplicitlySharedDataPointer< XsdValidatedXmlNodeModel > Ptr
virtual QString stringValue(const QXmlNodeModelIndex &n) const
Returns the string value for node n.