Package edu.uiuc.ncsa.security.util.cli
Class AbstractEditor
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.cli.AbstractEditor
-
- Direct Known Subclasses:
JSONEditor
,LineEditor
public abstract class AbstractEditor extends Object
Created by Jeff Gaynor
on 8/17/20 at 10:23 AM
-
-
Field Summary
Fields Modifier and Type Field Description static String
HELP_COMMAND
protected boolean
isDone
static String
PROMPT
static String
QUIT_COMMAND
static String
QUIT_COMMAND_LONG
static String
VERBOSE_COMMAND
static String
VERBOSE_COMMAND_LONG
protected boolean
verboseOn
-
Constructor Summary
Constructors Constructor Description AbstractEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
IOInterface
getIoInterface()
protected String
readline(String x)
protected void
say(String x)
For use with informational messages.protected void
sayi(String x)
protected void
sayv(String x)
Used for spitting out extra messages in verbose mode.void
setIoInterface(IOInterface ioInterface)
protected boolean
showHelp(EditorInputLine eil)
protected void
verboseHelp()
-
-
-
Field Detail
-
PROMPT
public static String PROMPT
-
QUIT_COMMAND
public static final String QUIT_COMMAND
- See Also:
- Constant Field Values
-
QUIT_COMMAND_LONG
public static final String QUIT_COMMAND_LONG
- See Also:
- Constant Field Values
-
VERBOSE_COMMAND
public static final String VERBOSE_COMMAND
- See Also:
- Constant Field Values
-
VERBOSE_COMMAND_LONG
public static final String VERBOSE_COMMAND_LONG
- See Also:
- Constant Field Values
-
HELP_COMMAND
public static final String HELP_COMMAND
- See Also:
- Constant Field Values
-
verboseOn
protected boolean verboseOn
-
isDone
protected boolean isDone
-
-
Method Detail
-
say
protected void say(String x)
For use with informational messages.- Parameters:
x
-
-
sayi
protected void sayi(String x)
-
sayv
protected void sayv(String x)
Used for spitting out extra messages in verbose mode.- Parameters:
x
-
-
getIoInterface
public IOInterface getIoInterface()
-
setIoInterface
public void setIoInterface(IOInterface ioInterface)
-
readline
protected String readline(String x) throws IOException
- Throws:
IOException
-
verboseHelp
protected void verboseHelp()
-
showHelp
protected boolean showHelp(EditorInputLine eil)
-
-