|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface OneOf
Indicates that exactly one of the given options must always be present on the command line.
For example, in the following context you must either use --local
or --global
(but not both) and at least one of these options
must be used.
@OneOf ({ "local", "global" }) public void ContextClass { ... }
OneOfList
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 |