|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface describes a visitor for interaction modes. With the help of this interface the visitor pattern can be implemented.
The user of the visitor pattern has to provide an implementation of this interface. Then the visit method is invoked and the caller is forwarded to the appropriate visit method in the visitor.
Consider we have a mode constant at hand which is in fact a batchmode and we invokes
boolean boo = mode.visit(visitor, a, b, c);then the following method in the object visitor is invoked:
visitBatchmode(visitor, a, b, c)
Method Summary | |
boolean |
visitBatchmode(java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Invoke the method in case of a batchmode interaction. |
boolean |
visitErrorstopmode(java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Invoke the method in case of a error-stop mode interaction. |
boolean |
visitNonstopmode(java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Invoke the method in case of a non-stop mode interaction. |
boolean |
visitScrollmode(java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Invoke the method in case of a scroll mode interaction. |
Method Detail |
public boolean visitBatchmode(java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3) throws GeneralException
arg1
- the first argumentarg2
- the second argumentarg3
- the third argument
GeneralException
- in case of an errorpublic boolean visitNonstopmode(java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3) throws GeneralException
arg1
- the first argumentarg2
- the second argumentarg3
- the third argument
GeneralException
- in case of an errorpublic boolean visitScrollmode(java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3) throws GeneralException
arg1
- the first argumentarg2
- the second argumentarg3
- the third argument
GeneralException
- in case of an errorpublic boolean visitErrorstopmode(java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3) throws GeneralException
arg1
- the first argumentarg2
- the second argumentarg3
- the third argument
GeneralException
- in case of an error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |