Enum Severity

    • Enum Constant Detail

      • DEBUG

        public static final Severity DEBUG
        The severity that will be used for debug messages.
      • INFORMATION

        public static final Severity INFORMATION
        The severity that will be used for informational messages.
      • NOTICE

        public static final Severity NOTICE
        The severity that will be used for important informational messages.
      • WARNING

        public static final Severity WARNING
        The severity that will be used for warning messages.
      • ERROR

        public static final Severity ERROR
        The severity that will be used for warning messages.
    • Method Detail

      • values

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

        public static Severity 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 name
        NullPointerException - if the argument is null
      • getPropertyKeyFormSet

        public static Set<String> getPropertyKeyFormSet()
        Returns a set of string representing all Severitys' abbreviated representations.
        Returns:
        set of messageDescriptorForm strings
      • parseString

        public static Severity parseString​(String s)
        Returns the Severity associated with the input string s which can either be a severity's name or messageDescriptorForm.
        Parameters:
        s - Severity name or messageDescriptorForm
        Returns:
        Severity associated with s
      • messageDesciptorName

        public String messageDesciptorName()
        Gets the abbreviated form of this Severity.
        Returns:
        String abbreviated form
      • propertyKeyFormName

        public String propertyKeyFormName()
        Gets the name of this severity as it must appear in the property key name in a messages file.
        Returns:
        name of this severity