![]() |
Qt 4.8
|
Receives QAbstractXmlReceiver events and builds a node tree in memory that afterwards can be retrieved via builtNode() More...
#include <qnodebuilder_p.h>
Public Types | |
typedef AutoPtr< NodeBuilder > | Ptr |
![]() | |
typedef QExplicitlySharedDataPointer< QAbstractXmlReceiver > | Ptr |
Public Functions | |
virtual QAbstractXmlNodeModel::Ptr | builtDocument ()=0 |
Returns the document that has been built. More... | |
virtual NodeBuilder::Ptr | create (const QUrl &baseURI) const =0 |
Creates a copy of this NodeBuilder, that operates independently of this NodeBuilder. More... | |
NodeBuilder () | |
![]() | |
virtual void | attribute (const QXmlName name, const QString &value)=0 |
Signals the presence of an attribute node. More... | |
virtual void | characters (const QString &value)=0 |
virtual void | comment (const QString &value)=0 |
virtual void | endDocument ()=0 |
virtual void | endElement ()=0 |
Signals the end of the current element. More... | |
virtual void | item (const Item &item)=0 |
Sends an Item to this QAbstractXmlReceiver that may be a QXmlNodeModelIndex or an AtomicValue. More... | |
virtual void | namespaceBinding (const QXmlName &nb)=0 |
Signals the presence of the namespace declaration nb . More... | |
virtual void | processingInstruction (const QXmlName name, const QString &value)=0 |
QAbstractXmlReceiver () | |
virtual void | startDocument ()=0 |
virtual void | startElement (const QXmlName name)=0 |
Signals the start of an element by name name . More... | |
virtual void | whitespaceOnly (const QStringRef &value) |
virtual | ~QAbstractXmlReceiver () |
![]() | |
QSharedData () | |
Constructs a QSharedData object with a reference count of 0. More... | |
QSharedData (const QSharedData &) | |
Constructs a QSharedData object with reference count 0. More... | |
Additional Inherited Members | |
![]() | |
QAtomicInt | ref |
![]() | |
void | sendAsNode (const Item &outputItem) |
Receives QAbstractXmlReceiver events and builds a node tree in memory that afterwards can be retrieved via builtNode()
Definition at line 72 of file qnodebuilder_p.h.
Definition at line 75 of file qnodebuilder_p.h.
|
inline |
Definition at line 77 of file qnodebuilder_p.h.
|
pure virtual |
Returns the document that has been built.
If this function is called before any events have been received, the result is undefined.
The top node that was constructed can be retrieved by calling NodeModel::root() on the returned NodeModel.
This function is not const
, because some implementations delay the node construction until the node is needed. Also, text nodes are difficult, at best, to construct until one knows that all text content has been received(which a call to this function in a natural way signals).
Implemented in QPatternist::AccelTreeBuilder< FromDocument >, and QPatternist::AccelTreeBuilder< true >.
Referenced by NodeBuilder().
|
pure virtual |
Creates a copy of this NodeBuilder, that operates independently of this NodeBuilder.
The caller owns the returned instance.
Implemented in QPatternist::AccelTreeBuilder< FromDocument >, and QPatternist::AccelTreeBuilder< true >.
Referenced by NodeBuilder(), and QPatternist::GenericDynamicContext::nodeBuilder().