Package org.fest.swing.util
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 TypeMethodDescriptionReturns the description of the type of value this matcher supports.Returns the values in this matcher, formatted as aString
.boolean
isMatching
(String text) Indicates whether the given text matches some value(s).
-
Method Details
-
isMatching
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 aString
.- Returns:
- the values in this matcher, formatted as a
String
.
-