org.exist.xmldb
Class RemoteXPathQueryService

java.lang.Object
  extended byorg.exist.xmldb.RemoteXPathQueryService
All Implemented Interfaces:
Configurable, Service, XPathQueryService, XPathQueryServiceImpl

public class RemoteXPathQueryService
extends java.lang.Object
implements XPathQueryServiceImpl


Field Summary
protected  RemoteCollection collection
           
protected  java.lang.String encoding
           
protected  int indentXML
           
 
Constructor Summary
RemoteXPathQueryService(RemoteCollection collection)
           
 
Method Summary
 void clearNamespaces()
          Description of the Method
 java.lang.String getName()
          Gets the name attribute of the XPathQueryServiceImpl object
 java.lang.String getNamespace(java.lang.String prefix)
          Gets the namespace attribute of the XPathQueryServiceImpl object
 java.lang.String getProperty(java.lang.String property)
          Gets the property attribute of the XPathQueryServiceImpl object
 java.lang.String getVersion()
          Gets the version attribute of the XPathQueryServiceImpl object
 ResourceSet query(java.lang.String query)
          Run an XPath query against the Collection.
 ResourceSet query(java.lang.String query, java.lang.String sortExpr)
           
 ResourceSet query(XMLResource res, java.lang.String query)
          Process an XPath query based on the result of a previous query.
 ResourceSet query(XMLResource res, java.lang.String query, java.lang.String sortExpr)
           
 ResourceSet queryResource(java.lang.String resource, java.lang.String query)
          Description of the Method
 void removeNamespace(java.lang.String ns)
          Description of the Method
 void setCollection(Collection col)
          Sets the collection attribute of the XPathQueryServiceImpl object
 void setNamespace(java.lang.String prefix, java.lang.String namespace)
          Sets the namespace attribute of the XPathQueryServiceImpl object
 void setProperty(java.lang.String property, java.lang.String value)
          Sets the property attribute of the XPathQueryServiceImpl object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indentXML

protected int indentXML

encoding

protected java.lang.String encoding

collection

protected RemoteCollection collection
Constructor Detail

RemoteXPathQueryService

public RemoteXPathQueryService(RemoteCollection collection)
Method Detail

query

public ResourceSet query(java.lang.String query)
                  throws XMLDBException
Description copied from interface: XPathQueryService
Run an XPath query against the Collection. The XPath will be applied to all XML resources stored in the Collection. The result is a ResourceSet containing the results of the query. Any namespaces used in the query string will be evaluated using the mappings setup using setNamespace.

Specified by:
query in interface XPathQueryService
Parameters:
query - The XPath query string to use.
Returns:
A ResourceSet containing the results of the query.
Throws:
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.

query

public ResourceSet query(java.lang.String query,
                         java.lang.String sortExpr)
                  throws XMLDBException
Specified by:
query in interface XPathQueryServiceImpl
Throws:
XMLDBException

query

public ResourceSet query(XMLResource res,
                         java.lang.String query)
                  throws XMLDBException
Description copied from interface: XPathQueryServiceImpl
Process an XPath query based on the result of a previous query. The XMLResource contains the result received from a previous query.

Specified by:
query in interface XPathQueryServiceImpl
Throws:
XMLDBException

query

public ResourceSet query(XMLResource res,
                         java.lang.String query,
                         java.lang.String sortExpr)
                  throws XMLDBException
Specified by:
query in interface XPathQueryServiceImpl
Throws:
XMLDBException

queryResource

public ResourceSet queryResource(java.lang.String resource,
                                 java.lang.String query)
                          throws XMLDBException
Description of the Method

Specified by:
queryResource in interface XPathQueryService
Parameters:
resource - Description of the Parameter
query - Description of the Parameter
Returns:
Description of the Return Value
Throws:
XMLDBException - Description of the Exception

getVersion

public java.lang.String getVersion()
                            throws XMLDBException
Gets the version attribute of the XPathQueryServiceImpl object

Specified by:
getVersion in interface Service
Returns:
The version value
Throws:
XMLDBException - Description of the Exception

setCollection

public void setCollection(Collection col)
                   throws XMLDBException
Sets the collection attribute of the XPathQueryServiceImpl object

Specified by:
setCollection in interface Service
Parameters:
col - The new collection value
Throws:
XMLDBException - Description of the Exception

getName

public java.lang.String getName()
                         throws XMLDBException
Gets the name attribute of the XPathQueryServiceImpl object

Specified by:
getName in interface Service
Returns:
The name value
Throws:
XMLDBException - Description of the Exception

getProperty

public java.lang.String getProperty(java.lang.String property)
                             throws XMLDBException
Gets the property attribute of the XPathQueryServiceImpl object

Specified by:
getProperty in interface Configurable
Parameters:
property - Description of the Parameter
Returns:
The property value
Throws:
XMLDBException - Description of the Exception

setProperty

public void setProperty(java.lang.String property,
                        java.lang.String value)
                 throws XMLDBException
Sets the property attribute of the XPathQueryServiceImpl object

Specified by:
setProperty in interface Configurable
Parameters:
property - The new property value
value - The new property value
Throws:
XMLDBException - Description of the Exception

clearNamespaces

public void clearNamespaces()
                     throws XMLDBException
Description of the Method

Specified by:
clearNamespaces in interface XPathQueryService
Throws:
XMLDBException - Description of the Exception

removeNamespace

public void removeNamespace(java.lang.String ns)
                     throws XMLDBException
Description of the Method

Specified by:
removeNamespace in interface XPathQueryService
Parameters:
ns - Description of the Parameter
Throws:
XMLDBException - Description of the Exception

setNamespace

public void setNamespace(java.lang.String prefix,
                         java.lang.String namespace)
                  throws XMLDBException
Sets the namespace attribute of the XPathQueryServiceImpl object

Specified by:
setNamespace in interface XPathQueryService
Parameters:
prefix - The new namespace value
namespace - The new namespace value
Throws:
XMLDBException - Description of the Exception

getNamespace

public java.lang.String getNamespace(java.lang.String prefix)
                              throws XMLDBException
Gets the namespace attribute of the XPathQueryServiceImpl object

Specified by:
getNamespace in interface XPathQueryService
Parameters:
prefix - Description of the Parameter
Returns:
The namespace value
Throws:
XMLDBException - Description of the Exception


Copyright (C) Wolfgang Meier. All rights reserved.