public class CheckerContext
extends java.lang.Object
AbstractChecker
.Constructor and Description |
---|
CheckerContext(java.io.File webappDir,
LangProperties properties,
LangProperties langProperties) |
Modifier and Type | Method and Description |
---|---|
LangProperties |
getLangProperties() |
LangProperties |
getProperties() |
java.io.File |
getWebappDir() |
boolean |
isIgnored(java.lang.String propertyPrefix,
CheckedFile file)
Allows to exclude some files, or directories, given the property that
represent a particular test method.
|
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.
|
public CheckerContext(java.io.File webappDir, LangProperties properties, LangProperties langProperties)
public LangProperties getLangProperties()
public LangProperties getProperties()
public java.io.File getWebappDir()
public boolean isIgnored(java.lang.String propertyPrefix, CheckedFile file) throws java.io.IOException
propertyPrefix
- the prefix of the property to ignore a custom rule.file
- the file being testedjava.io.IOException
- ...public boolean isIgnored(java.lang.String propertyPrefix, CheckedFile file, java.util.Collection<java.lang.String> defaultIgnoredList)
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.Copyright © 2001-2017 Jalios SA. All Rights Reserved.