Class ConfiguredXpathQuery

    • Constructor Detail

      • ConfiguredXpathQuery

        public ConfiguredXpathQuery()
      • ConfiguredXpathQuery

        public ConfiguredXpathQuery​(java.lang.String metadataKey,
                                    java.lang.String xpath)
    • Method Detail

      • resolveXpath

        public MetadataElement resolveXpath​(org.w3c.dom.Document doc,
                                            XPath xpath,
                                            java.lang.String expr)
                                     throws java.lang.Exception
        Description copied from interface: XpathQuery

        Executes an Xpath query.

        Specified by:
        resolveXpath in interface XpathObjectQuery
        Specified by:
        resolveXpath in interface XpathQuery
        Parameters:
        doc - The XML document
        xpath - the XPath object to use to resolve any expressions.
        expr - the xpath expression
        Returns:
        a MetadataElement with the configured key and the extracted text value
        Throws:
        java.lang.Exception