Class OMRSAuditLogReportSeverity

java.lang.Object
org.odpi.openmetadata.repositoryservices.auditlog.OMRSAuditLogReportSeverity
All Implemented Interfaces:
Serializable, AuditLogRecordSeverity

public class OMRSAuditLogReportSeverity extends Object implements AuditLogRecordSeverity, Serializable
AuditLogReportSeverity provides information about the different types of severities defined for the audit log.
See Also:
  • Constructor Details

    • OMRSAuditLogReportSeverity

      public OMRSAuditLogReportSeverity()
      Default constructor
    • OMRSAuditLogReportSeverity

      public OMRSAuditLogReportSeverity(AuditLogRecordSeverity template)
      Copy/clone constructor.
      Parameters:
      template - object to copy.
  • Method Details

    • getOrdinal

      public int getOrdinal()
      Return the numerical code for this enum.
      Specified by:
      getOrdinal in interface AuditLogRecordSeverity
      Returns:
      int componentId
    • setOrdinal

      public void setOrdinal(int ordinal)
      Set up the numerical code for this enum.
      Parameters:
      ordinal - identifier
    • getName

      public String getName()
      Return the name of the component. This is the name used in the audit log records.
      Specified by:
      getName in interface AuditLogRecordSeverity
      Returns:
      String component name
    • setName

      public void setName(String name)
      Set up the name of the component. This is the name used in the audit log records.
      Parameters:
      name - String component name
    • getDescription

      public String getDescription()
      Return the short description of the component. This is an English description. Natural language support for these values can be added to UIs using a resource bundle indexed with the component id. This value is provided as a default if the resource bundle is not available.
      Specified by:
      getDescription in interface AuditLogRecordSeverity
      Returns:
      String description
    • setDescription

      public void setDescription(String description)
      Set up the short description of the component. This is an English description. Natural language support for these values can be added to UIs using a resource bundle indexed with the component id. This value is provided as a default if the resource bundle is not available.
      Parameters:
      description - String description
    • toString

      public String toString()
      toString, JSON-style
      Overrides:
      toString in class Object
      Returns:
      string description
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Create a hash code for this element type.
      Overrides:
      hashCode in class Object
      Returns:
      int hash code