|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) public @interface Parameter
Optional Element Summary | |
---|---|
int |
arity
How many parameter values this parameter will consume. |
java.lang.Class<? extends IStringConverter<?>> |
converter
The string converter to use for this field. |
java.lang.String |
description
A description of this option. |
java.lang.String |
descriptionKey
The key used to find the string in the message bundle. |
boolean |
echoInput
If true, console will not echo typed input Used in conjunction with password = true |
boolean |
help
If true, this parameter is for help. |
boolean |
hidden
If true, this parameter won't appear in the usage(). |
java.lang.Class<? extends IStringConverter<?>> |
listConverter
The list string converter to use for this field. |
java.lang.String[] |
names
An array of allowed command line parameters (e.g. |
boolean |
password
If true, this parameter is a password and it will be prompted on the console (if available). |
boolean |
required
Whether this option is required. |
java.lang.Class<? extends IParameterSplitter> |
splitter
What splitter to use (applicable only on fields of type List). |
java.lang.Class<? extends IValueValidator> |
validateValueWith
Validate the value for this parameter. |
java.lang.Class<? extends IParameterValidator> |
validateWith
Validate the parameter found on the command line. |
boolean |
variableArity
|
public abstract java.lang.String[] names
public abstract java.lang.String description
public abstract boolean required
public abstract java.lang.String descriptionKey
public abstract int arity
public abstract boolean password
public abstract java.lang.Class<? extends IStringConverter<?>> converter
public abstract java.lang.Class<? extends IStringConverter<?>> listConverter
public abstract boolean hidden
public abstract java.lang.Class<? extends IParameterValidator> validateWith
public abstract java.lang.Class<? extends IValueValidator> validateValueWith
public abstract boolean variableArity
public abstract java.lang.Class<? extends IParameterSplitter> splitter
public abstract boolean echoInput
public abstract boolean help
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |