XmlDataManager

#include </home/jenkins/.jenkins/ubuntu-remote-queue/jenkins-BuildZorbaUbuntu-462/source/zorba/swig/XmlDataManager.h>

Using the XmlDataManager one can manage documents and collections. The XmlDataManager is a singleton instance. The Zorba object is reponsible for maintaining its lifetime. The instance can be accessed by calling getXmlDataManager() on the Zorba object. It may not be accessed anymore after Zorba::shutdown() has been called.XmlDataManager is a thread-safe class.

Private Attributes

zorba::XmlDataManager_t

theManager

Public Functions

CollectionManager

getCollectionManager()

Returns a CollectionManager responsible for all collections.

DocumentManager

getDocumentManager()

Returns a DocumentManager.

CollectionManager

getW3CCollectionManager()

Returns a CollectionManager responsible for collections identified by a URI.

Iterator

parseXML(const std::string &aDoc)

Parse an XML document and return an Iterator.

Item

parseXMLtoItem(const std::string &aDoc)

Parse an XML document and return an Item.

Item

parseXMLtoItem(ZorbaIOStream &aStream)

Parse an XML stream and return an Item.

XmlDataManager(const XmlDataManager &aMgr)

XmlDataManager(zorba::XmlDataManager_t aMgr)

Private Attributes

theManager

zorba::XmlDataManager_t theManager

Public Functions

getCollectionManager

CollectionManager getCollectionManager()

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.

Returns

The collection manager responsible for managing collections.

getDocumentManager

DocumentManager getDocumentManager()

Returns a DocumentManager.

Returns

The document manager.

getW3CCollectionManager

CollectionManager getW3CCollectionManager()

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.

Returns

The collection manager responsible for managing collections.

parseXML

Iterator parseXML(const std::string &aDoc)

Parse an XML document and return an Iterator.

Parameters

aDoc the input string whose content should be parsed

parseXMLtoItem

Item parseXMLtoItem(const std::string &aDoc)

Parse an XML document and return an Item.

Parameters

aDoc the input string whose content should be parsed

parseXMLtoItem

Item parseXMLtoItem(ZorbaIOStream &aStream)

Parse an XML stream and return an Item.

Parameters

aStream the input string whose content should be parsed

XmlDataManager

 XmlDataManager(const XmlDataManager &aMgr)

XmlDataManager

 XmlDataManager(zorba::XmlDataManager_t aMgr)