Package org.xmldb.api.reference.modules
Class XPathQueryServiceImpl
java.lang.Object
org.xmldb.api.sdk.SimpleConfigurable
org.xmldb.api.sdk.modules.SimpleXPathQueryService
org.xmldb.api.reference.modules.XPathQueryServiceImpl
- All Implemented Interfaces:
Configurable
,Service
,XPathQueryService
XPathQueryService is a
Service
that enables the execution of
XPath queries within the context of a Collection
.-
Field Summary
Fields inherited from interface org.xmldb.api.modules.XPathQueryService
SERVICE_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name associated with the Configurable object.Gets the Version attribute of the Service objectRun an XPath query againt theCollection
.void
setCollection
(Collection col) Sets the Collection attribute of the Service objectMethods inherited from class org.xmldb.api.sdk.modules.SimpleXPathQueryService
clearNamespaces, getNamespace, queryResource, removeNamespace, setNamespace
Methods inherited from class org.xmldb.api.sdk.SimpleConfigurable
getProperty, 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.Configurable
getProperty, setProperty
-
Constructor Details
-
XPathQueryServiceImpl
public XPathQueryServiceImpl()
-
-
Method Details
-
getName
Returns the name associated with the Configurable object.- Specified by:
getName
in interfaceService
- Overrides:
getName
in classSimpleXPathQueryService
- Returns:
- the name of the object.
- Throws:
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor specific errors that occur.
-
getVersion
Gets the Version attribute of the Service object- Specified by:
getVersion
in interfaceService
- Overrides:
getVersion
in classSimpleXPathQueryService
- Returns:
- The Version value
- Throws:
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor specific errors that occur.
-
setCollection
Sets the Collection attribute of the Service object- Specified by:
setCollection
in interfaceService
- Overrides:
setCollection
in classSimpleXPathQueryService
- Parameters:
col
- The new Collection value- Throws:
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor specific errors that occur.
-
query
Run an XPath query againt theCollection
. The result is aResourceIterator
containing the results of the query.- Specified by:
query
in interfaceXPathQueryService
- Overrides:
query
in classSimpleXPathQueryService
- Parameters:
query
- The XPath query string to use.- Returns:
- A ResourceIterator containing the results of the query.
- Throws:
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor specific errors that occur.
-