public interface OptionMetadata
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getBoxedType()
Return the boxed type for this option.
|
Class<? extends CommandCompleter> |
getCompleterType()
Return the type of the
CommandCompleter for this option. |
String |
getDefaultValue()
Get the default value for this option.
|
String |
getDescription()
Get the description text for this option.
|
String |
getHelp()
Get the help text for this option.
|
int |
getIndex()
Get the index of this option in the receiving method signature parameter list.
|
String |
getName()
Get the name of this option.
|
String |
getOptionDescriptor()
Get the verbose description of this option.
|
CommandMetadata |
getParent()
Get the
CommandMetadata defining this option. |
PromptType |
getPromptType()
Get the requested
PromptType for this option. |
String |
getShortName()
Get the short name for this option, if it exists; otherwise, return empty string.
|
Class<?> |
getType()
Get the literal type of this option.
|
boolean |
hasCustomCompleter()
Return true if this option specifies a custom
CommandCompleter. |
boolean |
hasDefaultValue()
Return true if this option has a default value.
|
boolean |
isBoolean()
Return true if this option is a boolean type.
|
boolean |
isEnum()
Return true if this option is an enum type.
|
boolean |
isFlagOnly()
Return true if this option is only a flag, and only has a short name, taking no value on the command line.
|
boolean |
isNamed()
Return true if this option is named.
|
boolean |
isOrdered()
Return true if this option is not named, and must be specified by order.
|
boolean |
isPipeIn()
Return true if this option is the
PipeIn |
boolean |
isPipeOut()
Return true if this option is the
PipeOut |
boolean |
isRequired()
Return true if this option is required, and cannot be omitted on the command line.
|
boolean |
isVarargs()
Return true if this option accepts multiple values on the command line.
|
boolean |
notOrdered()
Return true if this option is not ordered: E.g.
|
Class<?> getBoxedType()
IntegerClass<? extends CommandCompleter> getCompleterType()
CommandCompleter for this option.String getDefaultValue()
String getDescription()
String getHelp()
int getIndex()
String getName()
String getOptionDescriptor()
CommandMetadata getParent()
CommandMetadata defining this option.PromptType getPromptType()
PromptType for this option.String getShortName()
Class<?> getType()
boolean hasCustomCompleter()
CommandCompleter.boolean hasDefaultValue()
boolean isBoolean()
boolean isEnum()
boolean isFlagOnly()
boolean isNamed()
boolean isOrdered()
boolean isPipeIn()
PipeInboolean isPipeOut()
PipeOutboolean isRequired()
boolean isVarargs()
boolean notOrdered()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.