public class WizEdit
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
WizEdit.BadArgs
This exception is used to indicate a problem with the command line arguments.
|
static class |
WizEdit.Fault
This exception is to report problems that occur while editing
the responses to questions in an interview.
|
Constructor and Description |
---|
WizEdit(Interview interview)
Create an editor for the questions in an interview.
|
Modifier and Type | Method and Description |
---|---|
void |
edit(java.lang.String cmd)
Apply an edit to the set of responses in an interview.
|
void |
edit(java.lang.String[] cmds)
Apply a series of edits to the set of responses in an interview.
|
static void |
main(java.lang.String[] args)
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,
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.
|
public WizEdit(Interview interview)
interview
- The interview containing the responses to be edited.public static void main(java.lang.String[] args)
args
- Command line arguments.public void setVerbose(boolean verbose)
verbose
- Set to true for verbose mode, and false otherwise.setVerbose(boolean, PrintStream)
public void setVerbose(boolean verbose, java.io.PrintStream out)
verbose
- Set to true for verbose mode, and false otherwise.out
- The stream to which verbose output should be directed.public void edit(java.lang.String[] cmds) throws WizEdit.Fault
cmds
- A set of editing commands to apply to the responses.WizEdit.Fault
- if there is a problem while applying the edits.edit(String)
public void edit(java.lang.String cmd) throws WizEdit.Fault
cmd
- An edit command to apply to the responses.WizEdit.Fault
- if there is a problem while applying the edit.edit(String[])
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.