Package com.sun.interview
Class WizEdit
java.lang.Object
com.sun.interview.WizEdit
An API (with a basic front-end application) for batch editing an
interview.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This exception is used to indicate a problem with the command line arguments.static class
This exception is to report problems that occur while editing the responses to questions in an interview. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Apply an edit to the set of responses in an interview.void
Apply a series of edits to the set of responses in an interview.static void
Simple command-line front-end to the facilities of the API.void
setVerbose
(boolean verbose) Set whether or not the edit should be done verbosely.void
setVerbose
(boolean verbose, PrintStream out) Set whether or not the edit should be done verbosely, and set the stream to which tracing information should be output.
-
Constructor Details
-
WizEdit
Create an editor for the questions in an interview.- Parameters:
interview
- The interview containing the responses to be edited.
-
-
Method Details
-
main
Simple command-line front-end to the facilities of the API.- Parameters:
args
- Command line arguments.
-
setVerbose
public void setVerbose(boolean verbose) Set whether or not the edit should be done verbosely.- Parameters:
verbose
- Set to true for verbose mode, and false otherwise.- See Also:
-
setVerbose
Set whether or not the edit should be done verbosely, and set the stream to which tracing information should be output.- Parameters:
verbose
- Set to true for verbose mode, and false otherwise.out
- The stream to which verbose output should be directed.
-
edit
Apply a series of edits to the set of responses in an interview. The edits are applied one at a time, and as each edit is applied, the set of questions in the current interview path may change: specifically, the set of questions after the one that is edited may change.- Parameters:
cmds
- A set of editing commands to apply to the responses.- Throws:
WizEdit.Fault
- if there is a problem while applying the edits.- See Also:
-
edit
Apply an edit to the set of responses in an interview. After the edit is applied, the set of questions in the current interview path may change: specifically, the set of questions after the one that is edited may change.- Parameters:
cmd
- An edit command to apply to the responses.- Throws:
WizEdit.Fault
- if there is a problem while applying the edit.- See Also:
-