Class XPathParser

  • Direct Known Subclasses:
    SettingsParser

    public class XPathParser
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static javax.xml.parsers.DocumentBuilder db  
      (package private) static javax.xml.parsers.DocumentBuilderFactory dbf  
      (package private) org.w3c.dom.Document doc  
      (package private) static javax.xml.xpath.XPath xp  
      (package private) static javax.xml.xpath.XPathFactory xpf  
    • Constructor Summary

      Constructors 
      Constructor Description
      XPathParser​(java.io.File file)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String parse​(java.lang.String expression)  
      <X> void parse​(java.lang.String what, java.lang.Class<X> type, java.util.List<X> map)  
      <X> void parse​(org.w3c.dom.Node node, X dto)  
      • Methods inherited from class java.lang.Object

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

      • dbf

        static final javax.xml.parsers.DocumentBuilderFactory dbf
      • xpf

        static final javax.xml.xpath.XPathFactory xpf
      • db

        static javax.xml.parsers.DocumentBuilder db
      • xp

        static javax.xml.xpath.XPath xp
      • doc

        final org.w3c.dom.Document doc
    • Constructor Detail

      • XPathParser

        public XPathParser​(java.io.File file)
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • parse

        public <X> void parse​(java.lang.String what,
                              java.lang.Class<X> type,
                              java.util.List<X> map)
                       throws javax.xml.xpath.XPathExpressionException,
                              java.lang.Exception
        Throws:
        javax.xml.xpath.XPathExpressionException
        java.lang.Exception
      • parse

        public <X> void parse​(org.w3c.dom.Node node,
                              X dto)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • parse

        public java.lang.String parse​(java.lang.String expression)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception