Annotation Type AtMostOneOf

public @interface AtMostOneOf

Indicates that the given options are mutually exclusive, i.e., at most one option of the list can be present at the same time in the command line.

For example, in the following context you can use --verbose or --quiet, but not both. Neither option is compulsory.

 @AtMostOneOf ({ "verbose", "quiet" })
 public void ContextClass {

See Also:

Required Element Summary
 java.lang.String[] value
          List of options that are mutually exclusive.

Element Detail


public abstract java.lang.String[] value
List of options that are mutually exclusive. Each option is identified by its long name.