|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | 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,
String 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. |
SixdmlQueryResultsMap |
executeQuery(String query,
SixdmlCollection collection)
Executes an XPath query against the specified collection. |
SixdmlQueryResultsMap |
executeQuery(String query,
SixdmlCollection collection,
String predicate)
Executes an XPath query against the specified collection only returning results from documents that satisfy the given predicate. |
SixdmlXpathObject |
executeQuery(String query,
SixdmlResource resource)
Executes an XPath query against the specified collection. |
String |
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(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(SixdmlNamespaceMap nsMap)
throws XMLDBException
nsMap - the new namespace map to use.XMLDBException - if anything goes wrong.
public void addNamespaceMapping(String prefix,
String 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 String getNamespaceMapping(String prefix)
throws XMLDBException
prefix - the prefix whose namespace is being sought.
public SixdmlQueryResultsMap executeQuery(String query,
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 SixdmlQueryResultsMap executeQuery(String query,
SixdmlCollection collection,
String predicate)
throws InvalidQueryException,
XMLDBException
query - the XPath query.collection - the collection to execute the query against.predicate - an XPath query used to filter which documents the main query is run against.InvalidQueryException - if the query is not valid XPath.XMLDBException - if a database error occursSixdmlXpathObject
public SixdmlXpathObject executeQuery(String query,
SixdmlResource resource)
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||