This is an abstract class used to resolve URIs in different ways. More...
#include <URIResolver.hpp>
Public Member Functions | |
virtual | ~URIResolver () |
virtual destructor, does nothing More... | |
virtual bool | resolveDocument (Sequence &result, const XMLCh *uri, DynamicContext *context, const QueryPathNode *projection)=0 |
Resolve the given uri (and baseUri) to a Sequence (reference parameter). More... | |
virtual bool | resolveCollection (Sequence &result, const XMLCh *uri, DynamicContext *context, const QueryPathNode *projection)=0 |
Resolve the given uri (and baseUri) to a Sequence (reference parameter). More... | |
virtual bool | resolveDefaultCollection (Sequence &result, DynamicContext *context, const QueryPathNode *projection)=0 |
Resolve the default collection. More... | |
virtual bool | putDocument (const Node::Ptr &document, const XMLCh *uri, DynamicContext *context)=0 |
Called with any document that has been updated, to allow the user to save the document in any manner applicable. More... | |
![]() | |
void * | operator new (size_t size) |
This method overrides operator new. More... | |
void * | operator new (size_t size, MemoryManager *memMgr) |
This method defines a custom operator new, that will use the provided memory manager to perform the allocation. More... | |
void * | operator new (size_t size, void *ptr) |
This method overrides placement operator new. More... | |
void | operator delete (void *p) |
This method overrides operator delete. More... | |
void | operator delete (void *p, MemoryManager *memMgr) |
This method provides a matching delete for the custom operator new. More... | |
void | operator delete (void *p, void *ptr) |
This method provides a matching delete for the placement new. More... | |
Additional Inherited Members | |
![]() | |
XMemory () | |
Protected default constructor. More... | |
This is an abstract class used to resolve URIs in different ways.
The user should derive a concrete class from URIResolver, and use the DynamicContext::registerURIResolver() method to add this resolver to the list used by XQilla.
|
inlinevirtual |
virtual destructor, does nothing
|
pure virtual |
Called with any document that has been updated, to allow the user to save the document in any manner applicable.
The uri parameter will be the argument to the fn:put() function if that was called with the document - otherwise it will be the document URI of the document. If this URIResolver successfully handled the putDocument() request, the method should return true, otherwise it should return false and subsequent URIResolver objects will be called to handle the document.
|
pure virtual |
Resolve the given uri (and baseUri) to a Sequence (reference parameter).
If the uri is relative, the base uri can be obtained from the context. If the uri is not handled by this URIResolver, returns false, otherwise returns true.
|
pure virtual |
Resolve the default collection.
If it is not defined, returns false, otherwise returns true.
|
pure virtual |
Resolve the given uri (and baseUri) to a Sequence (reference parameter).
If the uri is relative, the base uri can be obtained from the context. If the uri is not handled by this URIResolver, returns false, otherwise returns true.