Package org.basex.api.xmldb
Class BXQueryService
- java.lang.Object
-
- org.basex.api.xmldb.BXQueryService
-
- All Implemented Interfaces:
org.xmldb.api.base.Configurable,org.xmldb.api.base.Service,org.xmldb.api.modules.XPathQueryService
public final class BXQueryService extends Object implements org.xmldb.api.modules.XPathQueryService
Abstract QueryService definition for the XMLDB:API.- Author:
- BaseX Team 2005-23, BSD License, Christian Gruen
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearNamespaces()StringgetName()StringgetNamespace(String prefix)StringgetProperty(String nm)StringgetVersion()BXResourceSetquery(String query)BXResourceSetqueryResource(String id, String query)voidremoveNamespace(String prefix)voidsetCollection(org.xmldb.api.base.Collection col)voidsetNamespace(String prefix, String uri)voidsetProperty(String nm, String value)
-
-
-
Method Detail
-
setNamespace
public void setNamespace(String prefix, String uri) throws org.xmldb.api.base.XMLDBException
- Specified by:
setNamespacein interfaceorg.xmldb.api.modules.XPathQueryService- Throws:
org.xmldb.api.base.XMLDBException
-
getNamespace
public String getNamespace(String prefix)
- Specified by:
getNamespacein interfaceorg.xmldb.api.modules.XPathQueryService
-
removeNamespace
public void removeNamespace(String prefix)
- Specified by:
removeNamespacein interfaceorg.xmldb.api.modules.XPathQueryService
-
clearNamespaces
public void clearNamespaces()
- Specified by:
clearNamespacesin interfaceorg.xmldb.api.modules.XPathQueryService
-
query
public BXResourceSet query(String query) throws org.xmldb.api.base.XMLDBException
- Specified by:
queryin interfaceorg.xmldb.api.modules.XPathQueryService- Throws:
org.xmldb.api.base.XMLDBException
-
queryResource
public BXResourceSet queryResource(String id, String query) throws org.xmldb.api.base.XMLDBException
- Specified by:
queryResourcein interfaceorg.xmldb.api.modules.XPathQueryService- Throws:
org.xmldb.api.base.XMLDBException
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.xmldb.api.base.Service
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceorg.xmldb.api.base.Service
-
setCollection
public void setCollection(org.xmldb.api.base.Collection col)
- Specified by:
setCollectionin interfaceorg.xmldb.api.base.Service
-
getProperty
public String getProperty(String nm)
- Specified by:
getPropertyin interfaceorg.xmldb.api.base.Configurable
-
-