Class CheckerContext

java.lang.Object
com.jalios.jcms.tools.CheckerContext

public class CheckerContext extends Object
Stores common context for an AbstractChecker.
Since:
jcms-9.0.2
Author:
Sylvain Devaux
  • Constructor Details

  • Method Details

    • getLangProperties

      public LangProperties getLangProperties()
      Returns:
      the langProperties
    • getProperties

      public LangProperties getProperties()
      Returns:
      the properties
    • getWebappDir

      public File getWebappDir()
      Returns:
      the webappDir
    • isIgnored

      public boolean isIgnored(String propertyPrefix, CheckedFile file) throws IOException
      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 tested
      defaultIgnoredList - an optional "hardcoded" ignore list. File will be ignored if its relative path is contained.
      Returns:
      true if given File