|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=TYPE) 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 { ... }
AtMostOneOfList
Required Element Summary | |
---|---|
java.lang.String[] |
value
List of options that are mutually exclusive. |
Element Detail |
---|
public abstract java.lang.String[] value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |