Main Page
Namespaces
Classes
Files
Examples
File List
File Members
include
xqilla
context
URIResolver.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2001-2008
3
* DecisionSoft Limited. All rights reserved.
4
* Copyright (c) 2004-2008
5
* Oracle. All rights reserved.
6
*
7
* Licensed under the Apache License, Version 2.0 (the "License");
8
* you may not use this file except in compliance with the License.
9
* You may obtain a copy of the License at
10
*
11
* http://www.apache.org/licenses/LICENSE-2.0
12
*
13
* Unless required by applicable law or agreed to in writing, software
14
* distributed under the License is distributed on an "AS IS" BASIS,
15
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
* See the License for the specific language governing permissions and
17
* limitations under the License.
18
*
19
* $Id$
20
*/
21
22
#ifndef _URIRESOLVER_HPP
23
#define _URIRESOLVER_HPP
24
25
#include <xqilla/framework/XQillaExport.hpp>
26
#include <
xqilla/items/Node.hpp
>
27
28
#include <
xercesc/util/XMemory.hpp
>
29
30
class
DynamicContext
;
31
class
Sequence
;
32
class
QueryPathNode;
33
39
class
XQILLA_API
URIResolver
:
public
XERCES_CPP_NAMESPACE_QUALIFIER XMemory
40
{
41
public
:
43
virtual
~URIResolver
() {};
44
50
virtual
bool
resolveDocument(
Sequence
&result,
const
XMLCh* uri,
DynamicContext
*context,
const
QueryPathNode *projection) = 0;
51
57
virtual
bool
resolveCollection(
Sequence
&result,
const
XMLCh* uri,
DynamicContext
*context,
const
QueryPathNode *projection) = 0;
58
62
virtual
bool
resolveDefaultCollection(
Sequence
&result,
DynamicContext
*context,
const
QueryPathNode *projection) = 0;
63
71
virtual
bool
putDocument(
const
Node::Ptr
&document,
const
XMLCh *uri,
DynamicContext
*context) = 0;
72
};
73
#endif
RefCountPointer
Super class of all the reference counted wrappers for Items.
Definition:
ReferenceCounted.hpp:58
URIResolver
This is an abstract class used to resolve URIs in different ways.
Definition:
URIResolver.hpp:39
URIResolver::~URIResolver
virtual ~URIResolver()
virtual destructor, does nothing
Definition:
URIResolver.hpp:43
DynamicContext
The execution time dynamic context interface.
Definition:
DynamicContext.hpp:39
Node.hpp
Sequence
An eagerly evaluated result of a query execution.
Definition:
Sequence.hpp:41
XMemory.hpp
Generated by
1.8.5