@Retention(value=RUNTIME) @Target(value=FIELD) public @interface OptionList
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends OptionActivator> |
activator
Define an activator for this option.
|
Class<? extends OptionCompleter> |
completer
Define a completer for this option.
|
Class<? extends Converter> |
converter
Define a converter if the field is a type thats not java.lang and other
common types, eg: File,++
See ClConverterManager for whats added by default
|
String[] |
defaultValue
If this options has a value the default will be auto completed if it matches
the value already typed
|
String |
description
A description of the param.
|
String |
name
The name of the option param.
|
Class<? extends OptionRenderer> |
renderer
Define a renderer
|
boolean |
required
Specify if this option is required
|
char |
shortName
The short option name.
|
Class<? extends OptionValidator> |
validator
Define a validator for this option.
|
char |
valueSeparator
If set will force the option to be of the form:
name[separator]value
As an example, if we want to create an option like: --foo bar1,bar2
|
public abstract String name
public abstract String description
public abstract char valueSeparator
public abstract String[] defaultValue
public abstract Class<? extends OptionCompleter> completer
public abstract Class<? extends OptionValidator> validator
public abstract Class<? extends OptionActivator> activator
public abstract Class<? extends OptionRenderer> renderer
Copyright © 2017 JBoss by Red Hat. All rights reserved.