195 template<const QXmlNodeModelIndex::Axis axis>
202 while(!next.isNull())
403 switch(asNode.kind())
416 asNode.sendNamespaces(
this);
417 sendFromAxis<QXmlNodeModelIndex::AxisAttribute>(asNode);
418 sendFromAxis<QXmlNodeModelIndex::AxisChild>(asNode);
426 const QString &v = asNode.stringValue();
443 sendFromAxis<QXmlNodeModelIndex::AxisChild>(asNode);
480 "The caller must guarantee only whitespace is passed. Use characters() in other cases.");
QString toString() const
Returns a copy of the string reference as a QString object.
QScopedPointer< QAbstractXmlReceiverPrivate > d_ptr
The QXmlNodeModelIndex class identifies a node in an XML node model subclassed from QAbstractXmlNodeM...
virtual void characters(const QStringRef &value)=0
This callback is called when a text node appears in the XQuery Sequence.
#define QT_END_NAMESPACE
This macro expands to.
QAbstractXmlReceiver()
Constructs an abstract xml receiver.
bool isNull() const
Returns true if this QXmlNodeModelIndex is a default constructed value, otherwise false...
static QVariant toQt(const AtomicValue *const value)
virtual void attribute(const QXmlName &name, const QStringRef &value)=0
This callback is called when an attribute node appears in the XQuery Sequence.
#define it(className, varName)
Due to strong interdependencies, this file contains the definitions for the classes Item...
virtual void startElement(const QXmlName &name)=0
This callback is called when a new element node appears in the XQuery Sequence.
virtual void processingInstruction(const QXmlName &target, const QString &value)=0
This callback is called when a processing instruction appears in the XQuery Sequence.
The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object...
virtual ~QAbstractXmlReceiver()
Destroys the xml receiver.
const AtomicValue * asAtomicValue() const
The QString class provides a Unicode character string.
bool isNode() const
Determines whether this item is an atomic value, or a node.
virtual void comment(const QString &value)=0
This callback is called when a comment node appears in the XQuery Sequence.
void sendAsNode(const QPatternist::Item &outputItem)
Treats outputItem as a node and calls the appropriate function, e.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString trimmed() const Q_REQUIRED_RESULT
Returns a string that has whitespace removed from the start and the end.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
virtual void endDocument()=0
This callback is called when the end of a document node appears in the XQuery Sequence.
QString stringValue() const
Returns the string value of this Item.
virtual void atomicValue(const QVariant &value)=0
This callback is called when an atomic value appears in the XQuery Sequence.
The QStringRef class provides a thin wrapper around QString substrings.
virtual void startDocument()=0
This callback is called when a document node appears in the XQuery Sequence.
#define Q_ASSERT_X(cond, where, what)
const QXmlNodeModelIndex & asNode() const
Represents an item in the XPath 2.0 Data Model.
virtual void item(const QPatternist::Item &item)
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< QXmlNodeModelIndex > > iterate(const Axis axis) const
virtual void whitespaceOnly(const QStringRef &value)
This function may be called instead of characters() if, and only if, value consists only of whitespac...
const QChar * constData() const
Returns a pointer to the data stored in the QString.
void sendFromAxis(const QXmlNodeModelIndex &node)
virtual void endElement()=0
This callback is called when the end of an element node appears in the XQuery Sequence.