Class Severity


  • public class Severity
    extends Object
    • Constructor Detail

      • Severity

        public Severity()
    • Method Detail

      • exceedsSeverity

        public static boolean exceedsSeverity​(int maxSeverity,
                                              String currentSeverity)
        Compares a max severity integer with a severity string
        Parameters:
        maxSeverity - the maximum severity allowed
        currentSeverity - the current severity being evaluated
        Returns:
        boolean to indicate if this passes or fails
      • getIntegerForSeverityText

        public static int getIntegerForSeverityText​(String severityText)
                                             throws IOException
        Fetches the integer value of a given severity
        Parameters:
        severityText - the severity text provided
        Returns:
        Throws:
        IOException
      • getTextForSeverityLevel

        public static String getTextForSeverityLevel​(int value)