Qt 4.8
|
A StaticContext that changes the static base URI. of items. More...
#include <qstaticbaseuricontext_p.h>
Public Functions | |
virtual QUrl | baseURI () const |
StaticBaseURIContext (const QUrl &bURI, const StaticContext::Ptr &prevContext) | |
Public Functions inherited from QPatternist::DelegatingStaticContext | |
virtual void | addLocation (const SourceLocationReflection *const reflection, const QSourceLocation &location) |
Adds location for reflection . More... | |
virtual VariableSlotID | allocateRangeSlot () |
virtual BoundarySpacePolicy | boundarySpacePolicy () const |
virtual bool | compatModeEnabled () const |
virtual ConstructionMode | constructionMode () const |
virtual ItemType::Ptr | contextItemType () const |
The static type of the context item. More... | |
virtual StaticContext::Ptr | copy () const |
virtual ItemType::Ptr | currentItemType () const |
The static type of the current item, as returned by fn:current() . More... | |
virtual VariableSlotID | currentRangeSlot () const |
virtual QUrl | defaultCollation () const |
virtual QString | defaultElementNamespace () const |
virtual QString | defaultFunctionNamespace () const |
virtual DynamicContext::Ptr | dynamicContext () const |
virtual ExternalVariableLoader::Ptr | externalVariableLoader () const |
virtual FunctionFactory::Ptr | functionSignatures () const |
virtual InheritMode | inheritMode () const |
virtual QSourceLocation | locationFor (const SourceLocationReflection *const reflection) const |
Returns the source location applying for reflection . More... | |
virtual QAbstractMessageHandler * | messageHandler () const |
virtual NamePool::Ptr | namePool () const |
virtual NamespaceResolver::Ptr | namespaceBindings () const |
virtual OrderingEmptySequence | orderingEmptySequence () const |
virtual OrderingMode | orderingMode () const |
virtual PreserveMode | preserveMode () const |
virtual ResourceLoader::Ptr | resourceLoader () const |
virtual SchemaTypeFactory::Ptr | schemaDefinitions () const |
virtual void | setBaseURI (const QUrl &uri) |
virtual void | setBoundarySpacePolicy (const BoundarySpacePolicy policy) |
virtual void | setCompatModeEnabled (const bool newVal) |
virtual void | setConstructionMode (const ConstructionMode mode) |
virtual void | setDefaultCollation (const QUrl &uri) |
virtual void | setDefaultElementNamespace (const QString &ns) |
virtual void | setDefaultFunctionNamespace (const QString &ns) |
virtual void | setInheritMode (const InheritMode mode) |
virtual void | setNamespaceBindings (const NamespaceResolver::Ptr &) |
virtual void | setOrderingEmptySequence (const OrderingEmptySequence ordering) |
virtual void | setOrderingMode (const OrderingMode mode) |
virtual void | setPreserveMode (const PreserveMode mode) |
virtual LocationHash | sourceLocations () const |
Returns a hash of the contained locations. More... | |
virtual const QAbstractUriResolver * | uriResolver () const |
The URI resolver in use. More... | |
Public Functions inherited from QPatternist::StaticContext | |
StaticContext () | |
void | wrapExpressionWith (const SourceLocationReflection *const existingNode, const QExplicitlySharedDataPointer< Expression > &newNode) |
Ensures source locations are handled in such a manner that existingNode wraps newNode . More... | |
virtual | ~StaticContext () |
Public Functions inherited from QPatternist::ReportContext | |
void | error (const QString &message, const ReportContext::ErrorCode errorCode, const QSourceLocation &sourceLocation) |
void | error (const QString &message, const ReportContext::ErrorCode errorCode, const SourceLocationReflection *const reflection) |
void | error (const QString &message, const QXmlName qName, const SourceLocationReflection *const r) |
ReportContext () | |
Default constructors. More... | |
QUrl | resolveURI (const QUrl &relative, const QUrl &baseURI) const |
void | warning (const QString &message, const QSourceLocation &sourceLocation=QSourceLocation()) |
virtual | ~ReportContext () |
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 QUrl | m_baseURI |
A StaticContext that changes the static base URI. of items.
Definition at line 70 of file qstaticbaseuricontext_p.h.
StaticBaseURIContext::StaticBaseURIContext | ( | const QUrl & | bURI, |
const StaticContext::Ptr & | prevContext | ||
) |
The bURI
is the new static base URI, and it must be valid and absolute.
Definition at line 48 of file qstaticbaseuricontext.cpp.
|
virtual |
The base URI of the context. Typically, this is the base URI if of the element that contained the expression.
The base URI is in this implementation is never undefined, but is always valid.
Reimplemented from QPatternist::DelegatingStaticContext.
Definition at line 57 of file qstaticbaseuricontext.cpp.
|
private |
Definition at line 83 of file qstaticbaseuricontext_p.h.
Referenced by baseURI(), and StaticBaseURIContext().