public class SaveCommand extends AbstractCommand
log, name, paramParser| Constructor and Description |
|---|
SaveCommand() |
| 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. |
getName, getSessionModes, getUsage, parsepublic String getHelpSummary()
AbstractCommandgetHelpSummary in interface CommandgetHelpSummary in class AbstractCommandpublic String getHelpDetail()
AbstractCommand
The implementation in AbstractCommand delegates to getHelpSummary().
getHelpDetail in interface CommandgetHelpDetail in class AbstractCommandprotected Parser<?> getParser(String typeName)
AbstractCommandParser. Used for custom type names not supported by ParamParser.
The implementation in AbstractCommand supports all FieldTypes registered with the
database, type for an object type name (returns Integer), and objid for an object ID
(returns ObjId).
getParser in class AbstractCommandtypeName - parameter type namepublic CliSession.Action getAction(CliSession session, ParseContext ctx, boolean complete, Map<String,Object> params)
AbstractCommandgetAction in class AbstractCommandsession - CLI sessionctx - input to parsecomplete - false if parse is "for real", true if only for tab completion calculationparams - parsed parameters indexed by nameCopyright © 2016. All rights reserved.