Enum OMRSTypeDefEventType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<OMRSTypeDefEventType>

    public enum OMRSTypeDefEventType
    extends java.lang.Enum<OMRSTypeDefEventType>
    implements java.io.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.
    • 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​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - 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 java.lang.String getName()
        Return the string name used for messages that include the enum.
        Returns:
        String name
      • getDescription

        public java.lang.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 java.lang.String toString()
        toString() JSON-style
        Overrides:
        toString in class java.lang.Enum<OMRSTypeDefEventType>
        Returns:
        string description