Package io.jenkins.plugins.oak9.utils
Class DesignGapCounter
- java.lang.Object
-
- io.jenkins.plugins.oak9.utils.DesignGapCounter
-
public class DesignGapCounter extends Object
-
-
Constructor Summary
Constructors Constructor Description DesignGapCounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getCountForSeverity(String severity)
Get the current count for a given severity.Map<String,Integer>
getDesignGapViolationCounter()
Returns the current map of design gap countsvoid
setDesignGapViolationCounter(Map<String,Integer> designGapViolationCounter)
void
trackDesignGapCounts(int severityLevel)
Keeps counts of different severity violations from an Oak9 scan result
-
-
-
Method Detail
-
setDesignGapViolationCounter
public void setDesignGapViolationCounter(Map<String,Integer> designGapViolationCounter)
-
getDesignGapViolationCounter
public Map<String,Integer> getDesignGapViolationCounter()
Returns the current map of design gap counts- Returns:
- design gap count hash map
-
trackDesignGapCounts
public void trackDesignGapCounts(int severityLevel)
Keeps counts of different severity violations from an Oak9 scan result- Parameters:
severityLevel
- the Violation object from which we are analyzing the severity
-
getCountForSeverity
public Integer getCountForSeverity(String severity)
Get the current count for a given severity. Returns 0 if there is no set entry for the provided severity- Parameters:
severity
- the severity for which you are requesting a count of design gaps- Returns:
- the count of design gaps for the given severity
-
-