|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Condition
A Condition
encapsulates one condition of validity of a data packet.
The Condition
also stores a list of the Command
s that can validate it.
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 . |
Method Detail |
---|
void addConditionListener(ConditionListener listener)
ConditionListener
to the Condition
.
listener
- the ConditionListener
to add.Collection<Class<? extends Command<?,?>>> getValidationCommands()
Command
s that validate the Condition
.
Command
s that validate the Condition
.boolean isValid()
Condition
is fulfilled or not.
Condition
is fulfilledvoid registerValidationCommand(Class<? extends Command<?,?>> command)
Command
that validates the Condition
.
command
- a Command
that validates the Condition
void removeConditionListener(ConditionListener listener)
ConditionListener
that observes the Condition
.
listener
- the ConditionListener
to removevoid setValid(boolean validity)
Condition
validity.
validity
- the validity to setvoid unregisterValidationCommand(Class<? extends Command<?,?>> command)
Command
from the list of Command
s able to validate the Condition
.
command
- the Command
to unregister
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |