Class XPathQueryServiceImpl

    • Constructor Detail

      • XPathQueryServiceImpl

        public XPathQueryServiceImpl()
    • Method Detail

      • getName

        public java.lang.String getName()
                                 throws XMLDBException
        Returns the name associated with the Configurable object.
        Specified by:
        getName in interface Service
        Overrides:
        getName in class SimpleXPathQueryService
        Returns:
        the name of the object.
        Throws:
        XMLDBException - with expected error codes.
        ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.
      • query

        public ResourceSet query​(java.lang.String query)
                          throws XMLDBException
        Run an XPath query againt the Collection. The result is a ResourceIterator containing the results of the query.
        Specified by:
        query in interface XPathQueryService
        Overrides:
        query in class SimpleXPathQueryService
        Parameters:
        query - The XPath query string to use.
        Returns:
        A ResourceIterator containing the results of the query.
        Throws:
        XMLDBException - with expected error codes.
        ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.