Enum Class Cardinality

java.lang.Object
java.lang.Enum<Cardinality>
com.ptc.windchill.annotations.metadata.Cardinality
All Implemented Interfaces:
Serializable, Comparable<Cardinality>, Constable

public enum Cardinality extends Enum<Cardinality>
Specifies the legitimate number of occurrences for the associated role. This property is mostly obsolete, as cardinality is largely irrelevant to the persistence framework.

Rose conversion note: Corresponds to Association Specification -> Role A/B Detail -> Multiplicity.

Supported API: true

See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Indicates that the cardinality of the role that this role specializes should be used.
    Indicates that, from the perspective of the other role, any number of objects (including 0) may exist for this role.
    Indicates that, from the perspective of the other role, there must be one and only one object for this role.
    Indicates that, from the perspective of the other role, a minimum of one object must exist for this role.
    Indicates that, from the perspective of the other role, at most one object can exist for this role.
  • Method Summary

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • DEFAULT

      public static final Cardinality DEFAULT
      Indicates that the cardinality of the role that this role specializes should be used. If no parent role exists, defaults to MANY.

      Supported API: true

    • ZERO_TO_ONE

      public static final Cardinality ZERO_TO_ONE
      Indicates that, from the perspective of the other role, at most one object can exist for this role.

      Rose conversion note: Corresponds to 0..1.

      Supported API: true

    • ONE

      public static final Cardinality ONE
      Indicates that, from the perspective of the other role, there must be one and only one object for this role.

      Rose conversion note: Corresponds to 1.

      Supported API: true

    • ONE_TO_MANY

      public static final Cardinality ONE_TO_MANY
      Indicates that, from the perspective of the other role, a minimum of one object must exist for this role.

      Rose conversion note: Corresponds to 1..n.

      Supported API: true

    • MANY

      public static final Cardinality MANY
      Indicates that, from the perspective of the other role, any number of objects (including 0) may exist for this role.

      Rose conversion note: Corresponds to n.

      Supported API: true