hudson.plugins.violations.model
Class Severity

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

public final class Severity
extends java.lang.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 java.lang.String HIGH
          High severity name
static int HIGH_VALUE
          High severity value
static java.lang.String LOW
          Low severity name
static int LOW_VALUE
          Low severity value
static java.lang.String MEDIUM
          Medium severity name
static java.lang.String MEDIUM_HIGH
          Medium High severity name
static int MEDIUM_HIGH_VALUE
          Medium High severity value
static java.lang.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 java.lang.String[] NAMES
          Map of number to string
static int NUMBER_SEVERITIES
          Number of severity
 
Method Summary
static int getSeverityLevel(java.lang.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 java.lang.String[] NAMES
Map of number to string


HIGH

public static final java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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(java.lang.String severity)
Get the level for a particular normalized severity.

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


Copyright © 2004-2012. All Rights Reserved.