Class 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
    • Field Detail

      • NO_FILE

        public static final java.lang.String NO_FILE
        A file used 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
        A startLine used when there is no line specified in the parsed report.
    • Method Detail

      • frontSlashes

        public static java.lang.String frontSlashes​(java.lang.String in)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.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:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(Violation o)
        Specified by:
        compareTo in interface java.lang.Comparable<Violation>