Interface TextMatcher

All Known Implementing Classes:
PatternTextMatcher, StringTextMatcher

public interface TextMatcher
Understands matching a given text to one or more values.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the description of the type of value this matcher supports.
    Returns the values in this matcher, formatted as a String.
    boolean
    Indicates whether the given text matches some value(s).
  • Method Details

    • isMatching

      boolean isMatching(String text)
      Indicates whether the given text matches some value(s).
      Parameters:
      text - the text to verify.
      Returns:
      true if the given text matches some value(s), false otherwise.
    • description

      String description()
      Returns the description of the type of value this matcher supports.
      Returns:
      the description of the type of value this matcher supports.
    • formattedValues

      String formattedValues()
      Returns the values in this matcher, formatted as a String.
      Returns:
      the values in this matcher, formatted as a String.