de.dante.extex.interpreter.interaction
Interface InteractionVisitor


public interface InteractionVisitor

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)
 

Version:
$Revision: 1.2 $
Author:
Gerd Neugebauer

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

visitBatchmode

public boolean visitBatchmode(java.lang.Object arg1,
                              java.lang.Object arg2,
                              java.lang.Object arg3)
                       throws GeneralException
Invoke the method in case of a batchmode interaction.

Parameters:
arg1 - the first argument
arg2 - the second argument
arg3 - the third argument
Returns:
a boolean indicator
Throws:
GeneralException - in case of an error

visitNonstopmode

public boolean visitNonstopmode(java.lang.Object arg1,
                                java.lang.Object arg2,
                                java.lang.Object arg3)
                         throws GeneralException
Invoke the method in case of a non-stop mode interaction.

Parameters:
arg1 - the first argument
arg2 - the second argument
arg3 - the third argument
Returns:
a boolean indicator
Throws:
GeneralException - in case of an error

visitScrollmode

public boolean visitScrollmode(java.lang.Object arg1,
                               java.lang.Object arg2,
                               java.lang.Object arg3)
                        throws GeneralException
Invoke the method in case of a scroll mode interaction.

Parameters:
arg1 - the first argument
arg2 - the second argument
arg3 - the third argument
Returns:
a boolean indicator
Throws:
GeneralException - in case of an error

visitErrorstopmode

public boolean visitErrorstopmode(java.lang.Object arg1,
                                  java.lang.Object arg2,
                                  java.lang.Object arg3)
                           throws GeneralException
Invoke the method in case of a error-stop mode interaction.

Parameters:
arg1 - the first argument
arg2 - the second argument
arg3 - the third argument
Returns:
a boolean indicator
Throws:
GeneralException - in case of an error