|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.tools.NamePatternMatcher
public class NamePatternMatcher
Provides name pattern matching functionality.
| Field Summary | |
|---|---|
protected Pattern[] |
itemExcludeFilters
|
protected Pattern[] |
itemIncludeFilters
|
protected org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
NamePatternMatcher(org.apache.commons.logging.Log logger,
String includePattern,
String excludePattern)
|
|
| Method Summary | |
|---|---|
Pattern[] |
createPatterns(String patternString)
Returns an array of Patterns. |
protected List<?> |
filter(List<?> items)
Deprecated. since 3.0 |
boolean |
isIncluded(String string)
Returns true if a given object property satisfies the include/exclude patterns. |
protected boolean |
passedExcludeFilter(CayenneMapEntry item)
Deprecated. since 3.0 |
protected boolean |
passedIncludeFilter(CayenneMapEntry item)
Deprecated. since 3.0 |
static String |
replaceWildcardInStringWithString(String wildcard,
String pattern,
String replacement)
|
String[] |
tokenizePattern(String pattern)
Returns an array of valid regular expressions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.commons.logging.Log logger
protected Pattern[] itemIncludeFilters
protected Pattern[] itemExcludeFilters
| Constructor Detail |
|---|
public NamePatternMatcher(org.apache.commons.logging.Log logger,
String includePattern,
String excludePattern)
| Method Detail |
|---|
public Pattern[] createPatterns(String patternString)
"billing_*,user?" will become an array of two expressions:
^billing_.*$
^user.?$
public String[] tokenizePattern(String pattern)
"billing_*,user?" will become an array of two expressions:
^billing_.*$
^user.?$
public boolean isIncluded(String string)
protected List<?> filter(List<?> items)
protected boolean passedIncludeFilter(CayenneMapEntry item)
protected boolean passedExcludeFilter(CayenneMapEntry item)
public static String replaceWildcardInStringWithString(String wildcard,
String pattern,
String replacement)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||