Package com.evolveum.midpoint.util
Class PatternMatcher
- java.lang.Object
-
- com.evolveum.midpoint.util.PatternMatcher
-
@Experimental public class PatternMatcher extends Object
Matches a string against a set of patterns that can be either in "naive" format, using "*" as a wildcard, or in regex format. The regex format is used when the string is in the form of ~/.../.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PatternMatcher
create(Collection<String> patterns)
Creates a matcher.boolean
isEmpty()
boolean
match(String text)
-
-
-
Method Detail
-
create
public static PatternMatcher create(Collection<String> patterns)
Creates a matcher.
-
match
public boolean match(String text)
-
isEmpty
public boolean isEmpty()
-
-