KXQTS::ExternalSourceLoader Class Reference

Handles external variables in XQTS queries, such as $input-context, by loading appropriate XML source files. More...

#include <ExternalSourceLoader.h>

Inheritance diagram for KXQTS::ExternalSourceLoader:

Inheritance graph
[legend]
Collaboration diagram for KXQTS::ExternalSourceLoader:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QHash< QString, QUrl > SourceMap
enum  TargetOfURI { Document, URI }
typedef QHash< QString, VariableValueVariableMap
typedef QPair< QUrl, TargetOfURIVariableValue

Public Member Functions

virtual Patternist::SequenceType::Ptr announceExternalVariable (const Patternist::QName name, const Patternist::SequenceType::Ptr &declaredType)
virtual Patternist::Item::Ptr evaluateSingleton (const Patternist::QName name, const Patternist::DynamicContext::Ptr &context)
 ExternalSourceLoader (const VariableMap &varMap, const Patternist::ResourceLoader::Ptr &resourceLoader)

Detailed Description

Handles external variables in XQTS queries, such as $input-context, by loading appropriate XML source files.

Author:
Frans Englich <frans.englich@telia.com>

Definition at line 34 of file ExternalSourceLoader.h.


Member Typedef Documentation

typedef QHash<QString, QUrl> KXQTS::ExternalSourceLoader::SourceMap

In the XQTSCatalog.xml each source file in each test is refered to by a key, which can be fully looked up in the sources element. This QHash maps the keys to absolute URIs pointing to the source file.

Definition at line 87 of file ExternalSourceLoader.h.

typedef QHash<QString, VariableValue> KXQTS::ExternalSourceLoader::VariableMap

The first value is the variable name, and the second is the URI identifying the XML source file that's supposed to be loaded as a document.

This is one for every test case, except for rdb-queries-results-q5, rdb-queries-results-q17 and rdb-queries-results-q18(at least in XQTS 1.0).

Definition at line 96 of file ExternalSourceLoader.h.

typedef QPair<QUrl, TargetOfURI> KXQTS::ExternalSourceLoader::VariableValue

Identifies a variable declared for a test case in the XQTS file. The first value is the variable's local name, and the second is the type.

Definition at line 80 of file ExternalSourceLoader.h.


Member Enumeration Documentation

enum KXQTS::ExternalSourceLoader::TargetOfURI

Enumerator:
Document  Identifies input-file.
URI  Identifies input-URI.

Definition at line 37 of file ExternalSourceLoader.h.


The documentation for this class was generated from the following files:
Generated on Thu Feb 8 14:54:31 2007 for Patternist by  doxygen 1.5.1