Enum Class OpenMetadataRelationshipEndCardinality
java.lang.Object
java.lang.Enum<OpenMetadataRelationshipEndCardinality>
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataRelationshipEndCardinality
- All Implemented Interfaces:
Serializable
,Comparable<OpenMetadataRelationshipEndCardinality>
,Constable
public enum OpenMetadataRelationshipEndCardinality
extends Enum<OpenMetadataRelationshipEndCardinality>
RelationshipCardinality is used in a OpenMetadataRelationshipEndDef to indicate how many relationships of this type
can be connected to an entity instance.:
- UNKNOWN: uninitialized cardinality.
- AT_MOST_ONE: means there can be zero or one instances of this relationship connected to an instance of the OpenMetadataEntityDef. This relationship is written as 0..1 in UML.
- ANY_NUMBER: means there can be none, one or many instances of this relationship connected to an instance of the OpenMetadataEntityDef. This relationship is often written as 0..* or * in UML.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAny Number (0..* or * for any number of instances).At Most One (0..1 for zero or one instances).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.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
At Most One (0..1 for zero or one instances). -
ANY_NUMBER
Any Number (0..* or * for any number of instances).
-
-
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<OpenMetadataRelationshipEndCardinality>
- Returns:
- string description
-