Enum Class OpenMetadataRelationshipCategory
java.lang.Object
java.lang.Enum<OpenMetadataRelationshipCategory>
org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRelationshipCategory
- All Implemented Interfaces:
Serializable,Comparable<OpenMetadataRelationshipCategory>,Constable
OpenMetadataRelationshipCategory is used in an OpenMetadataRelationshipDef to indicate how many relationships of this type
can be connected between two element instances:
- UNI_LINK: Most common setting. Only one relationship of this type can be connected between two element instances in a specific direction. If a second relationship is connected between them in a specific direction, the properties of the original relationship are simply updated.
- REVERSIBLE: Relationship can be created in both directions between two elements. However, only one relationship will be stored and later "creates" will simply update the properties of the existing relationship.
- MULTI_LINK: Means that unlimited relationships of this type can be created between two elements. Updates to a relationship's properties need to use the updateRelationship call specifying the GUID of the relationship to change.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMultiple relationships of a specific type are allowed between two elements in either direction.At most one relationship of a specific type is allowed between two elements in either direction.Only one relationship of a specific type is allowed between two elements in a specific direction. -
Method Summary
Modifier and TypeMethodDescriptionReturn the default description of the cardinality.getName()Return the default name of the cardinality.intReturn the numeric representation of the cardinality.toString()toString() JSON-styleReturns the enum constant of this class with the specified name.static OpenMetadataRelationshipCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNI_LINK
Only one relationship of a specific type is allowed between two elements in a specific direction. -
REVERSIBLE
At most one relationship of a specific type is allowed between two elements in either direction. -
MULTI_LINK
Multiple relationships of a specific type are allowed between two elements in either direction.
-
-
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:
toStringin classEnum<OpenMetadataRelationshipCategory>- Returns:
- string description
-