|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.keridwen.core.messaging.internal.DefaultCondition
public class DefaultCondition
This is the default implementation of the Condition
interface.
Constructor Summary | |
---|---|
DefaultCondition()
Default constructor. |
Method Summary | |
---|---|
void |
addConditionListener(ConditionListener listener)
Adds a ConditionListener to the Condition . |
Collection<Class<? extends Command<?,?>>> |
getValidationCommands()
Gets the list of Command s that validate the Condition . |
boolean |
isValid()
Indicates if the Condition is fulfilled or not. |
void |
registerValidationCommand(Class<? extends Command<?,?>> command)
Registers a Command that validates the Condition . |
void |
removeConditionListener(ConditionListener listener)
Removes the given ConditionListener that observes the Condition . |
void |
setValid(boolean validity)
Sets the Condition validity. |
void |
unregisterValidationCommand(Class<? extends Command<?,?>> command)
Unregisters the given Command from the list of Command s able to validate the Condition . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCondition()
Method Detail |
---|
public final void addConditionListener(ConditionListener listener)
Condition
ConditionListener
to the Condition
.
addConditionListener
in interface Condition
listener
- the ConditionListener
to add.public final Collection<Class<? extends Command<?,?>>> getValidationCommands()
Condition
Command
s that validate the Condition
.
getValidationCommands
in interface Condition
Command
s that validate the Condition
.public final boolean isValid()
Condition
Condition
is fulfilled or not.
isValid
in interface Condition
Condition
is fulfilledpublic final void registerValidationCommand(Class<? extends Command<?,?>> command)
Condition
Command
that validates the Condition
.
registerValidationCommand
in interface Condition
command
- a Command
that validates the Condition
public final void removeConditionListener(ConditionListener listener)
Condition
ConditionListener
that observes the Condition
.
removeConditionListener
in interface Condition
listener
- the ConditionListener
to removepublic final void setValid(boolean validity)
Condition
Condition
validity.
setValid
in interface Condition
validity
- the validity to setpublic final void unregisterValidationCommand(Class<? extends Command<?,?>> command)
Condition
Command
from the list of Command
s able to validate the Condition
.
unregisterValidationCommand
in interface Condition
command
- the Command
to unregister
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |