Enum ClassificationPropagationRule
- java.lang.Object
-
- java.lang.Enum<ClassificationPropagationRule>
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.ClassificationPropagationRule
-
- All Implemented Interfaces:
Serializable,Comparable<ClassificationPropagationRule>
public enum ClassificationPropagationRule extends Enum<ClassificationPropagationRule> implements Serializable
ClassificationPropagationRule is part of a relationship definition (RelationshipDef). It indicates whether classifications from one entity should propagate across a relationship instance. It allows classification for, say confidentiality to be propagated to related entities.The propagation rule defines the direction of propagation:
- NONE: no propagation of classifications across the relationship.
- ONE_TO_TWO: from entity at end 1 of the relationship to the entity at end 2 of the relationship.
- TWO_TO_ONE: from entity at end 2 of the relationship to the entity at end 1 of the relationship.
- BOTH: two way propagation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTHNONEONE_TO_TWOTWO_TO_ONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Return the default description of the propagation rule.StringgetName()Return the default name of the propagation rule.intgetOrdinal()Return the numeric representation of the propagation rule.StringtoString()toString() JSON-stylestatic ClassificationPropagationRulevalueOf(String name)Returns the enum constant of this type with the specified name.static ClassificationPropagationRule[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ClassificationPropagationRule NONE
-
ONE_TO_TWO
public static final ClassificationPropagationRule ONE_TO_TWO
-
TWO_TO_ONE
public static final ClassificationPropagationRule TWO_TO_ONE
-
BOTH
public static final ClassificationPropagationRule BOTH
-
-
Method Detail
-
values
public static ClassificationPropagationRule[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClassificationPropagationRule c : ClassificationPropagationRule.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClassificationPropagationRule valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getOrdinal
public int getOrdinal()
Return the numeric representation of the propagation rule.- Returns:
- int ordinal
-
getName
public String getName()
Return the default name of the propagation rule.- Returns:
- String name
-
getDescription
public String getDescription()
Return the default description of the propagation rule.- Returns:
- String description
-
toString
public String toString()
toString() JSON-style- Overrides:
toStringin classEnum<ClassificationPropagationRule>- Returns:
- string description
-
-