Class XpathSelector

    • Constructor Summary

      Constructors 
      Constructor Description
      XpathSelector​(java.lang.String xpathStr)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasAttribute()  
      java.lang.String select​(org.jsoup.nodes.Element element)
      Extract single result in text.
      If there are more than one result, only the first will be chosen.
      org.jsoup.nodes.Element selectElement​(org.jsoup.nodes.Element element)  
      java.util.List<org.jsoup.nodes.Element> selectElements​(org.jsoup.nodes.Element element)  
      java.util.List<java.lang.String> selectList​(org.jsoup.nodes.Element element)
      Extract all results in text.
      • Methods inherited from class java.lang.Object

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

      • XpathSelector

        public XpathSelector​(java.lang.String xpathStr)
    • Method Detail

      • select

        public java.lang.String select​(org.jsoup.nodes.Element element)
        Description copied from interface: ElementSelector
        Extract single result in text.
        If there are more than one result, only the first will be chosen.
        Parameters:
        element - element
        Returns:
        result
      • selectList

        public java.util.List<java.lang.String> selectList​(org.jsoup.nodes.Element element)
        Description copied from interface: ElementSelector
        Extract all results in text.
        Parameters:
        element - element
        Returns:
        results
      • selectElements

        public java.util.List<org.jsoup.nodes.Element> selectElements​(org.jsoup.nodes.Element element)
        Specified by:
        selectElements in class BaseElementSelector