public class NamePatternMatcher extends Object implements NameFilter
| Modifier and Type | Field and Description |
|---|---|
static NameFilter |
EXCLUDE_ALL |
| Constructor and Description |
|---|
NamePatternMatcher(Pattern[] itemIncludeFilters,
Pattern[] itemExcludeFilters) |
| Modifier and Type | Method and Description |
|---|---|
static NamePatternMatcher |
build(org.slf4j.Logger logger,
String includePattern,
String excludePattern) |
static Pattern[] |
createPatterns(org.slf4j.Logger logger,
String patternString)
Returns an array of Patterns.
|
boolean |
isIncluded(String string)
Returns true if a given object property satisfies the include/exclude patterns.
|
static String[] |
tokenizePattern(String pattern)
Returns an array of valid regular expressions.
|
public static final NameFilter EXCLUDE_ALL
public static NamePatternMatcher build(org.slf4j.Logger logger, String includePattern, String excludePattern)
public static Pattern[] createPatterns(org.slf4j.Logger logger, String patternString)
"billing_*,user?" will become an array of two expressions:
^billing_.*$
^user.?$
public static String[] tokenizePattern(String pattern)
"billing_*,user?" will become an array of two expressions:
^billing_.*$
^user.?$
public boolean isIncluded(String string)
isIncluded in interface NameFilterCopyright © 2001–2019 Apache Cayenne. All rights reserved.