|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.xmldb.RemoteXPathQueryService
Field Summary | |
protected RemoteCollection |
collection
|
protected java.lang.String |
encoding
|
protected int |
indentXML
|
Constructor Summary | |
RemoteXPathQueryService(RemoteCollection collection)
|
Method Summary | |
void |
clearNamespaces()
Description of the Method |
java.lang.String |
getName()
Gets the name attribute of the XPathQueryServiceImpl object |
java.lang.String |
getNamespace(java.lang.String prefix)
Gets the namespace attribute of the XPathQueryServiceImpl object |
java.lang.String |
getProperty(java.lang.String property)
Gets the property attribute of the XPathQueryServiceImpl object |
java.lang.String |
getVersion()
Gets the version attribute of the XPathQueryServiceImpl object |
ResourceSet |
query(java.lang.String query)
Run an XPath query against the Collection . |
ResourceSet |
query(java.lang.String query,
java.lang.String sortExpr)
|
ResourceSet |
query(XMLResource res,
java.lang.String query)
Process an XPath query based on the result of a previous query. |
ResourceSet |
query(XMLResource res,
java.lang.String query,
java.lang.String sortExpr)
|
ResourceSet |
queryResource(java.lang.String resource,
java.lang.String query)
Description of the Method |
void |
removeNamespace(java.lang.String ns)
Description of the Method |
void |
setCollection(Collection col)
Sets the collection attribute of the XPathQueryServiceImpl object |
void |
setNamespace(java.lang.String prefix,
java.lang.String namespace)
Sets the namespace attribute of the XPathQueryServiceImpl object |
void |
setProperty(java.lang.String property,
java.lang.String value)
Sets the property attribute of the XPathQueryServiceImpl object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int indentXML
protected java.lang.String encoding
protected RemoteCollection collection
Constructor Detail |
public RemoteXPathQueryService(RemoteCollection collection)
Method Detail |
public ResourceSet query(java.lang.String query) throws XMLDBException
XPathQueryService
Collection
. The XPath will be
applied to all XML resources stored in the Collection
.
The result is a
ResourceSet
containing the results of the query. Any
namespaces used in the query
string will be evaluated using
the mappings setup using setNamespace
.
query
in interface XPathQueryService
query
- The XPath query string to use.
ResourceSet
containing the results of the query.
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public ResourceSet query(java.lang.String query, java.lang.String sortExpr) throws XMLDBException
query
in interface XPathQueryServiceImpl
XMLDBException
public ResourceSet query(XMLResource res, java.lang.String query) throws XMLDBException
XPathQueryServiceImpl
query
in interface XPathQueryServiceImpl
XMLDBException
public ResourceSet query(XMLResource res, java.lang.String query, java.lang.String sortExpr) throws XMLDBException
query
in interface XPathQueryServiceImpl
XMLDBException
public ResourceSet queryResource(java.lang.String resource, java.lang.String query) throws XMLDBException
queryResource
in interface XPathQueryService
resource
- Description of the Parameterquery
- Description of the Parameter
XMLDBException
- Description of the Exceptionpublic java.lang.String getVersion() throws XMLDBException
getVersion
in interface Service
XMLDBException
- Description of the Exceptionpublic void setCollection(Collection col) throws XMLDBException
setCollection
in interface Service
col
- The new collection value
XMLDBException
- Description of the Exceptionpublic java.lang.String getName() throws XMLDBException
getName
in interface Service
XMLDBException
- Description of the Exceptionpublic java.lang.String getProperty(java.lang.String property) throws XMLDBException
getProperty
in interface Configurable
property
- Description of the Parameter
XMLDBException
- Description of the Exceptionpublic void setProperty(java.lang.String property, java.lang.String value) throws XMLDBException
setProperty
in interface Configurable
property
- The new property valuevalue
- The new property value
XMLDBException
- Description of the Exceptionpublic void clearNamespaces() throws XMLDBException
clearNamespaces
in interface XPathQueryService
XMLDBException
- Description of the Exceptionpublic void removeNamespace(java.lang.String ns) throws XMLDBException
removeNamespace
in interface XPathQueryService
ns
- Description of the Parameter
XMLDBException
- Description of the Exceptionpublic void setNamespace(java.lang.String prefix, java.lang.String namespace) throws XMLDBException
setNamespace
in interface XPathQueryService
prefix
- The new namespace valuenamespace
- The new namespace value
XMLDBException
- Description of the Exceptionpublic java.lang.String getNamespace(java.lang.String prefix) throws XMLDBException
getNamespace
in interface XPathQueryService
prefix
- Description of the Parameter
XMLDBException
- Description of the Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |