org.xmldb.api.reference.modules

Class XPathQueryServiceImpl

public class XPathQueryServiceImpl extends SimpleXPathQueryService

XPathQueryService is a Service that enables the execution of XPath queries within the context of a Collection.
Constructor Summary
XPathQueryServiceImpl()
Method Summary
StringgetName()
Returns the name associated with the Configurable object.
StringgetVersion()
Gets the Version attribute of the Service object
ResourceSetquery(String query)
Run an XPath query againt the Collection.
voidsetCollection(Collection col)
Sets the Collection attribute of the Service object

Constructor Detail

XPathQueryServiceImpl

public XPathQueryServiceImpl()

Method Detail

getName

public String getName()
Returns the name associated with the Configurable object.

Returns: the name of the object.

getVersion

public String getVersion()
Gets the Version attribute of the Service object

Returns: The Version value

query

public ResourceSet query(String query)
Run an XPath query againt the Collection. The result is a ResourceIterator containing the results of the query.

Parameters: query The XPath query string to use.

Returns: A ResourceIterator containing the results of the query.

setCollection

public void setCollection(Collection col)
Sets the Collection attribute of the Service object

Parameters: col The new Collection value