io::zorba::api::xqj::ZorbaXQXmlDataManager

Using the ZorbaXQXmlDataManager one can manage documents and collections. The ZorbaXQXmlDataManager is a singleton instance. The XQConnection object is reponsible for maintaining its lifetime. The instance can be accessed by calling getXmlDataManager() on the XQConnection object. It may not be accessed anymore after XQConnection is closed.

Protected Functions

ZorbaXQXmlDataManager(Zorba zorba)

Public Functions

void

close()

Close the XmlDataManager and release all the resources associated with this item.

ZorbaXQCollectionManager

getCollectionManager()

Returns a CollectionManager responsible for all collections.

ZorbaXQDocumentManager

getDocumentManager()

ZorbaXQCollectionManager

getW3CCollectionManager()

Returns a CollectionManager responsible for collections identified by a URI.

XmlDataManager

getXDM()

boolean

isClosed()

Checks if the ZorbaXQXmlDataManager is closed.

ZorbaXQSequence

parseXML(String xmlText)

Parse an XML document and return an ZorbaXQSequence.

Private Functions

void

isClosedXQException()

Private Attributes

closed

boolean closed

dm

XmlDataManager dm

lCollectionManager

ZorbaXQCollectionManager lCollectionManager

lDocumentManager

ZorbaXQDocumentManager lDocumentManager

lW3CollectionManager

ZorbaXQCollectionManager lW3CollectionManager

sequences

Collection< ZorbaXQSequence > sequences

Protected Functions

ZorbaXQXmlDataManager

 ZorbaXQXmlDataManager(Zorba zorba)

Public Functions

close

void close()

Close the XmlDataManager and release all the resources associated with this item.

Close the XmlDataManager and release all the resources associated with this item. No method other than the isClosed or close method may be called once the XmlDataManager is closed. Calling close on an XmlDataManager object that is already closed has no effect.

Parameters

XQException - if there is an error during closing the item

getCollectionManager

ZorbaXQCollectionManager 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

ZorbaXQDocumentManager getDocumentManager()

getW3CCollectionManager

ZorbaXQCollectionManager 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.

getXDM

XmlDataManager getXDM()

isClosed

boolean isClosed()

Checks if the ZorbaXQXmlDataManager is closed.

Checks if the ZorbaXQXmlDataManager is closed.

Returns

boolean true if the ZorbaXQXmlDataManager is in a closed state, false otherwise

parseXML

ZorbaXQSequence parseXML(String xmlText)

Parse an XML document and return an ZorbaXQSequence.

Private Functions

isClosedXQException

void isClosedXQException()