Enum OnmsSeverity

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

    public enum OnmsSeverity
    extends java.lang.Enum<OnmsSeverity>
    implements java.io.Serializable
    OpenNMS severity enumeration.
    Author:
    DJ Gregor
    • Method Detail

      • values

        public static OnmsSeverity[] 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 (OnmsSeverity c : OnmsSeverity.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OnmsSeverity 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
      • getId

        public int getId()

        getId

        Returns:
        a int.
      • getLabel

        public java.lang.String getLabel()

        getLabel

        Returns:
        a String object.
      • getColor

        public java.lang.String getColor()

        getColor

        Returns:
        a String object.
      • isLessThan

        public boolean isLessThan​(OnmsSeverity other)

        isLessThan

        Parameters:
        other - a OnmsSeverity object.
        Returns:
        a boolean.
      • isLessThanOrEqual

        public boolean isLessThanOrEqual​(OnmsSeverity other)

        isLessThanOrEqual

        Parameters:
        other - a OnmsSeverity object.
        Returns:
        a boolean.
      • isGreaterThan

        public boolean isGreaterThan​(OnmsSeverity other)

        isGreaterThan

        Parameters:
        other - a OnmsSeverity object.
        Returns:
        a boolean.
      • isGreaterThanOrEqual

        public boolean isGreaterThanOrEqual​(OnmsSeverity other)

        isGreaterThanOrEqual

        Parameters:
        other - a OnmsSeverity object.
        Returns:
        a boolean.
      • get

        public static OnmsSeverity get​(java.lang.String label)

        get

        Parameters:
        label - a String object.
        Returns:
        a OnmsSeverity object.
      • names

        public static java.util.List<java.lang.String> names()