Interface NodeSelector

  • All Known Implementing Classes:
    Xpath2Selector

    public interface NodeSelector
    Selector(extractor) for html node.
    Since:
    0.8.0
    Author:
    hooy
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String select​(org.w3c.dom.Node node)
      Extract single result in text.
      If there are more than one result, only the first will be chosen.
      java.util.List<java.lang.String> selectList​(org.w3c.dom.Node node)
      Extract all results in text.
    • Method Detail

      • select

        java.lang.String select​(org.w3c.dom.Node node)
        Extract single result in text.
        If there are more than one result, only the first will be chosen.
        Parameters:
        node - node
        Returns:
        result
      • selectList

        java.util.List<java.lang.String> selectList​(org.w3c.dom.Node node)
        Extract all results in text.
        Parameters:
        node - node
        Returns:
        results