public final class ManualDecisionCollection
extends java.lang.Object
ManualDecision objects. To handle
requests for user feedback, do as follows:
ManualDecisionExcpetion's when doing Server.invoke().
Since that is a sub-class to APException, it must be come first
in the list of catch statements.ManualDecisionCollection to work with by doing
ex.getDecisions().ManualDecision objects.!decision.isAnswered()), ask
the user the given question (decision.getMessage()) and get some
input. Information on the type of question to ask as well which options the
user has is available in each ManualDecision object.
decision.getAnswer().equals(decision.getCancelAnswer)), the process
is to stop immediately. Otherwise, go on.YES_TO_ALL or NO_TO_ALL,
then the decision's decision key must be set to "*" and
all subsequent decision with the same decision id must be removed
(with the Iterator's remove() method) from the
collection.ManualDecisionCollection
on the Server object and invoke the operation again.ManualDecisionListener
to the server object instead of doing all the steps descibed above. But that
does not however work in a server environment (which probably runs in
a non-interactive mode).| Modifier and Type | Method and Description |
|---|---|
boolean |
allAnswered()
Returns true if all decisions in this collection have been answered.
|
java.util.Iterator<ManualDecision> |
iterator()
Returns an iterator to all decisions to make.
|
java.lang.String |
toString()
Returns a String representation of this object.
|
public boolean allAnswered()
public java.util.Iterator<ManualDecision> iterator()
ManualDecision.public java.lang.String toString()
toString in class java.lang.Object