Qt 4.8
|
A NamespaceResolver that use a QXmlNodeModelIndex's in-scope namespace bindings for resolving namespaces. More...
#include <qnodenamespaceresolver_p.h>
Public Functions | |
virtual void | addBinding (const QXmlName nb) |
virtual Bindings | bindings () const |
virtual QXmlName::NamespaceCode | lookupNamespaceURI (const QXmlName::PrefixCode prefix) const |
NodeNamespaceResolver (const Item &item) | |
Public Functions inherited from QPatternist::NamespaceResolver | |
NamespaceResolver () | |
virtual | ~NamespaceResolver () |
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 QXmlNodeModelIndex | m_node |
Additional Inherited Members | |
Public Types inherited from QPatternist::NamespaceResolver | |
typedef QHash< QXmlName::PrefixCode, QXmlName::NamespaceCode > | Bindings |
enum | Constants { NoBinding = -1 } |
typedef QExplicitlySharedDataPointer< NamespaceResolver > | Ptr |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
A NamespaceResolver that use a QXmlNodeModelIndex's in-scope namespace bindings for resolving namespaces.
Definition at line 73 of file qnodenamespaceresolver_p.h.
NodeNamespaceResolver::NodeNamespaceResolver | ( | const Item & | item | ) |
Definition at line 51 of file qnodenamespaceresolver.cpp.
|
virtual |
Adds the mapping from prefix
to namespaceURI
to this NamespaceResolver. If this NamespaceResolver already contains a binding involving prefix
, the old binding is replaced.
Implements QPatternist::NamespaceResolver.
Definition at line 56 of file qnodenamespaceresolver.cpp.
|
virtual |
Implements QPatternist::NamespaceResolver.
Definition at line 77 of file qnodenamespaceresolver.cpp.
|
virtual |
Resolves the prefix
to the corresponding namespace URI. If no binding exists for prefix
, NoBinding is returned.
prefix
. Implements QPatternist::NamespaceResolver.
Definition at line 62 of file qnodenamespaceresolver.cpp.
|
private |
Definition at line 83 of file qnodenamespaceresolver_p.h.
Referenced by lookupNamespaceURI(), and NodeNamespaceResolver().