|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Dialog
Overall configuration of an individual dialog. During application execution, this information is immutable (so that simultaneous execution threads may be processing states or transitions through this dialog). Therefore, access to configuration information is not synchronized.
A Dialog
is characterized by a set of named State
s,
which are executed in an order that is determined by Transition
s
between those State
s. Execution of a Dialog
begins at
the State
specified by the start
property, and ends
when an EndState
is executed.
Transition
s describe the rule that determines the name of the
next State
to be executed, based upon a logical outcome returned
by the execution of a previous State
. Transition
s
associated with a Dialog
define dialog-wide rules for specified
outcomes, while Transition
s associated with a particular
State
can replace the global Transition
that would normally
be selected with one specific to the executing State
.
Method Summary | |
---|---|
State |
findState(String id)
Return the specified State , owned by this Dialog ,
if any. |
Transition |
findTransition(String outcome)
Return the global Transition for the specified logical outcome,
if any; otherwise, return null . |
Class |
getDataClass()
Return the class of a JavaBean to be instantiated as the initial value of the data property of a newly instantiated
DialogContext . |
String |
getName()
Return the name of this Dialog . |
String |
getStart()
Return the name of the starting State for this
Dialog . |
Iterator |
getStateIds()
Return an Iterator over the names of State s
that are owned by this Dialog . |
Iterator |
getTransitionOutcomes()
Return an Iterator over the logical outcomes of
global Transition s for this Dialog . |
Method Detail |
---|
Class getDataClass()
Return the class of a JavaBean to be instantiated as the initial
value of the data
property of a newly instantiated
DialogContext
.
If not explicitly specified in the configuration metadata, this
should default to java.util.HashMap
to provide convenient
name/value pair storage.
IMPLEMENTATION NOTE - Because the data
object of DialogContext
instances is stored in session
scope, the Class
specified here should be serializable.
data
property of a new instance of this dialogString getName()
Return the name of this Dialog
.
Dialog
String getStart()
Return the name of the starting State
for this
Dialog
.
Dialog
Iterator getStateIds()
Return an Iterator
over the names of State
s
that are owned by this Dialog
. If there are no such
State
s, an empty Iterator
is returned.
Iterator
over all the State
s in this
Dialog
Iterator getTransitionOutcomes()
Return an Iterator
over the logical outcomes of
global Transition
s for this Dialog
. If there are
no such Transition
s, an empty Iterator
is
returned.
Iterator
over the logical outcomes of global
Transition
s for this Dialog
State findState(String id)
Return the specified State
, owned by this Dialog
,
if any. Otherwise, return null
.
id
- Identifier of the requested State
State
specified by the identifier, may be nullTransition findTransition(String outcome)
Return the global Transition
for the specified logical outcome,
if any; otherwise, return null
.
outcome
- Logical outcome for which to return a Transition
Transition
for the specified logical outcome
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |