org.xmldb.api.reference.modules
public class XPathQueryServiceImpl extends SimpleXPathQueryService
Service
that enables the execution of
XPath queries within the context of a Collection
.version
Constructor and Description |
---|
XPathQueryServiceImpl() |
Modifier and Type | Method and 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
|
clearNamespaces, getNamespace, queryResource, removeNamespace, setNamespace
getProperty, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperty, setProperty
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.