org.apache.beehive.controls.api.bean
Annotation Type AnnotationConstraints.MembershipRule


@Target(value=ANNOTATION_TYPE)
@Retention(value=RUNTIME)
public static @interface AnnotationConstraints.MembershipRule

Provides a mechanism for enforcing constraints between members of an annotation (such a mechanism is absent from J2SE 5.0; for example, given an annotation with members 'a' and 'b' there is no way to say that they are mutually exclusive).

See Also:
#MembershipRuleValues

Required Element Summary
 AnnotationConstraints.MembershipRuleValues value
          Required, the membership rule.
 
Optional Element Summary
 String[] memberNames
          Optional list of member names to apply rule against.
 

Element Detail

value

public abstract AnnotationConstraints.MembershipRuleValues value
Required, the membership rule.

memberNames

public abstract String[] memberNames
Optional list of member names to apply rule against. Empty array implies all members.

Default:
{}