Qt 4.8
|
Base class for namespace resolvers. More...
#include <qnamespaceresolver_p.h>
Public Types | |
typedef QHash< QXmlName::PrefixCode, QXmlName::NamespaceCode > | Bindings |
enum | Constants { NoBinding = -1 } |
typedef QExplicitlySharedDataPointer< NamespaceResolver > | Ptr |
Public Functions | |
virtual void | addBinding (const QXmlName nb)=0 |
virtual Bindings | bindings () const =0 |
virtual QXmlName::NamespaceCode | lookupNamespaceURI (const QXmlName::PrefixCode prefix) const =0 |
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... | |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Base class for namespace resolvers.
Definition at line 74 of file qnamespaceresolver_p.h.
typedef QHash<QXmlName::PrefixCode, QXmlName::NamespaceCode> QPatternist::NamespaceResolver::Bindings |
A list of namespace bindings. The key is the prefix, and the value is the namespace URI.
Definition at line 88 of file qnamespaceresolver_p.h.
Definition at line 82 of file qnamespaceresolver_p.h.
NamespaceResolver::NamespaceResolver | ( | ) |
Definition at line 49 of file qnamespaceresolver.cpp.
|
virtual |
Definition at line 53 of file qnamespaceresolver.cpp.
|
pure 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.
Implemented in QPatternist::DelegatingNamespaceResolver, QPatternist::NodeNamespaceResolver, and QPatternist::GenericNamespaceResolver.
|
pure virtual |
Implemented in QPatternist::GenericNamespaceResolver, QPatternist::DelegatingNamespaceResolver, and QPatternist::NodeNamespaceResolver.
Referenced by QPatternist::DelegatingNamespaceResolver::bindings(), and QPatternist::GenericStaticContext::copy().
|
pure virtual |
Resolves the prefix
to the corresponding namespace URI. If no binding exists for prefix
, NoBinding is returned.
prefix
. Implemented in QPatternist::DelegatingNamespaceResolver, QPatternist::NodeNamespaceResolver, and QPatternist::GenericNamespaceResolver.
Referenced by QPatternist::DelegatingNamespaceResolver::lookupNamespaceURI(), and QPatternist::QNameConstructor::namespaceForPrefix().