Enum Class OpenMetadataAttributeCardinality
java.lang.Object
java.lang.Enum<OpenMetadataAttributeCardinality>
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataAttributeCardinality
- All Implemented Interfaces:
Serializable
,Comparable<OpenMetadataAttributeCardinality>
,Constable
OpenMetadataAttributeCardinality is used on an association from one OpenMetadataTypeDef to another. It defines how many instances the "linked to" OpenMetadataTypeDef
are permitted to be connected to the "linked from" OpenMetadataTypeDef:
- UNKNOWN: uninitialized cardinality
- AT_MOST_ONE: means there can be zero or one instances connected to an instance of this OpenMetadataTypeDef. This relationship is often written as 0..1.
- ONE_ONLY: means there must be one instance, no more and no less.
- AT_LEAST_ONE_ORDERED: means there must be one or more instances connected to an instance of this OpenMetadataTypeDef. This relationship is often written as 1..*. The linked instances are maintained in an ordered list/array.
- AT_LEAST_ONE_UNORDERED: means there must be one or more instances connected to an instance of this OpenMetadataTypeDef. This relationship is often written as 1..*. The linked instances are maintained in an unordered set.
- ANY_NUMBER_ORDERED: means there can be none, one or many instances connected an instance of this OpenMetadataTypeDef. This relationship is often written as 0..*. The linked instances are maintained in an ordered list/array.
- ANY_NUMBER_UNORDERED: means there can be none, one or many instances connected an instance of this OpenMetadataTypeDef. This relationship is often written as 0..*. The linked instances are maintained in an unordered set.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription0..* for any number of instances (stored in a specific order).0..* for any number of instances (stored in any order).1..* for one or more instances (stored in specific order).1..* for one or more instances (stored in any order).0..1 for zero or one instances.1 for one instance, no more and no less.Unknown or uninitialized cardinality. -
Method Summary
Modifier and TypeMethodDescriptionReturn the default description of the cardinality.getName()
Return the default name of the cardinality.int
Return the numeric representation of the cardinality.toString()
toString() JSON-styleReturns the enum constant of this class with the specified name.static OpenMetadataAttributeCardinality[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unknown or uninitialized cardinality. -
AT_MOST_ONE
0..1 for zero or one instances. 0..1. -
ONE_ONLY
1 for one instance, no more and no less. -
AT_LEAST_ONE_ORDERED
1..* for one or more instances (stored in specific order). -
AT_LEAST_ONE_UNORDERED
1..* for one or more instances (stored in any order). -
ANY_NUMBER_ORDERED
0..* for any number of instances (stored in a specific order). -
ANY_NUMBER_UNORDERED
0..* for any number of instances (stored in any order).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getOrdinal
public int getOrdinal()Return the numeric representation of the cardinality.- Returns:
- int ordinal
-
getName
Return the default name of the cardinality.- Returns:
- String name
-
getDescription
Return the default description of the cardinality.- Returns:
- String description
-
toString
toString() JSON-style- Overrides:
toString
in classEnum<OpenMetadataAttributeCardinality>
- Returns:
- string description
-