de.fraunhofer.ipsi.xquery.io
Interface DocumentManager


public interface DocumentManager

A DocumentManager gives access to XML documents and collections.

Version:
1.1
Author:
Patrick Lehti lehti@ipsi.fhg.de

Method Summary
 Sequence getCollection(java.lang.String systemId)
          Finds a collection, is called by the collection() function.
 DocumentNode getDocument(java.lang.String systemId)
          Finds a document, is called by the document() function.
 void setDocumentRoot(java.lang.String root)
          Method setDocumentRoot
 

Method Detail

getDocument

DocumentNode getDocument(java.lang.String systemId)
                         throws InputException,
                                MalformedURIException
Finds a document, is called by the document() function.

Parameters:
systemId - a URI where to find the document. If a document root is set, the systemId is extended with this root to get a absolute URI.
Returns:
a DM_DocumentNode
Throws:
InputException
MalformedURIException

getCollection

Sequence getCollection(java.lang.String systemId)
                       throws InputException,
                              MalformedURIException
Finds a collection, is called by the collection() function.

Parameters:
systemId - a URI where to find the collection. If a document root is set, the systemId is extended with this root to get a absolute URI.
Returns:
a DM_Sequence
Throws:
InputException
MalformedURIException

setDocumentRoot

void setDocumentRoot(java.lang.String root)
                     throws MalformedURIException
Method setDocumentRoot

Parameters:
root - a String defining the root where to find the documents.
Throws:
MalformedURIException