Package se.bjurr.violations.lib.model
Class Violation
- java.lang.Object
-
- se.bjurr.violations.lib.model.Violation
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Violation>
public class Violation extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Violation>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classViolation.ViolationBuilder
-
Constructor Summary
Constructors Constructor Description Violation()Violation(Violation v)Violation(Violation.ViolationBuilder vb)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Violation o)booleanequals(java.lang.Object obj)static java.lang.StringfrontSlashes(java.lang.String in)java.lang.StringgetCategory()java.lang.IntegergetColumn()java.lang.IntegergetEndColumn()java.lang.IntegergetEndLine()java.lang.StringgetFile()java.lang.StringgetGroup()java.lang.StringgetMessage()ParsergetParser()java.lang.StringgetReporter()java.lang.StringgetRule()SEVERITYgetSeverity()java.lang.StringgetSource()The thing that contains the violations.java.util.Map<java.lang.String,java.lang.String>getSpecifics()Some parsers may find values that are specific to that kind of analysis.java.lang.IntegergetStartLine()inthashCode()voidsetReporter(java.lang.String reporter)java.lang.StringtoString()static Violation.ViolationBuilderviolationBuilder()
-
-
-
Field Detail
-
NO_FILE
public static final java.lang.String NO_FILE
Afileused when there is no file specified in the parsed report.- See Also:
- Constant Field Values
-
NO_LINE
public static final java.lang.Integer NO_LINE
AstartLineused when there is no line specified in the parsed report.
-
-
Constructor Detail
-
Violation
public Violation()
-
Violation
public Violation(Violation.ViolationBuilder vb)
-
Violation
public Violation(Violation v)
-
-
Method Detail
-
violationBuilder
public static Violation.ViolationBuilder violationBuilder()
-
frontSlashes
public static java.lang.String frontSlashes(java.lang.String in)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getColumn
public java.lang.Integer getColumn()
-
getEndLine
public java.lang.Integer getEndLine()
-
getEndColumn
public java.lang.Integer getEndColumn()
-
getFile
public java.lang.String getFile()
-
getMessage
public java.lang.String getMessage()
-
getParser
public Parser getParser()
-
setReporter
public void setReporter(java.lang.String reporter)
-
getReporter
public java.lang.String getReporter()
-
getRule
public java.lang.String getRule()
-
getCategory
public java.lang.String getCategory()
-
getSeverity
public SEVERITY getSeverity()
-
getSource
public java.lang.String getSource()
The thing that contains the violations. Like a Java/C# class.
-
getSpecifics
public java.util.Map<java.lang.String,java.lang.String> getSpecifics()
Some parsers may find values that are specific to that kind of analysis. Those can be made available through this map.
-
getStartLine
public java.lang.Integer getStartLine()
-
getGroup
public java.lang.String getGroup()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-