44 #include <QtCore/QUrl> 45 #include <QtCore/QVariant> 46 #include <QtCore/QVector> 53 : m_internalModel(model)
The QVariant class acts like a union for the most common Qt data types.
XsdValidatedXmlNodeModel(const QAbstractXmlNodeModel *model)
virtual QXmlName::NamespaceCode namespaceForPrefix(const QXmlNodeModelIndex &ni, const QXmlName::PrefixCode prefix) const
Returns the namespace URI on ni that corresponds to prefix.
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.
virtual QXmlNodeModelIndex elementById(const QXmlName &NCName) const =0
Returns the index of the element identified as id.
virtual QUrl documentUri(const QXmlNodeModelIndex &ni) const =0
Returns the document URI of n.
QHash< QXmlNodeModelIndex, XsdAttribute::Ptr > m_assignedAttributes
virtual QXmlNodeModelIndex::NodeKind kind(const QXmlNodeModelIndex &ni) const =0
Returns a value indicating the kind of node identified by ni.
virtual bool isDeepEqual(const QXmlNodeModelIndex &ni1, const QXmlNodeModelIndex &ni2) const
Determines whether ni1 is deep equal to ni2.
The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object...
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
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.
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 ~XsdValidatedXmlNodeModel()
QSet< NamedSchemaComponent::Ptr > idIdRefBindings(const QString &id) const
QStringList idIdRefBindingIds() const
virtual QXmlNodeModelIndex nextFromSimpleAxis(SimpleAxis axis, const QXmlNodeModelIndex &origin) const =0
When QtXmlPatterns evaluate path expressions, it emulate them through a combination of calls with QSi...
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
virtual QUrl baseUri(const QXmlNodeModelIndex &ni) const =0
Returns the base URI for the node whose index is n.
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 QVector< QXmlNodeModelIndex > nodesByIdref(const QXmlName &NCName) const =0
Returns the elements and/or attributes that have an IDREF value equal to idref.
virtual QUrl documentUri(const QXmlNodeModelIndex &ni) const
Returns the document URI of n.
virtual QXmlNodeModelIndex root(const QXmlNodeModelIndex &n) const =0
Returns the root node of the tree that contains the node whose index is n.
virtual QPatternist::ItemTypePtr type(const QXmlNodeModelIndex &ni) const
XsdAttribute::Ptr assignedAttribute(const QXmlNodeModelIndex &index) const
virtual QVariant typedValue(const QXmlNodeModelIndex &n) const
Returns the typed value for node node.
virtual QVariant typedValue(const QXmlNodeModelIndex &n) const =0
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...
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 QXmlName name(const QXmlNodeModelIndex &ni) const =0
Returns the name of ni.
virtual void sendNamespaces(const QXmlNodeModelIndex &n, QAbstractXmlReceiver *const receiver) const
Sends the namespaces declared on n to receiver.
virtual QVector< QXmlNodeModelIndex > attributes(const QXmlNodeModelIndex &element) const
Returns the attributes of element.
QExplicitlySharedDataPointer< XsdElement > Ptr
QExplicitlySharedDataPointer< SchemaType > Ptr
Axis
Identify the axes emanating from a node.
virtual bool isDeepEqual(const QXmlNodeModelIndex &ni1, const QXmlNodeModelIndex &ni2) const
Determines whether ni1 is deep equal to ni2.
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.
virtual QString stringValue(const QXmlNodeModelIndex &n) const =0
Returns the string value for node n.
void addIdIdRefBinding(const QString &id, const NamedSchemaComponent::Ptr &binding)
virtual void copyNodeTo(const QXmlNodeModelIndex &node, QAbstractXmlReceiver *const receiver, const NodeCopySettings &) const
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...
virtual QVector< QXmlName > namespaceBindings(const QXmlNodeModelIndex &n) const =0
Returns the in-scope namespaces of n.
QExplicitlySharedDataPointer< XsdAttribute > Ptr
virtual QXmlNodeModelIndex::DocumentOrder compareOrder(const QXmlNodeModelIndex &ni1, const QXmlNodeModelIndex &ni2) const =0
This function returns the relative document order for the nodes indexed by ni1 and ni2...
virtual QVector< QXmlNodeModelIndex > attributes(const QXmlNodeModelIndex &element) const =0
Returns the attributes of element.
virtual QString stringValue(const QXmlNodeModelIndex &n) const
Returns the string value for node n.