public class LoadCommand extends AbstractCommand
log, name, paramParser
Constructor and Description |
---|
LoadCommand() |
Modifier and Type | Method and Description |
---|---|
CliSession.Action |
getAction(CliSession session,
ParseContext ctx,
boolean complete,
Map<String,Object> params)
Process command line parameters and return action.
|
String |
getHelpDetail()
Get expanded help (typically multiple lines).
|
String |
getHelpSummary()
Get summarized help (typically a single line).
|
protected Parser<?> |
getParser(String typeName)
Convert parameter spec type name into a
Parser . |
getExprParam, getExprParam, getName, getSessionModes, getUsage, parse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyIdentifierScope
public String getHelpSummary()
AbstractCommand
getHelpSummary
in interface Command
getHelpSummary
in class AbstractCommand
public String getHelpDetail()
AbstractCommand
The implementation in AbstractCommand
delegates to getHelpSummary()
.
getHelpDetail
in interface Command
getHelpDetail
in class AbstractCommand
protected Parser<?> getParser(String typeName)
AbstractCommand
Parser
. Used for custom type names not supported by ParamParser
.
The implementation in AbstractCommand
supports all FieldType
s registered with the
database, plus:
getParser
in class AbstractCommand
typeName
- parameter type namepublic CliSession.Action getAction(CliSession session, ParseContext ctx, boolean complete, Map<String,Object> params)
AbstractCommand
getAction
in class AbstractCommand
session
- CLI sessionctx
- input to parsecomplete
- false if parse is "for real", true if only for tab completion calculationparams
- parsed parameters indexed by nameCopyright © 2022. All rights reserved.