org.codehaus.mojo.cobertura.configuration
Class ConfigCheck

java.lang.Object
  extended by org.codehaus.mojo.cobertura.configuration.ConfigCheck

public class ConfigCheck
extends Object

The Configuration for Check Settings.

Author:
Joakim Erdfelt

Constructor Summary
ConfigCheck()
           
 
Method Summary
 void addRegex(net.sourceforge.cobertura.ant.Regex regex)
          add a regex to the set used to scan the reports.
 net.sourceforge.cobertura.ant.Regex createRegex()
          Create a regex object for eventual inclusion.
 String getBranchRate()
           
 String getLineRate()
           
 String getMaxmem()
          Get the maxmem setting.
 String getPackageBranchRate()
           
 String getPackageLineRate()
           
 Set<net.sourceforge.cobertura.ant.Regex> getRegexes()
           
 String getTotalBranchRate()
           
 String getTotalLineRate()
           
 boolean isHaltOnFailure()
           
 void setBranchRate(String branchRate)
           
 void setHaltOnFailure(boolean haltOnFailure)
           
 void setLineRate(String lineRate)
           
 void setMaxmem(String maxmem)
          Sets the max memory for the JVM used to run the CheckTask task.
 void setRegexes(Set<net.sourceforge.cobertura.ant.Regex> regexes)
           
 void setTotalBranchRate(String totalBranchRate)
           
 void setTotalLineRate(String totalLineRate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigCheck

public ConfigCheck()
Method Detail

addRegex

public void addRegex(net.sourceforge.cobertura.ant.Regex regex)
add a regex to the set used to scan the reports.

Parameters:
regex - the regex to add.

createRegex

public net.sourceforge.cobertura.ant.Regex createRegex()
Create a regex object for eventual inclusion.

Returns:
the regex

getBranchRate

public String getBranchRate()
Returns:
Returns the branchRate.

getLineRate

public String getLineRate()
Returns:
Returns the lineRate.

getRegexes

public Set<net.sourceforge.cobertura.ant.Regex> getRegexes()
Returns:
Returns the regexes.

getTotalBranchRate

public String getTotalBranchRate()
Returns:
Returns the totalBranchRate.

getTotalLineRate

public String getTotalLineRate()
Returns:
Returns the totalLineRate.

isHaltOnFailure

public boolean isHaltOnFailure()
Returns:
Returns the haltOnFailure.

setBranchRate

public void setBranchRate(String branchRate)
Parameters:
branchRate - The branchRate to set.

setHaltOnFailure

public void setHaltOnFailure(boolean haltOnFailure)
Parameters:
haltOnFailure - The haltOnFailure to set.

setLineRate

public void setLineRate(String lineRate)
Parameters:
lineRate - The lineRate to set.

setRegexes

public void setRegexes(Set<net.sourceforge.cobertura.ant.Regex> regexes)
Parameters:
regexes - The regexes to set.

setTotalBranchRate

public void setTotalBranchRate(String totalBranchRate)
Parameters:
totalBranchRate - The totalBranchRate to set.

setTotalLineRate

public void setTotalLineRate(String totalLineRate)
Parameters:
totalLineRate - The totalLineRate to set.

getPackageBranchRate

public String getPackageBranchRate()
Returns:
the package branch rate.

getPackageLineRate

public String getPackageLineRate()
Returns:
the package line rate.

getMaxmem

public String getMaxmem()
Get the maxmem setting.

Returns:
the maxmem setting.

setMaxmem

public void setMaxmem(String maxmem)
Sets the max memory for the JVM used to run the CheckTask task. The format is "". Ex: "64m" where 64 is the value, and "m" denotes megabytes.

Parameters:
maxmem - the value to which maxmem will be set


Copyright © 2005-2014 Codehaus. All Rights Reserved.