16 #ifndef XQP_STATIC_CONTEXT_API_H
17 #define XQP_STATIC_CONTEXT_API_H
19 #include <zorba/config.h>
30 #ifndef ZORBA_NO_FULL_TEXT
83 createChildContext()
const = 0;
97 addNamespace(
const String& aPrefix,
const String& aURI ) = 0;
110 getNamespaceURIByPrefix(
const String& aPrefix )
const = 0;
119 getNamespaceBindings(
NsBindings& aBindings )
const = 0;
130 setDefaultElementAndTypeNamespace(
const String& aURI ) = 0;
138 getDefaultElementAndTypeNamespace( )
const = 0;
149 setDefaultFunctionNamespace(
const String& aURI ) = 0;
158 getDefaultFunctionNamespace( )
const = 0;
180 addCollation(
const String& aURI ) = 0;
190 setDefaultCollation(
const String& aURI ) = 0;
197 getDefaultCollation()
const = 0;
223 getXQueryVersion( )
const = 0;
231 getJSONiqVersion( )
const = 0;
248 getXPath1_0CompatibMode( )
const = 0;
265 getConstructionMode( )
const = 0;
282 getOrderingMode( )
const = 0;
299 getDefaultOrderForEmptySequences( )
const = 0;
316 getBoundarySpacePolicy( )
const = 0;
346 setBaseURI(
const String& aBaseURI ) = 0;
353 getBaseURI( )
const = 0;
360 getRevalidationMode()
const = 0;
388 registerURIMapper(
URIMapper* aMapper) = 0;
407 getDocumentType(
const String& aDocUri)
const = 0;
417 getCollectionType(
const String& aCollectionUri)
const = 0;
422 containsFunction(
const String& aFnNameUri,
const String& aFnNameLocal,
int arity)
const = 0;
425 findFunctions(
const Item& aQName, std::vector<Function_t>& aFunctions)
const = 0;
428 disableFunction(
const Function_t& aFunction) = 0;
431 disableFunction(
const Item& aQName,
int arity) = 0;
434 getFunctionAnnotations(
const Item& aQName,
int arity, std::vector<Annotation_t>& aAnnotations)
const = 0;
441 getFunctions(std::vector<Function_t>& aFunctions)
const = 0;
454 std::vector<Function_t>& aFunctions)
const = 0;
464 getContextItemStaticType()
const = 0;
473 setTraceStream(std::ostream&) = 0;
478 resetTraceStream() = 0;
487 getOption(
const Item& aQName,
String& aOptionValue)
const = 0;
495 declareOption(
const Item& aQName,
const String& aOptionValue) = 0;
508 setModulePaths(
const std::vector<String>& aModulePaths ) = 0;
520 getModulePaths( std::vector<String>& aModulePaths )
const = 0;
528 getFullModulePaths( std::vector<String>& aFullModulePaths )
const = 0;
536 resolve(
const String& aRelativeUri)
const = 0;
544 resolve(
const String& aRelativeUri,
const String& aBaseUri)
const = 0;
557 const Item& rootElement,
558 Item& validatedResult,
573 const Item& rootElement,
574 Item& validatedResult,
575 const String& targetNamespace,
588 validateSimpleContent(
589 const String& stringValue,
590 const Item& typeQName,
591 std::vector<Item>& resultList)
const= 0;
612 invoke(
const Item& aQName,
const std::vector<ItemSequence_t>& aArgs)
const = 0;
625 getStaticCollectionManager()
const = 0;
641 getAuditEvent()
const = 0;
651 getExternalVariables(
Iterator_t& aVarsIter)
const = 0;
661 setURIPath(
const std::vector<String>& aURIPath) = 0;
672 getURIPath(std::vector<String>& aURIPath)
const = 0;
679 getFullURIPath(std::vector<String>& aURIPath)
const = 0;
690 setLibPath(
const std::vector<String>& aLibPath) = 0;
701 getLibPath(std::vector<String>& aLibPath)
const = 0;
708 getFullLibPath(std::vector<String>& aLibPath)
const = 0;
725 fetch(
const String& aURI)
const = 0;
744 fetch(
const String& aURI,
const String& aEntityKind)
const = 0;
763 const String& aEntityKind,
764 const String& aEncoding)
const = 0;
781 fetchBinary(
const String& aURI)
const = 0;
798 fetchBinary(
const String& aURI,
const String& aEntityKind)
const = 0;
815 setDefaultFunctionNamespaces(
const std::vector<String>& aURIs ) = 0;
virtual ~StaticContext()
Destructor.
preserve_mode_t
Preserve part of the Copy-namespace mode as defined in http://www.w3.org/TR/xquery/#static_context.
Interface for URI mapping.
xquery_version_t
The XQuery version, taken from the version declaration, an XQuery 3.0 feature.
jsoniq_version_t
The JSONiq version.
Instances of the class StaticContext contain the information that is available at the time the query ...
ordering_mode_t
Ordering mode as defined in http://www.w3.org/TR/xquery/#static_context.
boundary_space_mode_t
Boundary-space policy as defined in http://www.w3.org/TR/xquery/#static_context.
Set of hints that can be passed to the query compiler.
order_empty_mode_t
Default order for empty sequences as defined in http://www.w3.org/TR/xquery/#static_context.
std::vector< std::pair< String, String > > NsBindings
Used for Item::getNamespaceBindings() and ItemFactory::createElementNode().
The Zorba Item interface.
Interface for URL resolving.
validation_mode_t
Revalidation mode as defined in http://www.w3.org/TR/xquery-update-10/#id-revalidation-declaration No...
An external module represents a group of external functions, all belonging to the same target namespa...
construction_mode_t
Construction mode as defined in http://www.w3.org/TR/xquery/#static_context.
inherit_mode_t
Inherit part of the Copy-namespace mode as defined in http://www.w3.org/TR/xquery/#static_context.
Using the StaticCollectionManager one can retrieve information about statically declared collections ...
xpath1_0compatib_mode_t
XPath 1.0 compatibility mode as defined in http://www.w3.org/TR/xquery/#static_context.