@Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) public @interface Param
Modifier and Type | Optional Element and Description |
---|---|
String |
acceptableValues
Returns a list of comma separated acceptable values for this parameter.
|
String |
alias
Returns an alias for the option.
|
Class<? extends ParamDefaultCalculator> |
defaultCalculator
Returns a class that calculates the default value associated with the
parameter.
|
String |
defaultValue
Returns the default value associated with the parameter
so that the user can specify
|
boolean |
multiple
Returns true if multiple instances of the parameter are allowed.
|
String |
name
Returns the name of the parameter as it has be specified by the client when invoking
the command.
|
boolean |
obsolete
Returns true if this parameter is obsolete.
|
boolean |
optional
Returns true if the parameter is optional to the successful invocation of the command
|
boolean |
password
Returns true if the parameter is a password
|
boolean |
primary
Returns true if this is the primary parameter for the command which mean that the
client does not have to pass the parameter name but just the value to the command.
|
char |
separator
Returns the character used to separate items in a list.
|
String |
shortName
Returns the short name associated with the parameter so that the user can specify
-p as well as -password when invoking the command.
|
public abstract String name
public abstract String acceptableValues
public abstract boolean optional
public abstract String shortName
public abstract boolean primary
public abstract String defaultValue
public abstract Class<? extends ParamDefaultCalculator> defaultCalculator
public abstract boolean password
public abstract char separator
public abstract boolean multiple
public abstract boolean obsolete
public abstract String alias
Copyright © 2019. All rights reserved.