gov.noaa.eds.xapi.generic.modules
Class GenericXPathQueryService

java.lang.Object
  extended bygov.noaa.eds.xapi.generic.GenericConfigurable
      extended bygov.noaa.eds.xapi.generic.modules.GenericXPathQueryService
All Implemented Interfaces:
org.xmldb.api.base.Configurable, org.xmldb.api.base.Service, org.xmldb.api.modules.XPathQueryService

public class GenericXPathQueryService
extends GenericConfigurable
implements org.xmldb.api.modules.XPathQueryService

A slow query service that examines each resource one by one. It uses Xalan Xpath implementation http://xml.apache.org/xalan-j.

Version:
$Id: GenericXPathQueryService.java,v 1.3 2004/12/23 23:39:15 mrxtravis Exp $
Author:
tns

Field Summary
 
Fields inherited from class gov.noaa.eds.xapi.generic.GenericConfigurable
properties
 
Constructor Summary
GenericXPathQueryService()
          Creates a new instance of GenericXPathQueryService
 
Method Summary
 void clearNamespaces()
          Unsupported
 java.lang.String getName()
          Returns XPathQueryService, which is the name of this service
 java.lang.String getNamespace(java.lang.String str)
          Unsupported
 java.lang.String getVersion()
          Returns the version, currently 1.0
 org.xmldb.api.base.ResourceSet query(java.lang.String query)
          Grabs each Resource from a collection and runs an XPath query on the DOM.
 org.xmldb.api.base.ResourceSet queryResource(java.lang.String str, java.lang.String str1)
          Unsupported
 void removeNamespace(java.lang.String str)
          Unsupported
 void setCollection(org.xmldb.api.base.Collection collection)
          Sets the collection in which to do queries against
 void setNamespace(java.lang.String str, java.lang.String str1)
          Unsupported
 
Methods inherited from class gov.noaa.eds.xapi.generic.GenericConfigurable
getProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xmldb.api.base.Configurable
getProperty, setProperty
 

Constructor Detail

GenericXPathQueryService

public GenericXPathQueryService()
Creates a new instance of GenericXPathQueryService

Method Detail

removeNamespace

public void removeNamespace(java.lang.String str)
Unsupported

Specified by:
removeNamespace in interface org.xmldb.api.modules.XPathQueryService

query

public org.xmldb.api.base.ResourceSet query(java.lang.String query)
                                     throws org.xmldb.api.base.XMLDBException
Grabs each Resource from a collection and runs an XPath query on the DOM. If one or more nodes match the query, then a resource is added the the ResourceSet.

Specified by:
query in interface org.xmldb.api.modules.XPathQueryService
Parameters:
query - The string query to perform on the collection
Returns:
A set of resources which match the query
Throws:
org.xmldb.api.base.XMLDBException

getNamespace

public java.lang.String getNamespace(java.lang.String str)
Unsupported

Specified by:
getNamespace in interface org.xmldb.api.modules.XPathQueryService

setCollection

public void setCollection(org.xmldb.api.base.Collection collection)
Sets the collection in which to do queries against

Specified by:
setCollection in interface org.xmldb.api.base.Service
Parameters:
collection - The collection to do a query against

setNamespace

public void setNamespace(java.lang.String str,
                         java.lang.String str1)
Unsupported

Specified by:
setNamespace in interface org.xmldb.api.modules.XPathQueryService

queryResource

public org.xmldb.api.base.ResourceSet queryResource(java.lang.String str,
                                                    java.lang.String str1)
Unsupported

Specified by:
queryResource in interface org.xmldb.api.modules.XPathQueryService

getVersion

public java.lang.String getVersion()
Returns the version, currently 1.0

Specified by:
getVersion in interface org.xmldb.api.base.Service
Returns:
"1.0"

getName

public java.lang.String getName()
Returns XPathQueryService, which is the name of this service

Specified by:
getName in interface org.xmldb.api.base.Service
Returns:
'XPathQueryService'

clearNamespaces

public void clearNamespaces()
Unsupported

Specified by:
clearNamespaces in interface org.xmldb.api.modules.XPathQueryService


Copyright © 2004 National Oceanic and Atmospheric Administration > National Geophysical Data Center > Enterprise Data Services Division. All Rights Reserved.