org.opt4j.core.config.annotations
Annotation Type Required


@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface Required

The Required annotation defines dependencies between the properties.


Optional Element Summary
 java.lang.String[] elements
          A list of the elements that are allowed to activate the current property.
 java.lang.String property
          The addressed property.
 boolean value
          The boolean value that is necessary to activate the current property.
 

property

public abstract java.lang.String property
The addressed property. This property has to be an enum type.

Returns:
the required property
Default:
""

elements

public abstract java.lang.String[] elements
A list of the elements that are allowed to activate the current property.

Returns:
allowed elements
Default:
{}

value

public abstract boolean value
The boolean value that is necessary to activate the current property.

Returns:
boolean value
Default:
true