Public Member Functions | List of all members
XmlDataManager Class Reference

Using the XmlDataManager one can manage documents and collections. More...

Public Member Functions

CollectionManager getCollectionManager ()
 Returns a CollectionManager responsible for all collections. More...
 
DocumentManager getDocumentManager ()
 Returns a DocumentManager. More...
 
CollectionManager getW3CCollectionManager ()
 Returns a CollectionManager responsible for collections identified by a URI. More...
 
Iterator parseXML (const std::string &aDoc)
 Parse an XML document and return an Iterator. More...
 
Item parseXMLtoItem (const std::string &aDoc)
 Parse an XML document and return an Item. More...
 
Item parseXMLtoItem (ZorbaIOStream &aStream)
 Parse an XML stream and return an Item. More...
 
 XmlDataManager (const XmlDataManager &aMgr)
 
 XmlDataManager (zorba::XmlDataManager *aMgr)
 

Detailed Description

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.

Definition at line 28 of file XmlDataManager.h.

Constructor & Destructor Documentation

XmlDataManager::XmlDataManager ( const XmlDataManager aMgr)
inline

Definition at line 34 of file XmlDataManager.h.

XmlDataManager::XmlDataManager ( zorba::XmlDataManager *  aMgr)
inline

Definition at line 35 of file XmlDataManager.h.

Member Function Documentation

CollectionManager XmlDataManager::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.
DocumentManager XmlDataManager::getDocumentManager ( )

Returns a DocumentManager.

Returns
The document manager.
CollectionManager XmlDataManager::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.
Iterator XmlDataManager::parseXML ( const std::string &  aDoc)

Parse an XML document and return an Iterator.

Parameters
aDocthe input string whose content should be parsed
Item XmlDataManager::parseXMLtoItem ( const std::string &  aDoc)

Parse an XML document and return an Item.

Parameters
aDocthe input string whose content should be parsed
Item XmlDataManager::parseXMLtoItem ( ZorbaIOStream aStream)

Parse an XML stream and return an Item.

Parameters
aStreamthe input string whose content should be parsed

The documentation for this class was generated from the following file: