| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.xmldb.api.sdk.SimpleConfigurableorg.xmldb.api.sdk.modules.SimpleXPathQueryServiceorg.xmldb.api.reference.modules.XPathQueryServiceImplpublic class XPathQueryServiceImplextends SimpleXPathQueryServiceService 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 XMLDBExceptionReturns the name associated with the Configurable object.
- Overrides:
- getName in interface SimpleXPathQueryService
- Returns:
- the name of the object.
public String getVersion()
throws XMLDBExceptionGets 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 aResourceIteratorcontaining 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