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