Modifier and Type | Method and Description |
---|---|
protected CommandModel.ParamModel |
CLICommand.getOperandModel()
Get the ParamModel that corresponds to the operand
(primary parameter).
|
Modifier and Type | Method and Description |
---|---|
static Collection<CommandModel.ParamModel> |
ProgramOptions.getHelpOption()
Return a set of all the valid program options.
|
static Collection<CommandModel.ParamModel> |
ProgramOptions.getValidOptions()
Return a set of all the valid program options.
|
protected Collection<CommandModel.ParamModel> |
MultimodeCommand.usageOptions()
In the usage message modify the --printprompt option to have a default
based on the --interactive option.
|
protected Collection<CommandModel.ParamModel> |
CLICommand.usageOptions()
Subclasses can override this method to supply additional
or different options that should be part of the usage text.
|
Modifier and Type | Method and Description |
---|---|
protected char[] |
CLICommand.getPassword(CommandModel.ParamModel opt,
String defaultPassword,
boolean create)
Get a password for the given option.
|
Constructor and Description |
---|
Parser(String[] args,
int start,
Collection<CommandModel.ParamModel> options,
boolean ignoreUnknown)
Parse the given command line arguments
|
Modifier and Type | Method and Description |
---|---|
protected Collection<CommandModel.ParamModel> |
CreateDomainCommand.usageOptions()
Add --adminport and --instanceport options with proper default values.
|
Modifier and Type | Class and Description |
---|---|
static class |
CommandModelData.ParamModelData
A parameter model that's just data.
|
Modifier and Type | Method and Description |
---|---|
CommandModel.ParamModel |
CommandModelData.getModelFor(String paramName) |
Modifier and Type | Method and Description |
---|---|
void |
CommandModelData.add(CommandModel.ParamModel model)
Add the ParamModel to this CommandModel.
|
Modifier and Type | Method and Description |
---|---|
protected String |
ClientGenerator.generateParameterName(CommandModel.ParamModel model) |
Modifier and Type | Method and Description |
---|---|
Collection<CommandModel.ParamModel> |
StatusGenerator.getParamMetaData(String commandName) |
Modifier and Type | Method and Description |
---|---|
static Collection<CommandModel.ParamModel> |
ResourceUtil.getParamMetaData(String commandName,
Collection<String> commandParamsToSkip,
org.glassfish.hk2.api.ServiceLocator habitat)
Constructs and returns the parameter meta-data.
|
static Collection<CommandModel.ParamModel> |
ResourceUtil.getParamMetaData(String commandName,
org.glassfish.hk2.api.ServiceLocator habitat)
Constructs and returns the parameter meta-data.
|
Modifier and Type | Method and Description |
---|---|
abstract CommandModel.ParamModel |
CommandModel.getModelFor(String paramName)
Returns the parameter model for a particular parameter
|
Modifier and Type | Method and Description |
---|---|
Collection<CommandModel.ParamModel> |
CommandModel.getParameters()
Returns a collection of parameter model for all the parameters supported
by this command.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
CommandModel.add(CommandModel.ParamModel model)
Add a ParamModel for this command
|
Modifier and Type | Method and Description |
---|---|
CommandModel.ParamModel |
GenericCommandModel.getModelFor(String paramName) |
CommandModel.ParamModel |
CommandModelImpl.getModelFor(String paramName) |
Modifier and Type | Method and Description |
---|---|
static Map<String,CommandModel.ParamModel> |
CommandModelImpl.init(Class commandType,
I18n i18n,
LocalStringManager localStrings) |
Modifier and Type | Method and Description |
---|---|
void |
GenericCommandModel.add(CommandModel.ParamModel model) |
void |
CommandModelImpl.add(CommandModel.ParamModel model) |
void |
CommandModelImpl.addParam(String name,
CommandModel.ParamModel param) |
Modifier and Type | Method and Description |
---|---|
protected Collection<CommandModel.ParamModel> |
LocalOSGiShellCommand.usageOptions()
In the usage message modify the --printprompt option to have a
default based on the --interactive option.
|
Copyright © 2018. All rights reserved.