|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.utils.OrDecider
public class OrDecider
INTERNAL: Decider that checks all subdeciders and returns true of one of them gives a positive decision.
Note that the decision is shortcircuited when the first decider gives a positive decision, the rest is then not checked.
Field Summary | |
---|---|
protected java.util.Set |
deciders
|
Constructor Summary | |
---|---|
OrDecider(DeciderIF decider)
|
|
OrDecider(java.util.Set deciders)
|
Method Summary | |
---|---|
void |
addDecider(DeciderIF decider)
Add a subdecider. |
java.util.Set |
getDeciders()
Gets the subdeciders. |
boolean |
ok(java.lang.Object object)
PUBLIC: Returns true if the object is accepted. |
void |
removeDecider(DeciderIF decider)
Remove a subdecider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Set deciders
Constructor Detail |
---|
public OrDecider(DeciderIF decider)
public OrDecider(java.util.Set deciders)
Method Detail |
---|
public java.util.Set getDeciders()
public void addDecider(DeciderIF decider)
public void removeDecider(DeciderIF decider)
public boolean ok(java.lang.Object object)
DeciderIF
ok
in interface DeciderIF
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |