Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.xmldb.api.sdk.SimpleConfigurable
org.xmldb.api.sdk.modules.SimpleXPathQueryService
org.xmldb.api.reference.modules.XPathQueryServiceImpl
public class XPathQueryServiceImpl
extends SimpleXPathQueryService
Service
that enables the execution of
XPath queries within the context of a Collection
.
Field Summary |
Fields inherited from class org.xmldb.api.sdk.modules.SimpleXPathQueryService | |
version |
Constructor Summary | |
Method Summary | |
String |
|
String |
|
ResourceSet |
|
void |
|
Methods inherited from class org.xmldb.api.sdk.modules.SimpleXPathQueryService | |
clearNamespaces , getName , getNamespace , getVersion , query , queryResource , removeNamespace , setCollection , setNamespace |
Methods inherited from class org.xmldb.api.sdk.SimpleConfigurable | |
getProperty , setProperty |
public String getName() throws XMLDBException
Returns the name associated with the Configurable object.
- Overrides:
- getName in interface SimpleXPathQueryService
- Returns:
- the name of the object.
public String getVersion() throws XMLDBException
Gets the Version attribute of the Service object
- Specified by:
- getVersion in interface Service
- Overrides:
- getVersion in interface SimpleXPathQueryService
- Returns:
- The Version value
public ResourceSet query(String query) throws XMLDBException
Run an XPath query againt theCollection
. The result is aResourceIterator
containing the results of the query.
- Specified by:
- query in interface XPathQueryService
- Overrides:
- query in interface SimpleXPathQueryService
- Parameters:
query
- The XPath query string to use.
- Returns:
- A ResourceIterator containing the results of the query.
public void setCollection(Collection col) throws XMLDBException
Sets the Collection attribute of the Service object
- Specified by:
- setCollection in interface Service
- Overrides:
- setCollection in interface SimpleXPathQueryService
- Parameters:
col
- The new Collection value