|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microsoft.tfs.core.pendingcheckin.filters.ScopeFilter
public class ScopeFilter
Filters pending changes by regular expressions matched against the change's server item.
If this class is initialized with an empty array of expressions, all calls to
passes(PendingChange)
return true (everything passes). A non-empty
array during initialization causes only items that match any of the
expressions to pass.
Field Summary | |
---|---|
static int |
EXPRESSION_FLAGS
Flags used when compiling regular expression strings into Pattern
objects. |
Constructor Summary | |
---|---|
ScopeFilter(java.lang.String[] scopeExpressions)
Create a filter using the given expressions. |
Method Summary | |
---|---|
boolean |
passes(PendingChange change)
Tests whether the given pending change passes the implementation's filter test. |
boolean |
passes(java.lang.String serverPath)
Public for validation by UI code that wishes to pass sample paths and test our engine. |
int |
passesWhich(java.lang.String serverPath)
Public for validation by UI code that wishes to pass sample paths and test our engine. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int EXPRESSION_FLAGS
Pattern
objects. These can't be changed by callers, but are exposed to enable
compatible user-interfaces (which may show regular expression matching
previews, for example).
64
Constructor Detail |
---|
public ScopeFilter(java.lang.String[] scopeExpressions)
scopeExpressions
- the expressions to use to filter. If non-empty, only changes whose
server paths match any of the expressions pass (others do not
pass). If empty, all changes pass.Method Detail |
---|
public boolean passes(PendingChange change)
passes
in interface PendingChangeFilter
change
- the change to test (must not be null
)
public boolean passes(java.lang.String serverPath)
serverPath
- the server path to test (must not be null
)
PendingChangeFilter.passes(PendingChange)
for details.public int passesWhich(java.lang.String serverPath)
serverPath
- the server path to test (must not be null
)
Integer.MIN_VALUE
is returned (the path passes).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |