|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.nava.informa.utils.cleaner.CompositeMatcher
class CompositeMatcher
Composite matcher follows Composite pattern to combine several matchers and present them as single instance. It uses simple rule to make a decision. If at least one matcher matches the item composite object also returns match.
| Constructor Summary | |
|---|---|
CompositeMatcher()
|
|
| Method Summary | |
|---|---|
void |
add(CleanerMatcherIF m)
Adds new matcher to the list. |
boolean |
isMatching(ItemIF item,
ChannelIF channel)
Invoked by cleaning engine to check given item in given channel for matching some rule. |
void |
remove(CleanerMatcherIF m)
Removes matcher from the list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
CompositeMatcher()
| Method Detail |
|---|
public boolean isMatching(ItemIF item,
ChannelIF channel)
isMatching in interface CleanerMatcherIFitem - item to check.channel - channel where the item is.
public void add(CleanerMatcherIF m)
m - matcher object.public void remove(CleanerMatcherIF m)
m - matcher object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||