Package edu.uiuc.ncsa.security.util.cli
Class EditorInputLine
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.cli.InputLine
-
- edu.uiuc.ncsa.security.util.cli.EditorInputLine
-
- Direct Known Subclasses:
LineEditorInputLine
public class EditorInputLine extends InputLine
Created by Jeff Gaynor
on 8/17/20 at 3:14 PM
-
-
Field Summary
-
Fields inherited from class edu.uiuc.ncsa.security.util.cli.InputLine
DELIMITER, parsedInput, SWITCH
-
-
Constructor Summary
Constructors Constructor Description EditorInputLine(String rawLine)
Basic constructor that turns a raw input line (such as types in by a user) to one of these.EditorInputLine(Vector v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCommand(String... x)
Checks that one of the commands applies.-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.InputLine
appendArg, argsToStringArray, argsToVector, format, getArg, getArgCount, getArgList, getArgs, getCommand, getIntArg, getLastArg, getNextArgFor, getNextIntArg, getOriginalLine, hasArg, hasArg, hasArgAt, hasArgList, hasArgs, hasNextArgFor, indexOf, isEmpty, main, removeArgAt, removeSwitch, removeSwitch, removeSwitchAndValue, removeSwitchAndValue, setArg, setLastArg, setOriginalLine, size, toString
-
-
-
-
Method Detail
-
isCommand
public boolean isCommand(String... x)
Checks that one of the commands applies. This allows for things like short and long form commands to be checked with as single call, e.g.isCommand("r","read");
It also handles missing commands.- Parameters:
x
-- Returns:
-
-