![]() |
Qt 4.8
|
Receives QAbstractXmlReceiver events and validates that they are correct, before sending them on to a second QAbstractXmlReceiver. More...
#include <qoutputvalidator_p.h>
Public Functions | |
| virtual void | atomicValue (const QVariant &value) |
| virtual void | attribute (const QXmlName &name, const QStringRef &value) |
| virtual void | characters (const QStringRef &value) |
| virtual void | comment (const QString &value) |
| virtual void | endDocument () |
| virtual void | endElement () |
| Signals the end of the current element. More... | |
| virtual void | endOfSequence () |
| virtual void | item (const Item &item) |
| Sends an Item to this QAbstractXmlReceiver that may be a QXmlNodeModelIndex or an AtomicValue. More... | |
| virtual void | namespaceBinding (const QXmlName &nb) |
Signals the presence of the namespace declaration nb. More... | |
| OutputValidator (QAbstractXmlReceiver *const receiver, const DynamicContext::Ptr &context, const SourceLocationReflection *const r, const bool isXSLT) | |
| virtual void | processingInstruction (const QXmlName &name, const QString &value) |
| virtual void | startDocument () |
| virtual void | startElement (const QXmlName &name) |
| virtual void | startOfSequence () |
Public Functions inherited from QPatternist::QAbstractXmlReceiver | |
| 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 | processingInstruction (const QXmlName name, const QString &value)=0 |
| QAbstractXmlReceiver () | |
| 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 () |
Public Functions inherited from QSharedData | |
| QSharedData () | |
| Constructs a QSharedData object with a reference count of 0. More... | |
| QSharedData (const QSharedData &) | |
| Constructs a QSharedData object with reference count 0. More... | |
Public Functions inherited from QPatternist::DelegatingSourceLocationReflection | |
| virtual const SourceLocationReflection * | actualReflection () const |
| DelegatingSourceLocationReflection (const SourceLocationReflection *const r) | |
| virtual QString | description () const |
Public Functions inherited from QPatternist::SourceLocationReflection | |
| virtual QSourceLocation | sourceLocation () const |
| SourceLocationReflection () | |
| virtual | ~SourceLocationReflection () |
Properties | |
| QSet< QXmlName > | m_attributes |
| const DynamicContext::Ptr | m_context |
| bool | m_hasReceivedChildren |
| const bool | m_isXSLT |
| QAbstractXmlReceiver *const | m_receiver |
Additional Inherited Members | |
Public Types inherited from QPatternist::QAbstractXmlReceiver | |
| typedef QExplicitlySharedDataPointer< QAbstractXmlReceiver > | Ptr |
Public Variables inherited from QSharedData | |
| QAtomicInt | ref |
Protected Functions inherited from QPatternist::QAbstractXmlReceiver | |
| void | sendAsNode (const Item &outputItem) |
Receives QAbstractXmlReceiver events and validates that they are correct, before sending them on to a second QAbstractXmlReceiver.
Currently, this is only checking that attributes appear before other nodes.
Definition at line 78 of file qoutputvalidator_p.h.
| OutputValidator::OutputValidator | ( | QAbstractXmlReceiver *const | receiver, |
| const DynamicContext::Ptr & | context, | ||
| const SourceLocationReflection *const | r, | ||
| const bool | isXSLT | ||
| ) |
Definition at line 50 of file qoutputvalidator.cpp.
|
virtual |
Definition at line 148 of file qoutputvalidator.cpp.
|
virtual |
Definition at line 81 of file qoutputvalidator.cpp.
|
virtual |
Definition at line 110 of file qoutputvalidator.cpp.
|
virtual |
Implements QPatternist::QAbstractXmlReceiver.
Definition at line 104 of file qoutputvalidator.cpp.
|
virtual |
End of a document node.
Implements QPatternist::QAbstractXmlReceiver.
Definition at line 143 of file qoutputvalidator.cpp.
|
virtual |
Signals the end of the current element.
Implements QPatternist::QAbstractXmlReceiver.
Definition at line 75 of file qoutputvalidator.cpp.
|
virtual |
Definition at line 154 of file qoutputvalidator.cpp.
|
virtual |
Sends an Item to this QAbstractXmlReceiver that may be a QXmlNodeModelIndex or an AtomicValue.
Implements QPatternist::QAbstractXmlReceiver.
Definition at line 123 of file qoutputvalidator.cpp.
|
virtual |
Signals the presence of the namespace declaration nb.
This event is received after startElement(), as opposed to SAX, and before any attribute() events.
Implements QPatternist::QAbstractXmlReceiver.
Definition at line 63 of file qoutputvalidator.cpp.
|
virtual |
Definition at line 116 of file qoutputvalidator.cpp.
|
virtual |
Start of a document node.
Implements QPatternist::QAbstractXmlReceiver.
Definition at line 138 of file qoutputvalidator.cpp.
|
virtual |
Definition at line 68 of file qoutputvalidator.cpp.
|
virtual |
Definition at line 158 of file qoutputvalidator.cpp.
Keeps the current received attributes, in order to check uniqueness.
Definition at line 118 of file qoutputvalidator_p.h.
Referenced by attribute(), and startElement().
|
private |
Definition at line 113 of file qoutputvalidator_p.h.
Referenced by attribute().
|
private |
Definition at line 111 of file qoutputvalidator_p.h.
Referenced by attribute(), characters(), comment(), endElement(), item(), processingInstruction(), and startElement().
|
private |
Definition at line 119 of file qoutputvalidator_p.h.
Referenced by attribute().
|
private |
Definition at line 112 of file qoutputvalidator_p.h.
Referenced by attribute(), characters(), comment(), endDocument(), endElement(), item(), namespaceBinding(), processingInstruction(), startDocument(), and startElement().