87 while (!currentIndex.
isNull()) {
91 currentIndex = it->next();
103 while (!currentIndex.
isNull()) {
107 currentIndex = it->next();
132 if (namespaceCode == -1)
137 return QXmlName(namespaceCode, localNameCode, prefixCode);
165 while (!currentIndex.
isNull()) {
167 result.
append(
Item(currentIndex).stringValue());
170 currentIndex = it->next();
bool isStartElement() const
The QXmlNodeModelIndex class identifies a node in an XML node model subclassed from QAbstractXmlNodeM...
#define QT_END_NAMESPACE
This macro expands to.
QSet< T > toSet() const
Returns a QSet object with the data contained in this QList.
NamespaceCode LocalNameCode
bool isNull() const
Returns true if this QXmlNodeModelIndex is a default constructed value, otherwise false...
#define it(className, varName)
QXmlNodeModelIndex index() const
QXmlItem attributeItem(const QXmlName &name) const
The QXmlItem class contains either an XML node or an atomic value.
QSourceLocation sourceLocation() const
virtual NamePool::Ptr namePool() const
The QString class provides a Unicode character string.
virtual QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< QXmlNodeModelIndex > > iterate(const QXmlNodeModelIndex &ni, QXmlNodeModelIndex::Axis axis) const
Performs navigation, starting from ni, by returning an QAbstractXmlForwardIterator that returns nodes...
QVector< QXmlName > namespaceBindings() const
bool contains(const Key &key) const
Returns true if the hash contains an item with the key; otherwise returns false.
QXmlName convertToQName(const QString &name) const
const T value(const Key &key) const
Returns the value associated with the key.
virtual QHash< QXmlName, QXmlItem > attributeItems()
QXmlName::PrefixCode allocatePrefix(const QString &prefix)
QHash< QXmlName, QString > m_cachedAttributes
QXmlName::LocalNameCode allocateLocalName(const QString &ln)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString left(int n) const Q_REQUIRED_RESULT
Returns a substring that contains the n leftmost characters of the string.
QHash< QXmlName, QXmlItem > m_cachedAttributeItems
QSet< QXmlName > attributeNames() const
The QAbstractXmlNodeModel class is an abstract base class for modeling non-XML data to look like XML ...
The namespace for the internal API of QtXmlPatterns.
The QSourceLocation class identifies a location in a resource by URI, line, and column.
int indexOf(QChar c, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
virtual Event next()
Advances this AbstractXmlPullProvider, and returns the new event.
QXmlName::NamespaceCode namespaceForPrefix(const QXmlName::PrefixCode prefix) const
virtual QHash< QXmlName, QString > attributes()
If the current() is Element, the attributes of the element are returned, an empty list of attributes ...
const QAbstractXmlNodeModel * model() const
Returns the QAbstractXmlNodeModel that this node index refers to.
XsdInstanceReader(const QAbstractXmlNodeModel *model, const XsdSchemaContext::Ptr &context)
QString attribute(const QXmlName &name) const
bool hasChildText() const
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
QString & append(QChar c)
Represents an item in the XPath 2.0 Data Model.
bool isEndElement() const
bool hasAttribute(const QXmlName &name) const
virtual QXmlName name() const
If the current event is StartElement, EndElement, ProcessingInstruction, Attribute, or Namespace, the node's name is returned.
QSourceLocation sourceLocation() const
virtual Event current() const
Returns the event that next() returned the last time it was called.
XsdSchemaContext::Ptr m_context
QXmlNodeModelIndex toNodeModelIndex() const
If this QXmlItem represents a node, it returns the item as a QXmlNodeModelIndex.
bool hasChildElement() const
QList< Key > keys() const
Returns a list containing all the keys in the hash, in an arbitrary order.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
QVector< QXmlName > namespaceBindings(const QXmlNodeModelIndex &index) const
QSourceLocation m_cachedSourceLocation