|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.violations.ViolationsReport
public class ViolationsReport
This contains the report for the violations of a particular build.
| Nested Class Summary | |
|---|---|
class |
ViolationsReport.TypeReport
Report class for a particular type. |
static class |
ViolationsReport.ViolationsReportIterator
|
| Constructor Summary | |
|---|---|
ViolationsReport()
|
|
| Method Summary | |
|---|---|
void |
doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Graph this report. |
int |
fileCount(java.lang.String type)
Get the number of files in violation for a particular type. |
static ViolationsReport |
findViolationsReport(hudson.model.AbstractBuild<?,?> b)
|
hudson.model.AbstractBuild<?,?> |
getBuild()
Get the build. |
hudson.model.HealthReport |
getBuildHealth()
Get the overall health for the build. |
java.util.List<hudson.model.HealthReport> |
getBuildHealths()
Get a health report for each type. |
ViolationsConfig |
getConfig()
Get the config. |
java.lang.Object |
getDynamic(java.lang.String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
This gets called to display a particular violation file report. |
FileModelProxy |
getFileModelProxy(java.lang.String name)
Get the file model proxt for a file name. |
hudson.model.HealthReport |
getHealthReportFor(java.lang.String type)
Get the health for a particulat type. |
java.lang.String |
getIcon(java.lang.String t)
Get the icon for a type. |
BuildModel |
getModel()
Get the detailed model for the build. |
java.lang.String |
getNumberString(java.lang.String t)
Get the string number for a particular type. |
java.util.Map<java.lang.String,ViolationsReport.TypeReport> |
getTypeReports()
Get a map of type to type reports. |
java.util.Map<java.lang.String,TypeSummary> |
getTypeSummaries()
Get a map of type to type summary report. |
TypeSummary |
getTypeSummary(java.lang.String type)
Get a type summary for a particular type. |
java.util.Map<java.lang.String,java.lang.Integer> |
getViolations()
Get the violation counts for the build. |
static ViolationsReport.ViolationsReportIterator |
iteration(hudson.model.AbstractBuild<?,?> build)
|
ViolationsReport |
previous()
Get the previous ViolationsReport |
void |
setBuild(hudson.model.AbstractBuild<?,?> build)
Set the build. |
void |
setBuildResult()
Set the unstable/failed status of a build based on this violations report. |
void |
setConfig(ViolationsConfig config)
Set the config. |
int |
typeCount(java.lang.String type)
Get the number of violations for a particular type. |
int |
violationCount(java.lang.String type,
java.lang.String filename)
Get the number of violations of a type for a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViolationsReport()
| Method Detail |
|---|
public void setBuild(hudson.model.AbstractBuild<?,?> build)
build - the current build.public hudson.model.AbstractBuild<?,?> getBuild()
public void setConfig(ViolationsConfig config)
config - the config.public ViolationsConfig getConfig()
public java.util.Map<java.lang.String,java.lang.Integer> getViolations()
public hudson.model.HealthReport getBuildHealth()
public java.util.List<hudson.model.HealthReport> getBuildHealths()
public hudson.model.HealthReport getHealthReportFor(java.lang.String type)
type - the type to get the health for.
public BuildModel getModel()
public FileModelProxy getFileModelProxy(java.lang.String name)
name - the name to use.
public java.lang.Object getDynamic(java.lang.String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
token - the current token in the path being parsed.req - the http/stapler request.rsp - the http/stapler response.
public java.util.Map<java.lang.String,TypeSummary> getTypeSummaries()
public TypeSummary getTypeSummary(java.lang.String type)
type - the violation type.
public java.util.Map<java.lang.String,ViolationsReport.TypeReport> getTypeReports()
public void doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException
req - the request paramtersrsp - the response.
java.io.IOException - if there is an error writing the graph.public java.lang.String getNumberString(java.lang.String t)
t - the type
public java.lang.String getIcon(java.lang.String t)
t - the type
public ViolationsReport previous()
public int typeCount(java.lang.String type)
type - the violation type.
public int fileCount(java.lang.String type)
type - the violation type.
public int violationCount(java.lang.String type,
java.lang.String filename)
type - the type in question.filename - the name of the file.
public void setBuildResult()
public static ViolationsReport findViolationsReport(hudson.model.AbstractBuild<?,?> b)
public static ViolationsReport.ViolationsReportIterator iteration(hudson.model.AbstractBuild<?,?> build)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||