org.jenkinsci.plugins.cflint.parser
Class LintIssue

java.lang.Object
  extended by org.jenkinsci.plugins.cflint.parser.LintIssue

public class LintIssue
extends Object

Represents a single issue in a Lint XML file.


Constructor Summary
LintIssue()
           
 
Method Summary
 void addLocation(Location location)
           
 String getCategory()
           
 String getErrorLine1()
           
 String getErrorLine2()
           
 String getExplanation()
           
 String getId()
           
 List<Location> getLocations()
           
 String getMessage()
           
 int getPriority()
           
 String getSeverity()
           
 void setCategory(String category)
           
 void setErrorLine1(String errorLine1)
           
 void setErrorLine2(String errorLine2)
           
 void setExplanation(String explanation)
           
 void setId(String id)
           
 void setMessage(String message)
           
 void setPriority(int priority)
           
 void setSeverity(String severity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LintIssue

public LintIssue()
Method Detail

getId

public String getId()
Returns:
The Lint rule ID.

setId

public void setId(String id)
Parameters:
id - The Lint rule ID.

getSeverity

public String getSeverity()
Returns:
The issue severity.

setSeverity

public void setSeverity(String severity)
Parameters:
severity - The issue severity.

getCategory

public String getCategory()
Returns:
The issue category.

setCategory

public void setCategory(String category)
Parameters:
category - The issue category.

getPriority

public int getPriority()
Returns:
Relative issue priority.

setPriority

public void setPriority(int priority)
Parameters:
priority - Relative issue priority.

getExplanation

public String getExplanation()
Returns:
Generic explanation for this issue type.

setExplanation

public void setExplanation(String explanation)
Parameters:
explanation - Generic explanation for this issue type.

getMessage

public String getMessage()
Returns:
The issue description.

setMessage

public void setMessage(String message)
Parameters:
message - The issue description.

getErrorLine1

public String getErrorLine1()
Returns:
First error line, pinpointing the issue location.

setErrorLine1

public void setErrorLine1(String errorLine1)
Parameters:
errorLine1 - First error line, pinpointing the issue location.

getErrorLine2

public String getErrorLine2()
Returns:
Second error line, pinpointing the issue location.

setErrorLine2

public void setErrorLine2(String errorLine2)
Parameters:
errorLine2 - Second error line, pinpointing the issue location.

getLocations

public List<Location> getLocations()
Returns:
List of locations the issue was found in.

addLocation

public void addLocation(Location location)
Parameters:
location - Location to add to this issue.


Copyright © 2004-2014. All Rights Reserved.