|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
SixdmlQueryService.java This is a Service that enables the execution of XPath queries within the context of a Collection or against the documents stored in the Collection. Created: Fri Jan 11 11:55:20 2002
| Method Summary | |
void |
addNamespaceMapping(String prefix,
URI namespaceURI)
Add a mapping between a given prefix and a namespace to the service's internal namespace map. |
void |
clearNamespaceMappings()
Clear all namespace mappings in the service's internal namespace map. |
org.sixdml.query.SixdmlQueryResultsMap |
executeQuery(String query,
org.sixdml.SixdmlCollection collection)
Executes an XPath query against the specified collection. |
org.sixdml.query.SixdmlXpathObject |
executeQuery(String query,
org.sixdml.SixdmlResource resource)
Executes an XPath query against the specified collection. |
URI |
getNamespaceMapping(String prefix)
Obtain the namespace URI mapped to a particular prefix. |
void |
removeNamespaceMapping(String prefix)
Remove a mapping between a given prefix and a namespace to the service's internal namespace map. |
void |
setNamespaceMap(org.sixdml.SixdmlNamespaceMap nsMap)
Set the SixdmlNamespaceMap used by this class to map prefixes to namespace URIs used in XPath queries. |
| Methods inherited from interface org.xmldb.api.base.Service |
getName, getVersion, setCollection |
| Methods inherited from interface org.xmldb.api.base.Configurable |
getProperty, setProperty |
| Method Detail |
public void setNamespaceMap(org.sixdml.SixdmlNamespaceMap nsMap)
throws XMLDBException
nsMap - the new namespace map to use.
XMLDBException - if anything goes wrong.
public void addNamespaceMapping(String prefix,
URI namespaceURI)
throws XMLDBException
prefix - key with which the specified namespace URI is associated.namespaceURI - value to be associated with the specified prefix.
XMLDBException - if anything goes wrong.
public void removeNamespaceMapping(String prefix)
throws XMLDBException
prefix - key with which the specified namespace URI is associated.
XMLDBException - if anything goes wrong.
public void clearNamespaceMappings()
throws XMLDBException
XMLDBException - if anything goes wrong.
public URI getNamespaceMapping(String prefix)
throws XMLDBException
prefix - the prefix whose namespace is being sought.
XMLDBException
public org.sixdml.query.SixdmlQueryResultsMap executeQuery(String query,
org.sixdml.SixdmlCollection collection)
throws InvalidQueryException,
XMLDBException
query - the XPath query.collection - the collection to execute the query against.
InvalidQueryException - if the query is not valid XPath.
XMLDBException - if a database error occursSixdmlXpathObject
public org.sixdml.query.SixdmlXpathObject executeQuery(String query,
org.sixdml.SixdmlResource resource)
throws InvalidQueryException,
XMLDBException
query - the XPath query.
InvalidQueryException - if the query is not valid XPath.
XMLDBException - if a database error occursSixdmlXpathObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||