public class NamePatternMatcher extends Object implements NameFilter
Constructor and Description |
---|
NamePatternMatcher(Pattern[] itemIncludeFilters,
Pattern[] itemExcludeFilters) |
Modifier and Type | Method and Description |
---|---|
static NamePatternMatcher |
build(org.apache.commons.logging.Log logger,
String includePattern,
String excludePattern) |
static Pattern[] |
createPatterns(org.apache.commons.logging.Log logger,
String patternString)
Returns an array of Patterns.
|
List<?> |
filter(List<?> items)
Deprecated.
since 3.0 still used by AntDataPortDelegate, which itself should
probably be deprecated
|
boolean |
isIncluded(String string)
Returns true if a given object property satisfies the include/exclude patterns.
|
static String |
replaceWildcardInStringWithString(String wildcard,
String pattern,
String replacement) |
static String[] |
tokenizePattern(String pattern)
Returns an array of valid regular expressions.
|
public static NamePatternMatcher build(org.apache.commons.logging.Log logger, String includePattern, String excludePattern)
@Deprecated public List<?> filter(List<?> items)
public static Pattern[] createPatterns(org.apache.commons.logging.Log 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 NameFilter
Copyright © 2001–2015 Apache Cayenne. All rights reserved.