Class 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 Detail

      • setNamespace

        public void setNamespace​(String prefix,
                                 String uri)
                          throws org.xmldb.api.base.XMLDBException
        Specified by:
        setNamespace in interface org.xmldb.api.modules.XPathQueryService
        Throws:
        org.xmldb.api.base.XMLDBException
      • getNamespace

        public String getNamespace​(String prefix)
        Specified by:
        getNamespace in interface org.xmldb.api.modules.XPathQueryService
      • removeNamespace

        public void removeNamespace​(String prefix)
        Specified by:
        removeNamespace in interface org.xmldb.api.modules.XPathQueryService
      • clearNamespaces

        public void clearNamespaces()
        Specified by:
        clearNamespaces in interface org.xmldb.api.modules.XPathQueryService
      • query

        public BXResourceSet query​(String query)
                            throws org.xmldb.api.base.XMLDBException
        Specified by:
        query in interface org.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:
        queryResource in interface org.xmldb.api.modules.XPathQueryService
        Throws:
        org.xmldb.api.base.XMLDBException
      • getName

        public String getName()
        Specified by:
        getName in interface org.xmldb.api.base.Service
      • getVersion

        public String getVersion()
        Specified by:
        getVersion in interface org.xmldb.api.base.Service
      • setCollection

        public void setCollection​(org.xmldb.api.base.Collection col)
        Specified by:
        setCollection in interface org.xmldb.api.base.Service
      • getProperty

        public String getProperty​(String nm)
        Specified by:
        getProperty in interface org.xmldb.api.base.Configurable
      • setProperty

        public void setProperty​(String nm,
                                String value)
                         throws org.xmldb.api.base.XMLDBException
        Specified by:
        setProperty in interface org.xmldb.api.base.Configurable
        Throws:
        org.xmldb.api.base.XMLDBException