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


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

See Also:
OneOfList

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.