hudson.plugins.violations.model
Class Severity

java.lang.Object
  extended by hudson.plugins.violations.model.Severity

public final class Severity
extends Object

Severity levels of violations. These are normalized from the various violation types. PMD was used as the base for the names.


Field Summary
static String HIGH
          High severity name
static int HIGH_VALUE
          High severity value
static String LOW
          Low severity name
static int LOW_VALUE
          Low severity value
static String MEDIUM
          Medium severity name
static String MEDIUM_HIGH
          Medium High severity name
static int MEDIUM_HIGH_VALUE
          Medium High severity value
static String MEDIUM_LOW
          Medium Low severity name
static int MEDIUM_LOW_VALUE
          Medium Low severity value
static int MEDIUM_VALUE
          Medium severity value name
static String[] NAMES
          Map of number to string
static int NUMBER_SEVERITIES
          Number of severity
 
Method Summary
static int getSeverityLevel(String severity)
          Get the level for a particular normalized severity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMES

public static final String[] NAMES
Map of number to string


HIGH

public static final String HIGH
High severity name

See Also:
Constant Field Values

HIGH_VALUE

public static final int HIGH_VALUE
High severity value

See Also:
Constant Field Values

MEDIUM_HIGH

public static final String MEDIUM_HIGH
Medium High severity name

See Also:
Constant Field Values

MEDIUM_HIGH_VALUE

public static final int MEDIUM_HIGH_VALUE
Medium High severity value

See Also:
Constant Field Values

MEDIUM

public static final String MEDIUM
Medium severity name

See Also:
Constant Field Values

MEDIUM_VALUE

public static final int MEDIUM_VALUE
Medium severity value name

See Also:
Constant Field Values

MEDIUM_LOW

public static final String MEDIUM_LOW
Medium Low severity name

See Also:
Constant Field Values

MEDIUM_LOW_VALUE

public static final int MEDIUM_LOW_VALUE
Medium Low severity value

See Also:
Constant Field Values

LOW

public static final String LOW
Low severity name

See Also:
Constant Field Values

LOW_VALUE

public static final int LOW_VALUE
Low severity value

See Also:
Constant Field Values

NUMBER_SEVERITIES

public static final int NUMBER_SEVERITIES
Number of severity

See Also:
Constant Field Values
Method Detail

getSeverityLevel

public static int getSeverityLevel(String severity)
Get the level for a particular normalized severity.

Parameters:
severity - the value to convert.
Returns:
the level.


Copyright © 2004-2012 Hudson. All Rights Reserved.