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, setNamespacegetProperty, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProperty, setPropertypublic java.lang.String getName()
throws XMLDBException
getName in interface ServicegetName in class SimpleXPathQueryServiceXMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.public java.lang.String getVersion()
throws XMLDBException
getVersion in interface ServicegetVersion in class SimpleXPathQueryServiceXMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.public void setCollection(Collection col) throws XMLDBException
setCollection in interface ServicesetCollection in class SimpleXPathQueryServicecol - 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 XPathQueryServicequery in class SimpleXPathQueryServicequery - The XPath query string to use.XMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.