Package com.jalios.jcms.tools
Class CheckerContext
java.lang.Object
com.jalios.jcms.tools.CheckerContext
Stores common context for an
AbstractChecker.- Since:
- jcms-9.0.2
- Author:
- Sylvain Devaux
-
Constructor Summary
ConstructorsConstructorDescriptionCheckerContext(File webappDir, LangProperties properties, LangProperties langProperties) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisIgnored(String propertyPrefix, CheckedFile file) Allows to exclude some files, or directories, given the property that represent a particular test method.booleanisIgnored(String propertyPrefix, CheckedFile file, Collection<String> defaultIgnoredList) Allows to exclude some files, or directories, given the property that represent a particular test method.
-
Constructor Details
-
CheckerContext
-
-
Method Details
-
getLangProperties
- Returns:
- the langProperties
-
getProperties
- Returns:
- the properties
-
getWebappDir
- Returns:
- the webappDir
-
isIgnored
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 tested- Returns:
- true if given File
- Throws:
IOException- ...
-
isIgnored
public boolean isIgnored(String propertyPrefix, CheckedFile file, Collection<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
-