ua.gradsoft.javachecker
Class TypeOfViolation

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

public class TypeOfViolation
extends java.lang.Object

Type of violation


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

Constructor Detail

TypeOfViolation

public TypeOfViolation(java.lang.String name,
                       java.lang.String category,
                       java.lang.String description,
                       boolean enabledByDefault)
Creates a new instance of ViolationSummary

Parameters:
name - - name of such statistics
category - - category of checks.
Method Detail

readPreferences

public void readPreferences(JavaFacts facts)

getName

public java.lang.String getName()

getCategory

public java.lang.String getCategory()

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

getCounter

public int getCounter()

increment

public void increment()

report

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