Qt 4.8
|
Contains a set of bindings, plus a pointer to another resolver which is delegates requests to, in case it can't handle a lookup on its own. More...
#include <qdelegatingnamespaceresolver_p.h>
Public Functions | |
virtual void | addBinding (const QXmlName nb) |
virtual Bindings | bindings () const |
DelegatingNamespaceResolver (const NamespaceResolver::Ptr &ns) | |
DelegatingNamespaceResolver (const NamespaceResolver::Ptr &ns, const Bindings &overrides) | |
virtual QXmlName::NamespaceCode | lookupNamespaceURI (const QXmlName::PrefixCode prefix) const |
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 | |
Bindings | m_bindings |
const NamespaceResolver::Ptr | m_nsResolver |
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 |
Contains a set of bindings, plus a pointer to another resolver which is delegates requests to, in case it can't handle a lookup on its own.
Definition at line 74 of file qdelegatingnamespaceresolver_p.h.
DelegatingNamespaceResolver::DelegatingNamespaceResolver | ( | const NamespaceResolver::Ptr & | ns | ) |
Definition at line 50 of file qdelegatingnamespaceresolver.cpp.
DelegatingNamespaceResolver::DelegatingNamespaceResolver | ( | const NamespaceResolver::Ptr & | ns, |
const Bindings & | overrides | ||
) |
Definition at line 55 of file qdelegatingnamespaceresolver.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 84 of file qdelegatingnamespaceresolver.cpp.
|
virtual |
Implements QPatternist::NamespaceResolver.
Definition at line 72 of file qdelegatingnamespaceresolver.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 qdelegatingnamespaceresolver.cpp.
|
private |
Definition at line 88 of file qdelegatingnamespaceresolver_p.h.
Referenced by addBinding(), bindings(), and lookupNamespaceURI().
|
private |
Definition at line 87 of file qdelegatingnamespaceresolver_p.h.
Referenced by bindings(), DelegatingNamespaceResolver(), and lookupNamespaceURI().