Configurable
, Service
, XPathQueryService
public class XPathQueryServiceImpl extends SimpleXPathQueryService
Service
that enables the execution of
XPath queries within the context of a Collection
.SERVICE_NAME
Constructor | Description |
---|---|
XPathQueryServiceImpl() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getName() |
Returns the name associated with the Configurable object.
|
java.lang.String |
getVersion() |
Gets the Version attribute of the Service object
|
ResourceSet |
query(java.lang.String query) |
Run an XPath query againt the
Collection . |
void |
setCollection(Collection col) |
Sets the Collection attribute of the Service object
|
getProperty, setProperty
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperty, setProperty
clearNamespaces, getNamespace, queryResource, removeNamespace, setNamespace
public java.lang.String getName() throws XMLDBException
getName
in interface Service
getName
in class SimpleXPathQueryService
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public java.lang.String getVersion() throws XMLDBException
getVersion
in interface Service
getVersion
in class SimpleXPathQueryService
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public void setCollection(Collection col) throws XMLDBException
setCollection
in interface Service
setCollection
in class SimpleXPathQueryService
col
- The new Collection valueXMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public ResourceSet query(java.lang.String query) throws XMLDBException
Collection
. The result is a
ResourceIterator
containing the results of the query.query
in interface XPathQueryService
query
in class SimpleXPathQueryService
query
- The XPath query string to use.XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.Copyright (C) XML:DB Initiative. All rights reserved.%lt;/font>