psdi.common.xpath

Class XPathEvaluator

  • java.lang.Object
    • psdi.common.xpath.XPathEvaluator


  • public class XPathEvaluator
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      XPathEvaluator(java.util.Map nsPrefixMap, org.jdom2.Element sourceElem) 
      XPathEvaluator(java.lang.String xpathExpression, java.util.Map nsPrefixMap) 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object getContentValue(java.lang.String xpathExpression, java.lang.String type) 
      java.util.List getMatchingContents(org.jdom2.Document doc) 
      java.util.List getMatchingContents(org.jdom2.Element sourceElem) 
      static void main(java.lang.String[] args) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XPathEvaluator

        public XPathEvaluator(java.lang.String xpathExpression,
                              java.util.Map nsPrefixMap)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • XPathEvaluator

        public XPathEvaluator(java.util.Map nsPrefixMap,
                              org.jdom2.Element sourceElem)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • getMatchingContents

        public java.util.List getMatchingContents(org.jdom2.Document doc)
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getMatchingContents

        public java.util.List getMatchingContents(org.jdom2.Element sourceElem)
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getContentValue

        public java.lang.Object getContentValue(java.lang.String xpathExpression,
                                                java.lang.String type)
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • main

        public static void main(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception