ua.gradsoft.javachecker
Class Violations

java.lang.Object
  extended by ua.gradsoft.javachecker.Violations

public class Violations
extends java.lang.Object

Set of violations, found in source


Constructor Summary
Violations()
          Creates a new instance of Violations
 
Method Summary
 void addType(java.lang.String typeOfViolation, java.lang.String category, java.lang.String description, boolean enabledByDefault)
           
 void discovered(java.lang.String typeOfViolation)
           
 boolean enabled(java.lang.String typeOfViolation)
           
 java.lang.String getCategory(java.lang.String typeOfViolation)
           
 int getCounterByName(java.lang.String name)
           
 void readPreferences(JavaFacts facts)
           
 void report(java.io.PrintStream out, ReportFormat format)
           
 void setEnabled(java.lang.String typeOfViolation, boolean value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Violations

public Violations()
Creates a new instance of Violations

Method Detail

addType

public void addType(java.lang.String typeOfViolation,
                    java.lang.String category,
                    java.lang.String description,
                    boolean enabledByDefault)

readPreferences

public void readPreferences(JavaFacts facts)

getCategory

public java.lang.String getCategory(java.lang.String typeOfViolation)

discovered

public void discovered(java.lang.String typeOfViolation)

enabled

public boolean enabled(java.lang.String typeOfViolation)

setEnabled

public void setEnabled(java.lang.String typeOfViolation,
                       boolean value)

getCounterByName

public int getCounterByName(java.lang.String name)

report

public void report(java.io.PrintStream out,
                   ReportFormat format)