Enum OpenMetadataExchangeRule
- java.lang.Object
-
- java.lang.Enum<OpenMetadataExchangeRule>
-
- org.odpi.openmetadata.adminservices.configuration.properties.OpenMetadataExchangeRule
-
- All Implemented Interfaces:
Serializable,Comparable<OpenMetadataExchangeRule>
public enum OpenMetadataExchangeRule extends Enum<OpenMetadataExchangeRule> implements Serializable
OpenMetadataExchangeRule controls the sending/receiving of metadata instances on the metadata highway.- REGISTRATION_ONLY means do not send/receive reference metadata - just perform the minimal registration exchanges.
- JUST_TYPEDEFS means only send/receive/validate type definitions (TypeDefs).
- SELECTED_TYPES means that in addition to TypeDefs events, only metadata instances of the types supplied in the related list of TypeDefs (see typesToSend, typesToSave and typesToFederate) should be processed.
- DESELECTED_TYPES means that in addition to TypeDefs events, only metadata instances NOT of the types supplied in the related list of TypeDefs (see typesToSend, typesToSave and typesToFederate) should be processed.
- LEARNED_TYPES means that the local repository requests reference copies of metadata based on the requests of the local user community.
- ALL means send/receive all types of metadata that are supported by the local repository.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLDESELECTED_TYPESJUST_TYPEDEFSLEARNED_TYPESREGISTRATION_ONLYSELECTED_TYPES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Return the description of this metadata instance replication rule.StringgetName()Return the name of this metadata instance replication rule.intgetOrdinal()Return the code number of this metadata instance replication rule.StringtoString()Standard toString method.static OpenMetadataExchangeRulevalueOf(String name)Returns the enum constant of this type with the specified name.static OpenMetadataExchangeRule[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REGISTRATION_ONLY
public static final OpenMetadataExchangeRule REGISTRATION_ONLY
-
JUST_TYPEDEFS
public static final OpenMetadataExchangeRule JUST_TYPEDEFS
-
SELECTED_TYPES
public static final OpenMetadataExchangeRule SELECTED_TYPES
-
LEARNED_TYPES
public static final OpenMetadataExchangeRule LEARNED_TYPES
-
DESELECTED_TYPES
public static final OpenMetadataExchangeRule DESELECTED_TYPES
-
ALL
public static final OpenMetadataExchangeRule ALL
-
-
Method Detail
-
values
public static OpenMetadataExchangeRule[] 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 (OpenMetadataExchangeRule c : OpenMetadataExchangeRule.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpenMetadataExchangeRule 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 code number of this metadata instance replication rule.- Returns:
- int replication rule code number
-
getName
public String getName()
Return the name of this metadata instance replication rule.- Returns:
- String replication rule name
-
getDescription
public String getDescription()
Return the description of this metadata instance replication rule.- Returns:
- String replication rule description
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classEnum<OpenMetadataExchangeRule>- Returns:
- print out of variables in a JSON-style
-
-