Qt 4.8
qgenericstaticcontext_p.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the QtXmlPatterns module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia. For licensing terms and
14 ** conditions see http://qt.digia.com/licensing. For further information
15 ** use the contact form at http://qt.digia.com/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Digia gives you certain additional
26 ** rights. These rights are described in the Digia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** GNU General Public License Usage
30 ** Alternatively, this file may be used under the terms of the GNU
31 ** General Public License version 3.0 as published by the Free Software
32 ** Foundation and appearing in the file LICENSE.GPL included in the
33 ** packaging of this file. Please review the following information to
34 ** ensure the GNU General Public License version 3.0 requirements will be
35 ** met: http://www.gnu.org/copyleft/gpl.html.
36 **
37 **
38 ** $QT_END_LICENSE$
39 **
40 ****************************************************************************/
41 
42 //
43 // W A R N I N G
44 // -------------
45 //
46 // This file is not part of the Qt API. It exists purely as an
47 // implementation detail. This header file may change from version to
48 // version without notice, or even be removed.
49 //
50 // We mean it.
51 
52 #ifndef Patternist_GenericStaticContext_H
53 #define Patternist_GenericStaticContext_H
54 
55 #include <QUrl>
56 #include <QXmlQuery>
57 
58 #include "qstaticcontext_p.h"
59 #include "qfunctionfactory_p.h"
60 #include "qschematypefactory_p.h"
61 
63 
65 
66 namespace QPatternist
67 {
74  {
75  public:
90  QAbstractMessageHandler *const errorHandler,
91  const QUrl &aBaseURI,
92  const FunctionFactory::Ptr &factory,
93  const QXmlQuery::QueryLanguage lang);
94 
96  virtual void setNamespaceBindings(const NamespaceResolver::Ptr &);
97 
100 
106  virtual DynamicContext::Ptr dynamicContext() const;
107 
108  virtual QUrl baseURI() const;
109  virtual void setBaseURI(const QUrl &uri);
110 
111  virtual bool compatModeEnabled() const;
112  virtual void setCompatModeEnabled(const bool newVal);
113 
117  virtual QUrl defaultCollation() const;
118 
119  virtual QAbstractMessageHandler * messageHandler() const;
120 
121  virtual void setDefaultCollation(const QUrl &uri);
122 
124  virtual void setBoundarySpacePolicy(const BoundarySpacePolicy policy);
125 
126  virtual ConstructionMode constructionMode() const;
127  virtual void setConstructionMode(const ConstructionMode mode);
128 
129  virtual OrderingMode orderingMode() const;
130  virtual void setOrderingMode(const OrderingMode mode);
132  virtual void setOrderingEmptySequence(const OrderingEmptySequence ordering);
133 
134  virtual QString defaultFunctionNamespace() const;
135  virtual void setDefaultFunctionNamespace(const QString &ns);
136 
137  virtual QString defaultElementNamespace() const;
138  virtual void setDefaultElementNamespace(const QString &ns);
139 
140  virtual InheritMode inheritMode() const;
141  virtual void setInheritMode(const InheritMode mode);
142 
143  virtual PreserveMode preserveMode() const;
144  virtual void setPreserveMode(const PreserveMode mode);
145 
146  virtual ItemType::Ptr contextItemType() const;
148  virtual ItemType::Ptr currentItemType() const;
149 
150  virtual StaticContext::Ptr copy() const;
151 
152  virtual ResourceLoader::Ptr resourceLoader() const;
153  void setResourceLoader(const ResourceLoader::Ptr &loader);
154 
157  virtual NamePool::Ptr namePool() const;
158 
159  virtual void addLocation(const SourceLocationReflection *const reflection,
160  const QSourceLocation &location);
161  virtual QSourceLocation locationFor(const SourceLocationReflection *const reflection) const;
162 
163  virtual LocationHash sourceLocations() const;
164  virtual QAbstractUriResolver *uriResolver() const;
165 
166  virtual VariableSlotID currentRangeSlot() const;
168 
169  private:
192  };
193 }
194 
196 
198 
199 #endif
qint32 VariableSlotID
void setResourceLoader(const ResourceLoader::Ptr &loader)
virtual SchemaTypeFactory::Ptr schemaDefinitions() const
virtual QString defaultElementNamespace() const
virtual StaticContext::Ptr copy() const
int type
Definition: qmetatype.cpp:239
#define QT_END_NAMESPACE
This macro expands to.
Definition: qglobal.h:90
virtual void setBaseURI(const QUrl &uri)
#define QT_BEGIN_HEADER
Definition: qglobal.h:136
void setExternalVariableLoader(const ExternalVariableLoader::Ptr &loader)
virtual FunctionFactory::Ptr functionSignatures() const
virtual ItemType::Ptr contextItemType() const
The static type of the context item.
QueryLanguage
Specifies whether you want QXmlQuery to interpret the input to setQuery() as an XQuery or as an XSLT ...
Definition: qxmlquery.h:82
virtual QAbstractUriResolver * uriResolver() const
The URI resolver in use.
virtual OrderingEmptySequence orderingEmptySequence() const
The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object...
Definition: qshareddata.h:136
virtual void setInheritMode(const InheritMode mode)
The QUrl class provides a convenient interface for working with URLs.
Definition: qurl.h:61
The QString class provides a Unicode character string.
Definition: qstring.h:83
QAbstractMessageHandler * m_messageHandler
The QHash class is a template class that provides a hash-table-based dictionary.
Definition: qdatastream.h:66
virtual ConstructionMode constructionMode() const
virtual void addLocation(const SourceLocationReflection *const reflection, const QSourceLocation &location)
Adds location for reflection.
virtual void setPreserveMode(const PreserveMode mode)
QExplicitlySharedDataPointer< GenericStaticContext > Ptr
virtual VariableSlotID currentRangeSlot() const
virtual DynamicContext::Ptr dynamicContext() const
virtual ItemType::Ptr currentItemType() const
The static type of the current item, as returned by fn:current().
virtual BoundarySpacePolicy boundarySpacePolicy() const
virtual OrderingMode orderingMode() const
virtual void setOrderingEmptySequence(const OrderingEmptySequence ordering)
virtual NamePool::Ptr namePool() const
The QAbstractUriResolver class is a callback interface for resolving Uniform Resource Identifiers...
#define QT_BEGIN_NAMESPACE
This macro expands to.
Definition: qglobal.h:89
virtual InheritMode inheritMode() const
The namespace for the internal API of QtXmlPatterns.
The QSourceLocation class identifies a location in a resource by URI, line, and column.
virtual LocationHash sourceLocations() const
Returns a hash of the contained locations.
virtual VariableSlotID allocateRangeSlot()
virtual QString defaultFunctionNamespace() const
Carries information and facilities used at compilation time.
virtual QSourceLocation locationFor(const SourceLocationReflection *const reflection) const
Returns the source location applying for reflection.
virtual PreserveMode preserveMode() const
void setContextItemType(const ItemType::Ptr &type)
The QAbstractMessageHandler class provides a callback interface for handling messages.
virtual ResourceLoader::Ptr resourceLoader() const
ExternalVariableLoader::Ptr m_externalVariableLoader
GenericStaticContext(const NamePool::Ptr &np, QAbstractMessageHandler *const errorHandler, const QUrl &aBaseURI, const FunctionFactory::Ptr &factory, const QXmlQuery::QueryLanguage lang)
static QTestResult::TestLocation location
Definition: qtestresult.cpp:63
virtual void setConstructionMode(const ConstructionMode mode)
virtual void setDefaultCollation(const QUrl &uri)
virtual QAbstractMessageHandler * messageHandler() const
virtual void setBoundarySpacePolicy(const BoundarySpacePolicy policy)
virtual void setNamespaceBindings(const NamespaceResolver::Ptr &)
virtual ExternalVariableLoader::Ptr externalVariableLoader() const
virtual void setDefaultElementNamespace(const QString &ns)
virtual void setOrderingMode(const OrderingMode mode)
virtual void setDefaultFunctionNamespace(const QString &ns)
#define QT_END_HEADER
Definition: qglobal.h:137
virtual NamespaceResolver::Ptr namespaceBindings() const
virtual void setCompatModeEnabled(const bool newVal)
Base class for all instances that represents something at a certain location.
Provides setters and getters for the properties defined in StaticContext.