com.atlassian.jira.functest.config
Class ConfigurationChecker

java.lang.Object
  extended by com.atlassian.jira.functest.config.ConfigurationChecker

public class ConfigurationChecker
extends Object

Object that can be used to check the state of some JIRA XML. The checks are actually delegated off to the configured ConfigurationCheck instance.

Since:
v4.0

Nested Class Summary
static class ConfigurationChecker.CheckResult
           
 
Constructor Summary
ConfigurationChecker(File root, Collection<? extends ConfigurationCheck> checks)
           
 
Method Summary
 ConfigurationChecker.CheckResult check()
           
static ConfigurationChecker createDefaultChecker()
           
static ConfigurationChecker createDefaultChecker(File root)
           
 List<ConfigurationCheck> getConfigurationChecks()
           
 List<org.apache.commons.io.filefilter.IOFileFilter> getExcludes()
           
 File getRoot()
           
 int getVersion()
           
 boolean isCache()
           
 void setCache(boolean cache)
           
 void setConfigurationChecks(Collection<? extends ConfigurationCheck> configurationChecks)
           
 void setExcludes(Collection<org.apache.commons.io.filefilter.IOFileFilter> excludes)
           
 void setRoot(File root)
           
 void setVersion(int version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationChecker

public ConfigurationChecker(File root,
                            Collection<? extends ConfigurationCheck> checks)
Method Detail

getRoot

public File getRoot()

setRoot

public void setRoot(File root)

getConfigurationChecks

public List<ConfigurationCheck> getConfigurationChecks()

setConfigurationChecks

public void setConfigurationChecks(Collection<? extends ConfigurationCheck> configurationChecks)

getExcludes

public List<org.apache.commons.io.filefilter.IOFileFilter> getExcludes()

setExcludes

public void setExcludes(Collection<org.apache.commons.io.filefilter.IOFileFilter> excludes)

isCache

public boolean isCache()

setCache

public void setCache(boolean cache)

getVersion

public int getVersion()

setVersion

public void setVersion(int version)

createDefaultChecker

public static ConfigurationChecker createDefaultChecker()

createDefaultChecker

public static ConfigurationChecker createDefaultChecker(File root)

check

public ConfigurationChecker.CheckResult check()


Copyright © 2002-2012 Atlassian. All Rights Reserved.