|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Command
Commands represent operation objects, which may be executed by some CommandProcessor
.
Method Summary | |
---|---|
boolean |
canExecute()
|
void |
dispose()
Removes any result values and disposed this command object. |
void |
execute()
Executes this command and stores results. |
java.lang.Object[] |
getActualParameterValues()
Inquiry method for reflexive consistency checking - returns the actual parameter values of this command instance. |
java.lang.Class<?>[] |
getFormalParameterTypes()
Inquiry method for reflexive consistency checking - should be based on static final values. |
CommandProvider |
getProvider()
|
java.lang.Object |
getResult()
|
Method Detail |
---|
boolean canExecute()
void execute()
java.lang.RuntimeException
- if canExecute()
yields false
.java.lang.Object getResult() throws java.lang.IllegalStateException, ExecutionAbortedException
java.lang.IllegalStateException
- if the command was not executed yet.
ExecutionAbortedException
void dispose()
CommandProvider getProvider()
java.lang.Class<?>[] getFormalParameterTypes()
java.lang.Object[] getActualParameterValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |