Annotation Type IpsAssociation


@Retention(RUNTIME) @Target(METHOD) public @interface IpsAssociation
Preserves design time information about a model association for runtime reference via Association.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
    int
    Maximal number of targets for this association
    int
    Minimal number of targets for this association
    The name used for a/the single target of the association.
    The association's target.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name used for multiple targets of the association.
    boolean
    Whether the association is "qualified".
  • Element Details

    • name

      String name
      The name used for a/the single target of the association.
    • kind

    • targetClass

      Class<?> targetClass
      The association's target.
    • min

      int min
      Minimal number of targets for this association
    • max

      int max
      Maximal number of targets for this association
    • pluralName

      String pluralName
      The name used for multiple targets of the association.
      Default:
      ""
    • qualified

      boolean qualified
      Whether the association is "qualified". A PolicyAssociation can be "qualified" by its matching ProductAssociation, meaning that the PolicyAssociation's cardinalities are not defined for all targets but per target of the ProductAssociation.
      Since:
      22.6
      Default:
      false