Enum OMRSTypeDefEventErrorCode
- java.lang.Object
-
- java.lang.Enum<OMRSTypeDefEventErrorCode>
-
- org.odpi.openmetadata.repositoryservices.events.OMRSTypeDefEventErrorCode
-
- All Implemented Interfaces:
Serializable
,Comparable<OMRSTypeDefEventErrorCode>
public enum OMRSTypeDefEventErrorCode extends Enum<OMRSTypeDefEventErrorCode> implements Serializable
OMRSTypeDefEventErrorCode defines the list of error codes that are used to record errors in the TypeDef synchronization process that is used by the repository connectors within the open metadata repository cluster.- NOT_IN_USE: There has been no error detected and so the error code is not in use.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFLICTING_ATTRIBUTE_TYPEDEFS
CONFLICTING_TYPEDEFS
NOT_IN_USE
TYPEDEF_PATCH_MISMATCH
UNKNOWN_ERROR_CODE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Return the default description for the enum, used when there is not natural language resource bundle available.OMRSEventErrorCode
getEncoding()
Return the encoding to use in OMRSEvents.String
getName()
Return the name for the enum, used for message content.int
getOrdinal()
Return the identifier for the enum, used for indexing arrays etc with the enum.String
toString()
toString() JSON-stylestatic OMRSTypeDefEventErrorCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static OMRSTypeDefEventErrorCode[]
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 OMRSTypeDefEventErrorCode NOT_IN_USE
-
CONFLICTING_TYPEDEFS
public static final OMRSTypeDefEventErrorCode CONFLICTING_TYPEDEFS
-
CONFLICTING_ATTRIBUTE_TYPEDEFS
public static final OMRSTypeDefEventErrorCode CONFLICTING_ATTRIBUTE_TYPEDEFS
-
TYPEDEF_PATCH_MISMATCH
public static final OMRSTypeDefEventErrorCode TYPEDEF_PATCH_MISMATCH
-
UNKNOWN_ERROR_CODE
public static final OMRSTypeDefEventErrorCode UNKNOWN_ERROR_CODE
-
-
Method Detail
-
values
public static OMRSTypeDefEventErrorCode[] 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 (OMRSTypeDefEventErrorCode c : OMRSTypeDefEventErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OMRSTypeDefEventErrorCode 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
-
getEncoding
public OMRSEventErrorCode getEncoding()
Return the encoding to use in OMRSEvents.- Returns:
- String OMRSEvent encoding for this errorCode
-
toString
public String toString()
toString() JSON-style- Overrides:
toString
in classEnum<OMRSTypeDefEventErrorCode>
- Returns:
- string description
-
-