Interface Selector

All Known Implementing Classes:
AndSelector, BaseElementSelector, CssSelector, JsonPathSelector, LinksSelector, OrSelector, RegexSelector, ReplaceSelector, SmartContentSelector, XpathSelector

public interface Selector
Selector(extractor) for text.
Since:
0.1.0
Author:
code4crafter@gmail.com
  • Method Summary

    Modifier and Type
    Method
    Description
    select(String text)
    Extract single result in text.
    If there are more than one result, only the first will be chosen.
    Extract all results in text.
  • Method Details

    • select

      String select(String text)
      Extract single result in text.
      If there are more than one result, only the first will be chosen.
      Parameters:
      text - text
      Returns:
      result
    • selectList

      List<String> selectList(String text)
      Extract all results in text.
      Parameters:
      text - text
      Returns:
      results