|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.interpreter.interaction.Interaction
public abstract class Interaction
This class provides a type-save enumeration of the interactions styles of
| Field Summary | |
|---|---|
static Interaction |
BATCHMODE
The constant BATCHMODE contains the constant for batch mode. |
static Interaction |
ERRORSTOPMODE
The constant ERRORSTOPMODE contains the constant for error stop mode. |
static Interaction |
NONSTOPMODE
The constant NONSTOPMODE contains the constant for non-stop mode. |
static Interaction |
SCROLLMODE
The constant SCROLLMODE contains the constant for scroll mode. |
| Constructor Summary | |
|---|---|
protected |
Interaction()
Creates a new object. |
| Method Summary | |
|---|---|
static Interaction |
get(int mode)
This is a factory method for interaction modes. |
static int |
get(Interaction mode)
Find the integer number corresponding to an interaction |
static Interaction |
get(java.lang.String mode)
This is a factory method for interaction modes. |
abstract java.lang.String |
getIndex()
Get the numeric index of the interaction mode. |
abstract boolean |
visit(InteractionVisitor visitor,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
This method provides an entry point for the visitor pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Interaction BATCHMODE
public static final Interaction ERRORSTOPMODE
public static final Interaction NONSTOPMODE
public static final Interaction SCROLLMODE
| Constructor Detail |
|---|
protected Interaction()
| Method Detail |
|---|
public static Interaction get(int mode)
throws InteractionUnknownException
mode - the integer value for the interaction mode
InteractionUnknownException - in case that the numerical value is
out of range and does not correspond to an interaction mode
public static int get(Interaction mode)
throws InteractionUnknownException
mode - the mode to identify
InteractionUnknownException - in case of an error
public static Interaction get(java.lang.String mode)
throws InteractionUnknownException
mode - the string representation for the mode
InteractionUnknownException - in case that something is passed in
which can not be interpreted as interaction modepublic abstract java.lang.String getIndex()
| BatchMode | 0 |
| NonstopMode | 1 |
| ScrollMode | 2 |
| ErrorstopMode | 3 |
public abstract boolean visit(InteractionVisitor visitor,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
throws GeneralException
visitor - this argument contains the visitor which has initiated the
request.arg1 - the first argumentarg2 - the second argumentarg3 - the third argument
GeneralException - in case of an errorInteractionVisitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||