Annotation Type MinimumCardinality


  • @Documented
    @Qualifier
    @Retention(RUNTIME)
    @Target({FIELD,PARAMETER})
    public @interface MinimumCardinality
    Annotation used in conjunction with Reference to specify the minimum cardinality reference property.

    Specifying the MinimumCardinality annotation with the value of 0 on a unary reference is a definition error.

    Author:
    $Id: c84dcc45de25d3256e40e9b481fc4597b23178d3 $
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int value
      The minimum cardinality of the reference.
    • Element Detail

      • value

        int value
        The minimum cardinality of the reference.

        The value must be a positive integer.

        For example:

         @MinimumCardinality(3)
         
        Default:
        1