![]() |
Qt 4.8
|
Generic namespace resolver which resolves lookups against entries in a QHash. More...
#include <qgenericnamespaceresolver_p.h>
Public Functions | |
| virtual void | addBinding (const QXmlName nb) |
| virtual Bindings | bindings () const |
| GenericNamespaceResolver (const Bindings &list) | |
| 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... | |
Static Public Functions | |
| static NamespaceResolver::Ptr | defaultXQueryBindings () |
| static NamespaceResolver::Ptr | defaultXSLTBindings () |
Properties | |
| Bindings | m_bindings |
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 |
Generic namespace resolver which resolves lookups against entries in a QHash.
Definition at line 71 of file qgenericnamespaceresolver_p.h.
| GenericNamespaceResolver::GenericNamespaceResolver | ( | const Bindings & | list | ) |
Definition at line 50 of file qgenericnamespaceresolver.cpp.
Referenced by defaultXQueryBindings(), and defaultXSLTBindings().
|
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 54 of file qgenericnamespaceresolver.cpp.
|
virtual |
Implements QPatternist::NamespaceResolver.
Definition at line 91 of file qgenericnamespaceresolver.cpp.
|
static |
Returns a GenericNamespaceResolver containing the following bindings:
xml = http://www.w3.org/XML/1998/namespacexs = http://www.w3.org/2001/XMLSchemaxsi = http://www.w3.org/2001/XMLSchema-instancefn = http://www.w3.org/2005/xpath-functionsxdt = http://www.w3.org/2005/xpath-datatypesDefinition at line 67 of file qgenericnamespaceresolver.cpp.
|
static |
Returns a GenericNamespaceResolver containing the following bindings:
xml = http://www.w3.org/XML/1998/namespaceDefinition at line 81 of file qgenericnamespaceresolver.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 qgenericnamespaceresolver.cpp.
|
private |
The key is the prefix, the value the namespace URI.
Definition at line 105 of file qgenericnamespaceresolver_p.h.
Referenced by addBinding(), bindings(), and lookupNamespaceURI().