Enum OMRSTypeDefEventType
- java.lang.Object
-
- java.lang.Enum<OMRSTypeDefEventType>
-
- org.odpi.openmetadata.repositoryservices.events.OMRSTypeDefEventType
-
- All Implemented Interfaces:
Serializable,Comparable<OMRSTypeDefEventType>
public enum OMRSTypeDefEventType extends Enum<OMRSTypeDefEventType> implements Serializable
OMRSTypeDefEventType defines the different types of TypeDef events in the open metadata repository services protocol:- UNKNOWN_TYPEDEF_EVENT: the event is not recognized by this local server, probably because it is back-level from other servers in the cluster. It is logged in the audit log and then ignored. The metadata exchange protocol should evolve so that new message types can be ignored by back-level servers without damage to the cluster's integrity.
- NEW_TYPEDEF: A new TypeDef has been defined.
- UPDATED_TYPEDEF: An existing TypeDef has been updated.
- DELETED_TYPEDEF_EVENT: An existing TypeDef has been deleted.
- RE_IDENTIFIED_TYPEDEF_EVENT: the guid has been changed for a TypeDef.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Return the default description for the enum value.StringgetName()Return the string name used for messages that include the enum.intgetOrdinal()Return the int identifier used for indexing based on the enum.StringtoString()toString() JSON-stylestatic OMRSTypeDefEventTypevalueOf(String name)Returns the enum constant of this type with the specified name.static OMRSTypeDefEventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_TYPEDEF_EVENT
public static final OMRSTypeDefEventType UNKNOWN_TYPEDEF_EVENT
-
NEW_TYPEDEF_EVENT
public static final OMRSTypeDefEventType NEW_TYPEDEF_EVENT
-
NEW_ATTRIBUTE_TYPEDEF_EVENT
public static final OMRSTypeDefEventType NEW_ATTRIBUTE_TYPEDEF_EVENT
-
UPDATED_TYPEDEF_EVENT
public static final OMRSTypeDefEventType UPDATED_TYPEDEF_EVENT
-
DELETED_TYPEDEF_EVENT
public static final OMRSTypeDefEventType DELETED_TYPEDEF_EVENT
-
DELETED_ATTRIBUTE_TYPEDEF_EVENT
public static final OMRSTypeDefEventType DELETED_ATTRIBUTE_TYPEDEF_EVENT
-
RE_IDENTIFIED_TYPEDEF_EVENT
public static final OMRSTypeDefEventType RE_IDENTIFIED_TYPEDEF_EVENT
-
RE_IDENTIFIED_ATTRIBUTE_TYPEDEF_EVENT
public static final OMRSTypeDefEventType RE_IDENTIFIED_ATTRIBUTE_TYPEDEF_EVENT
-
TYPEDEF_ERROR_EVENT
public static final OMRSTypeDefEventType TYPEDEF_ERROR_EVENT
-
-
Method Detail
-
values
public static OMRSTypeDefEventType[] 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 (OMRSTypeDefEventType c : OMRSTypeDefEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OMRSTypeDefEventType 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 int identifier used for indexing based on the enum.- Returns:
- int identifier code
-
getName
public String getName()
Return the string name used for messages that include the enum.- Returns:
- String name
-
getDescription
public String getDescription()
Return the default description for the enum value. This is used when natural resource bundle is not available.- Returns:
- String default description
-
toString
public String toString()
toString() JSON-style- Overrides:
toStringin classEnum<OMRSTypeDefEventType>- Returns:
- string description
-
-