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 StringHELP_COMMANDprotected booleanisDonestatic StringPROMPTstatic StringQUIT_COMMANDstatic StringQUIT_COMMAND_LONGstatic StringVERBOSE_COMMANDstatic StringVERBOSE_COMMAND_LONGprotected booleanverboseOn
-
Constructor Summary
Constructors Constructor Description AbstractEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()IOInterfacegetIoInterface()protected Stringreadline(String x)protected voidsay(String x)For use with informational messages.protected voidsayi(String x)protected voidsayv(String x)Used for spitting out extra messages in verbose mode.voidsetIoInterface(IOInterface ioInterface)protected booleanshowHelp(EditorInputLine eil)protected voidverboseHelp()
-
-
-
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)
-
-