zorba::XmlDataManager#include <zorba/xmldatamanager.h> Inherited from: zorba::SmartObject Using the XmlDataManager one can manage documents and collections. An instance of XmlDataManager can be obtained via the Zorba::getXmlDataManager() method. The instance must be destroyed before Zorba::shutdown() is called.Public Functions
Protected Functions
Protected Attributes
Public FunctionsaddReferencevoid addReference() const
freevoid free()
getCollectionManagerCollectionManager * getCollectionManager() const =0 Returns a CollectionManager responsible for all collections. The collection manager provides a set of functions for managing collections identified by a QName and their contents.Please note that the resulting manager is only responsible for dynamic collections identified by a QName, i.e. those that are not declared in the prolog of a module or identified by a URI. ReturnsThe collection manager responsible for managing collections.getDocumentManagerDocumentManager * getDocumentManager() const =0 Returns a DocumentManager responsible for managing XML documents.
getRefCountlong getRefCount() const
getW3CCollectionManagerCollectionManager * getW3CCollectionManager() const =0 Returns a CollectionManager responsible for collections identified by a URI. The collection manager provides a set of functions for managing collections identified by a URI and their contents.Please note that the resulting manager is only responsible for dynamic collections identified by a URI, i.e. those that are not declared in the prolog of a module or identified by a QName. ReturnsThe collection manager responsible for managing collections.parseXMLItem parseXML(std::istream &aStream, const String &aBaseURI) const =0 Parse an XML document and return an Item.
Parameters
parseXMLItemSequence_t parseXML(std::istream &aStream, ParseOptions &aOptions) const =0 Parse an XML document and return a sequence of nodes. This function parses the given input stream and returns the result as a sequence of nodes. If external entity processing is disabled the result will be a singleton sequence consisting of one document node. Otherwise, the result is the sequence of the external entity nodes. Parameters
parseXMLItemSequence_t parseXML(std::istream &aStream, const String &aBaseURI, ParseOptions &aOptions) const =0 Parse an XML document and return a sequence of nodes. This function parses the given input stream and returns the result as a sequence of nodes. If external entity processing is disabled the result will be a singleton sequence consisting of one document node. Otherwise, the result is the sequence of the external entity nodes. Parameters
registerDiagnosticHandlervoid registerDiagnosticHandler(DiagnosticHandler *aDiagnosticHandler)=0 Register a DiagnosticHandler to which errors occuring during the management of documents and collections are reported. If no DiagnosticHandler has been set using this function then subclasses of the ZorbaException class are thrown to report errors. Parameters
registerStemmerProvidervoid registerStemmerProvider(StemmerProvider const *provider)=0 Registers a StemmerProvider to use for stemming of text content in order to perform queries involving full-text. If no StemmerProvider has been set using this function, then the default StemmerProvider will be used. Parameters
registerTokenizerProvidervoid registerTokenizerProvider(TokenizerProvider const *provider)=0 Registers a TokenizerProvider to use for toknenization of text content in order to perform queries involving full-text. If no TokenizerProvider has been set using this function, then the default TokenizerProvider will be used. Parameters
removeReferencevoid removeReference()
Protected Functions~XmlDataManager ~XmlDataManager() Destructor.
Protected AttributestheRefCountunsigned int theRefCount
|