net.sf.nxqd.xmldb
Class NxqdXPathQueryService

java.lang.Object
  extended by net.sf.nxqd.xmldb.NxqdService
      extended by net.sf.nxqd.xmldb.NxqdXPathQueryService
All Implemented Interfaces:
Configurable, Service, XPathQueryService

public class NxqdXPathQueryService
extends NxqdService
implements XPathQueryService

The class NxqdXPathQueryService is an implemenation of org.xmldb.api.modules.XPathQueryService.

Version:
1.0
Author:
webhiker
See Also:
XPathQueryService

Field Summary
 
Fields inherited from class net.sf.nxqd.xmldb.NxqdService
NAME, VERSION
 
Constructor Summary
NxqdXPathQueryService(NxqdCollection parent)
           
 
Method Summary
 void clearNamespaces()
           
 String getNamespace(String prefix)
           
 ResourceSet query(String query)
           
static void queryCollection(String query, NxqdCollection collection, Map namespaces, ResourceSet results, boolean recurseChildren)
           
 ResourceSet queryResource(String id, String query)
           
 void removeNamespace(String prefix)
           
 void setNamespace(String prefix, String uri)
           
 
Methods inherited from class net.sf.nxqd.xmldb.NxqdService
getName, getProperty, getVersion, keys, removeProperty, setCollection, setProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xmldb.api.base.Service
getName, getVersion, setCollection
 
Methods inherited from interface org.xmldb.api.base.Configurable
getProperty, setProperty
 

Constructor Detail

NxqdXPathQueryService

public NxqdXPathQueryService(NxqdCollection parent)
                      throws XMLDBException
Throws:
XMLDBException
Method Detail

setNamespace

public void setNamespace(String prefix,
                         String uri)
                  throws XMLDBException
Specified by:
setNamespace in interface XPathQueryService
Throws:
XMLDBException
See Also:
XPathQueryService.setNamespace(java.lang.String, java.lang.String)

getNamespace

public String getNamespace(String prefix)
                    throws XMLDBException
Specified by:
getNamespace in interface XPathQueryService
Throws:
XMLDBException
See Also:
XPathQueryService.getNamespace(java.lang.String)

removeNamespace

public void removeNamespace(String prefix)
                     throws XMLDBException
Specified by:
removeNamespace in interface XPathQueryService
Throws:
XMLDBException
See Also:
XPathQueryService.removeNamespace(java.lang.String)

clearNamespaces

public void clearNamespaces()
                     throws XMLDBException
Specified by:
clearNamespaces in interface XPathQueryService
Throws:
XMLDBException
See Also:
XPathQueryService.clearNamespaces()

query

public ResourceSet query(String query)
                  throws XMLDBException
Specified by:
query in interface XPathQueryService
Throws:
XMLDBException
See Also:
XPathQueryService.query(java.lang.String)

queryCollection

public static void queryCollection(String query,
                                   NxqdCollection collection,
                                   Map namespaces,
                                   ResourceSet results,
                                   boolean recurseChildren)
                            throws XMLDBException
Throws:
XMLDBException

queryResource

public ResourceSet queryResource(String id,
                                 String query)
                          throws XMLDBException
Specified by:
queryResource in interface XPathQueryService
Throws:
XMLDBException
See Also:
XPathQueryService.queryResource(java.lang.String, java.lang.String)


Copyright © 2005-2006 nxqd. All Rights Reserved.