Package com.jalios.jcms.tools
Class CheckerContext
- java.lang.Object
-
- com.jalios.jcms.tools.CheckerContext
-
public class CheckerContext extends java.lang.ObjectStores common context for anAbstractChecker.- Since:
- jcms-9.0.2
- Author:
- Sylvain Devaux
-
-
Constructor Summary
Constructors Constructor Description CheckerContext(java.io.File webappDir, LangProperties properties, LangProperties langProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LangPropertiesgetLangProperties()LangPropertiesgetProperties()java.io.FilegetWebappDir()booleanisIgnored(java.lang.String propertyPrefix, CheckedFile file)Allows to exclude some files, or directories, given the property that represent a particular test method.booleanisIgnored(java.lang.String propertyPrefix, CheckedFile file, java.util.Collection<java.lang.String> defaultIgnoredList)Allows to exclude some files, or directories, given the property that represent a particular test method.
-
-
-
Constructor Detail
-
CheckerContext
public CheckerContext(java.io.File webappDir, LangProperties properties, LangProperties langProperties)
-
-
Method Detail
-
getLangProperties
public LangProperties getLangProperties()
- Returns:
- the langProperties
-
getProperties
public LangProperties getProperties()
- Returns:
- the properties
-
getWebappDir
public java.io.File getWebappDir()
- Returns:
- the webappDir
-
isIgnored
public boolean isIgnored(java.lang.String propertyPrefix, CheckedFile file) throws java.io.IOExceptionAllows to exclude some files, or directories, given the property that represent a particular test method.- Parameters:
propertyPrefix- the prefix of the property to ignore a custom rule.file- the file being tested- Returns:
- true if given File
- Throws:
java.io.IOException- ...
-
isIgnored
public boolean isIgnored(java.lang.String propertyPrefix, CheckedFile file, java.util.Collection<java.lang.String> defaultIgnoredList)Allows to exclude some files, or directories, given the property that represent a particular test method.- Parameters:
propertyPrefix- the prefix of the property to ignore a custom rule.file- the file being testeddefaultIgnoredList- an optional "hardcoded" ignore list. File will be ignored if its relative path is contained.- Returns:
- true if given File
-
-