Package com.sun.interview
Class WizEdit
- java.lang.Object
-
- com.sun.interview.WizEdit
-
public class WizEdit extends java.lang.ObjectAn API (with a basic front-end application) for batch editing an interview.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWizEdit.BadArgsThis exception is used to indicate a problem with the command line arguments.static classWizEdit.FaultThis exception is to report problems that occur while editing the responses to questions in an interview.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidedit(java.lang.String cmd)Apply an edit to the set of responses in an interview.voidedit(java.lang.String... cmds)Apply a series of edits to the set of responses in an interview.static voidmain(java.lang.String... args)Simple command-line front-end to the facilities of the API.voidsetVerbose(boolean verbose)Set whether or not the edit should be done verbosely.voidsetVerbose(boolean verbose, java.io.PrintStream out)Set whether or not the edit should be done verbosely, and set the stream to which tracing information should be output.
-
-
-
Constructor Detail
-
WizEdit
public WizEdit(Interview interview)
Create an editor for the questions in an interview.- Parameters:
interview- The interview containing the responses to be edited.
-
-
Method Detail
-
main
public static void main(java.lang.String... args)
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(boolean, PrintStream)
-
setVerbose
public void setVerbose(boolean verbose, java.io.PrintStream out)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
public void edit(java.lang.String... cmds) throws WizEdit.FaultApply 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(String)
-
edit
public void edit(java.lang.String cmd) throws WizEdit.FaultApply 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:
edit(String[])
-
-