![]() |
Qt 4.8
|
Receives QAbstractXmlReceiver events and validates that they are correct, before sending them on to a second QAbstractXmlReceiver. More...
#include <qdocumentcontentvalidator_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) |
| DocumentContentValidator (QAbstractXmlReceiver *const receiver, const DynamicContext::Ptr &context, const Expression::ConstPtr &expr) | |
| 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... | |
| 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... | |
Properties | |
| const DynamicContext::Ptr | m_context |
| xsInteger | m_elementDepth |
| const Expression::ConstPtr | m_expr |
| 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.
Definition at line 73 of file qdocumentcontentvalidator_p.h.
| DocumentContentValidator::DocumentContentValidator | ( | QAbstractXmlReceiver *const | receiver, |
| const DynamicContext::Ptr & | context, | ||
| const Expression::ConstPtr & | expr | ||
| ) |
DocumentContentValidator does not own receiver.
Definition at line 51 of file qdocumentcontentvalidator.cpp.
|
virtual |
Definition at line 135 of file qdocumentcontentvalidator.cpp.
|
virtual |
Definition at line 81 of file qdocumentcontentvalidator.cpp.
|
virtual |
Definition at line 102 of file qdocumentcontentvalidator.cpp.
|
virtual |
Implements QPatternist::QAbstractXmlReceiver.
Definition at line 97 of file qdocumentcontentvalidator.cpp.
|
virtual |
End of a document node.
Implements QPatternist::QAbstractXmlReceiver.
Definition at line 130 of file qdocumentcontentvalidator.cpp.
Referenced by QPatternist::DocumentConstructor::evaluateToSequenceReceiver().
|
virtual |
Signals the end of the current element.
Implements QPatternist::QAbstractXmlReceiver.
Definition at line 74 of file qdocumentcontentvalidator.cpp.
|
virtual |
Definition at line 144 of file qdocumentcontentvalidator.cpp.
|
virtual |
Sends an Item to this QAbstractXmlReceiver that may be a QXmlNodeModelIndex or an AtomicValue.
Implements QPatternist::QAbstractXmlReceiver.
Definition at line 113 of file qdocumentcontentvalidator.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 qdocumentcontentvalidator.cpp.
|
virtual |
Definition at line 107 of file qdocumentcontentvalidator.cpp.
|
virtual |
Start of a document node.
Implements QPatternist::QAbstractXmlReceiver.
Definition at line 125 of file qdocumentcontentvalidator.cpp.
Referenced by QPatternist::DocumentConstructor::evaluateToSequenceReceiver().
|
virtual |
Definition at line 68 of file qdocumentcontentvalidator.cpp.
|
virtual |
Definition at line 140 of file qdocumentcontentvalidator.cpp.
|
private |
Definition at line 107 of file qdocumentcontentvalidator_p.h.
Referenced by attribute().
|
private |
Definition at line 109 of file qdocumentcontentvalidator_p.h.
Referenced by attribute(), endElement(), and startElement().
|
private |
Definition at line 108 of file qdocumentcontentvalidator_p.h.
Referenced by attribute(), and DocumentContentValidator().
|
private |
Definition at line 106 of file qdocumentcontentvalidator_p.h.
Referenced by attribute(), characters(), comment(), endDocument(), endElement(), item(), namespaceBinding(), processingInstruction(), startDocument(), and startElement().