Enum Class Cardinality
- All Implemented Interfaces:
Serializable,Comparable<Cardinality>,Constable
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 ConstantsEnum ConstantDescriptionIndicates 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
-
Enum Constant Details
-
DEFAULT
Indicates that the cardinality of the role that this role specializes should be used. If no parent role exists, defaults toMANY.Supported API: true
-
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
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
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
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
-