be.ugent.twijug.jclops.annotations
Annotation Type AtMostOneOf


@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 {
     ...
 }
 

See Also:
AtMostOneOfList

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

Element Detail

value

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