|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jwalk.Console
public class Console
Console provides a default channel for communication via the command line. A Console is installed as the default QuestionListener and ReportListener when Channels are created. This accepts QuestionEvents and ReportEvents, publishing Reports on standard output and responding to Questions on standard input. To respond to a Confirmation, the tester need only type "y", "n" or "q" (in either case) followed by carriage return to denote YES, NO or QUIT (aborts the current cycle). Typing carriage return is also considered short-hand for YES. To respond to a Notification, the tester need only type "y" or carriage return.
Constructor Summary | |
---|---|
Console()
Constructs a standard input output Console channel. |
Method Summary | |
---|---|
void |
publish(ReportEvent event)
Publishes the Report contained in the ReportEvent. |
Answer |
respond(QuestionEvent event)
Responds to a question contained in the QuestionEvent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Console()
Method Detail |
---|
public void publish(ReportEvent event)
toString()
method.
No further indentation or line spaces are added.
publish
in interface ReportListener
event
- the ReportEvent that was dispatched.public Answer respond(QuestionEvent event)
respond
in interface QuestionListener
event
- the QuestionEvent dispatched by a JWalker.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |