public class SetHistoryFileCommand extends AbstractCommand
log, name, paramParser| Constructor and Description |
|---|
SetHistoryFileCommand() |
| 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 |
getHelpSummary()
Get summarized help (typically a single line).
|
protected Parser<?> |
getParser(String typeName)
Convert parameter spec type name into a
Parser. |
EnumSet<SessionMode> |
getSessionModes()
Get the
SessionMode(s) supported by this command. |
getHelpDetail, getName, getUsage, parsepublic String getHelpSummary()
AbstractCommandgetHelpSummary in interface CommandgetHelpSummary 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 EnumSet<SessionMode> getSessionModes()
AbstractCommandSessionMode(s) supported by this command.
The implementation in AbstractCommand returns an EnumSet containing
SessionMode.CORE_API and SessionMode.JSIMPLEDB.
getSessionModes in interface CommandgetSessionModes in class AbstractCommandSessionModespublic 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.