org.jenkinsci.plugins.DependencyCheck.parser
Class Warning

java.lang.Object
  extended by hudson.plugins.analysis.util.model.AbstractAnnotation
      extended by org.jenkinsci.plugins.DependencyCheck.parser.Warning
All Implemented Interfaces:
hudson.plugins.analysis.util.model.FileAnnotation, Serializable, Comparable<hudson.plugins.analysis.util.model.FileAnnotation>

public class Warning
extends hudson.plugins.analysis.util.model.AbstractAnnotation

A serializable Java Bean class representing a warning.

Note: this class has a natural ordering that is inconsistent with equals.

Author:
Steve Springett (steve.springett@owasp.org)
See Also:
Serialized Form

Field Summary
static String ORIGIN
           
 
Fields inherited from class hudson.plugins.analysis.util.model.AbstractAnnotation
WORKSPACE_FILES
 
Constructor Summary
Warning(hudson.plugins.analysis.util.model.Priority priority, org.owasp.dependencycheck.dependency.Vulnerability vulnerability)
          Creates a new instance of Warning.
 
Method Summary
 String getSeverity()
          Analysis-core only supports Priority, not Severity.
 String getToolTip()
          
 org.owasp.dependencycheck.dependency.Vulnerability getVulnerability()
           
 
Methods inherited from class hudson.plugins.analysis.util.model.AbstractAnnotation
addLineRange, canDisplayFile, compareTo, equals, getCategory, getColumnEnd, getColumnStart, getContextHashCode, getFileName, getKey, getLineRanges, getLinkLineNumber, getLinkName, getMessage, getModuleName, getOrigin, getPackageName, getPathName, getPrimaryLineNumber, getPriority, getShortFileName, getTempName, getType, hashCode, hasPackageName, intern, intern, isInConsoleLog, setColumnPosition, setColumnPosition, setContextHashCode, setFileName, setModuleName, setOrigin, setPackageName, setPathName, setPriority, superReadResolve, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ORIGIN

public static final String ORIGIN
See Also:
Constant Field Values
Constructor Detail

Warning

public Warning(hudson.plugins.analysis.util.model.Priority priority,
               org.owasp.dependencycheck.dependency.Vulnerability vulnerability)
Creates a new instance of Warning.

Parameters:
priority - the priority
vulnerability - the vulnerability to make the annotation from
Method Detail

getVulnerability

public org.owasp.dependencycheck.dependency.Vulnerability getVulnerability()

getSeverity

public String getSeverity()
Analysis-core only supports Priority, not Severity. So we use Priority internally and map that to Severity. This method takes the priority that was assigned to the warning, and returns the localized string representation of the corresponding severity

Returns:
a String representation of the warnings severity

getToolTip

public String getToolTip()



Copyright © 2012-2015 OWASP. All Rights Reserved.