Class XPathExecutor

java.lang.Object
org.kuali.coeus.s2sgen.impl.util.XPathExecutor

public class XPathExecutor extends Object
Class processes XPath Queries.
  • Constructor Details

    • XPathExecutor

      public XPathExecutor(String xml)
  • Method Details

    • execute

      public String execute(String xPath)
      Method evaulates the XPath expression against the xml string. Currently utilizing a DOM implementation.
      Returns:
      first node value returned
    • getNode

      public Node getNode(String xpath)
      For a given XPath, a DOM Node that the XPath resolve to is returned.
      Parameters:
      xpath - A valid XPath referring to the Node that is to be returned
      Returns:
      The Node referred to by the xpath argument.
    • getDoc

      public Document getDoc()
    • setDoc

      public void setDoc(Document doc)