Enum OMRSEventErrorCode
- java.lang.Object
-
- java.lang.Enum<OMRSEventErrorCode>
-
- org.odpi.openmetadata.repositoryservices.events.OMRSEventErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<OMRSEventErrorCode>
public enum OMRSEventErrorCode extends Enum<OMRSEventErrorCode> implements Serializable
OMRSEventErrorCode is a merging of the OMRSRegistryEventErrorCode, OMRSTypeDefEventErrorCode and OMRSInstanceEventErrorCode that is used in OMRSEvent.
-
-
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, used when there is not natural language resource bundle available.StringgetName()Return the name for the enum, used for message content.intgetOrdinal()Return the identifier for the enum, used for indexing arrays etc with the enum.StringtoString()toString() JSON-stylestatic OMRSEventErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static OMRSEventErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_IN_USE
public static final OMRSEventErrorCode NOT_IN_USE
-
INVALID_EVENT_FORMAT
public static final OMRSEventErrorCode INVALID_EVENT_FORMAT
-
INVALID_REGISTRY_EVENT
public static final OMRSEventErrorCode INVALID_REGISTRY_EVENT
-
INVALID_TYPEDEF_EVENT
public static final OMRSEventErrorCode INVALID_TYPEDEF_EVENT
-
INVALID_INSTANCE_EVENT
public static final OMRSEventErrorCode INVALID_INSTANCE_EVENT
-
CONFLICTING_COLLECTION_ID
public static final OMRSEventErrorCode CONFLICTING_COLLECTION_ID
-
BAD_REMOTE_CONNECTION
public static final OMRSEventErrorCode BAD_REMOTE_CONNECTION
-
CONFLICTING_TYPEDEFS
public static final OMRSEventErrorCode CONFLICTING_TYPEDEFS
-
CONFLICTING_ATTRIBUTE_TYPEDEFS
public static final OMRSEventErrorCode CONFLICTING_ATTRIBUTE_TYPEDEFS
-
TYPEDEF_PATCH_MISMATCH
public static final OMRSEventErrorCode TYPEDEF_PATCH_MISMATCH
-
CONFLICTING_INSTANCES
public static final OMRSEventErrorCode CONFLICTING_INSTANCES
-
CONFLICTING_TYPE
public static final OMRSEventErrorCode CONFLICTING_TYPE
-
UNKNOWN_ERROR_CODE
public static final OMRSEventErrorCode UNKNOWN_ERROR_CODE
-
-
Method Detail
-
values
public static OMRSEventErrorCode[] 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 (OMRSEventErrorCode c : OMRSEventErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OMRSEventErrorCode 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 identifier for the enum, used for indexing arrays etc with the enum.- Returns:
- int identifier
-
getName
public String getName()
Return the name for the enum, used for message content.- Returns:
- String name
-
getDescription
public String getDescription()
Return the default description for the enum, used when there is not natural language resource bundle available.- Returns:
- String default description
-
toString
public String toString()
toString() JSON-style- Overrides:
toStringin classEnum<OMRSEventErrorCode>- Returns:
- string description
-
-