Package io.jenkins.plugins.oak9.utils
Class Severity
- java.lang.Object
-
- io.jenkins.plugins.oak9.utils.Severity
-
public class Severity extends Object
-
-
Constructor Summary
Constructors Constructor Description Severity()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
exceedsSeverity(int maxSeverity, String currentSeverity)
Compares a max severity integer with a severity stringstatic int
getIntegerForSeverityText(String severityText)
Fetches the integer value of a given severitystatic Map<String,Integer>
getSeverities()
static String
getTextForSeverityLevel(int value)
-
-
-
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 allowedcurrentSeverity
- 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)
-
-