org.codehaus.mojo.macker
Class LinkedMacker

java.lang.Object
  extended by org.codehaus.mojo.macker.LinkedMacker
All Implemented Interfaces:
Macker

public class LinkedMacker
extends Object
implements Macker

Delegator to the Macker tool.


Constructor Summary
LinkedMacker()
           
 
Method Summary
 void addClass(File clazz)
          Add a class to be checked by Macker.
 void addRulesFile(File rule)
          Add a rule file to be used by Macker.
 void check()
           
 void setAngerThreshold(String anger)
           
 void setPrintMaxMessages(int maxMsg)
           
 void setPrintThreshold(String print)
           
 void setVariable(String name, String value)
           
 void setVerbose(boolean verbose)
           
 void setXmlReportFile(File report)
          Set the XML report file to be used by Macker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedMacker

public LinkedMacker()
Method Detail

addClass

public void addClass(File clazz)
              throws IOException,
                     MojoExecutionException
Description copied from interface: Macker
Add a class to be checked by Macker.

Specified by:
addClass in interface Macker
Throws:
IOException - if there's a problem reading a file
MojoExecutionException - if there's a problem parsing a class

addRulesFile

public void addRulesFile(File rule)
                  throws IOException,
                         MojoExecutionException
Description copied from interface: Macker
Add a rule file to be used by Macker.

Specified by:
addRulesFile in interface Macker
Throws:
IOException - if there's a problem reading a file
MojoExecutionException - if there's a problem parsing a rule file

check

public void check()
           throws MojoExecutionException,
                  MojoFailureException
Specified by:
check in interface Macker
Throws:
MojoExecutionException
MojoFailureException

setAngerThreshold

public void setAngerThreshold(String anger)
Specified by:
setAngerThreshold in interface Macker

setPrintMaxMessages

public void setPrintMaxMessages(int maxMsg)
Specified by:
setPrintMaxMessages in interface Macker

setPrintThreshold

public void setPrintThreshold(String print)
Specified by:
setPrintThreshold in interface Macker

setVariable

public void setVariable(String name,
                        String value)
Specified by:
setVariable in interface Macker

setVerbose

public void setVerbose(boolean verbose)
Specified by:
setVerbose in interface Macker

setXmlReportFile

public void setXmlReportFile(File report)
Description copied from interface: Macker
Set the XML report file to be used by Macker.

Specified by:
setXmlReportFile in interface Macker


Copyright © 2007-2010 CodeHaus. All Rights Reserved.