|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.swing.util.StringTextMatcher
public class StringTextMatcher
Understands matching text to a group of String values. Matching is perform by equality or by regular
expression matching.
| Constructor Summary | |
|---|---|
StringTextMatcher(String... values)
Creates a new StringTextMatcher. |
|
| Method Summary | |
|---|---|
String |
description()
Returns "value" if this matcher contains only one value, or "values" if this matcher contains more than one value. |
String |
formattedValues()
Returns the String values in this matcher, formatted as a single String. |
boolean |
isMatching(String text)
Indicates whether the given text matches the String values in this matcher. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringTextMatcher(String... values)
StringTextMatcher.
values - the String values to match. Each value can be a regular expression.
NullPointerException - if the array of values is null.
IllegalArgumentException - if the array of values is empty.| Method Detail |
|---|
public boolean isMatching(String text)
String values in this matcher. Each value can be a
regular expression.
isMatching in interface TextMatchertext - the text to verify.
true if the given text matches the String values in this matcher,
false otherwise.public String description()
description in interface TextMatcherpublic String formattedValues()
String values in this matcher, formatted as a single String.
formattedValues in interface TextMatcherString values in this matcher, formatted as a single String.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||