Class CheckerContext


  • public class CheckerContext
    extends java.lang.Object
    Stores common context for an AbstractChecker.
    Since:
    jcms-9.0.2
    Version:
    $Revision: 118678 $
    Author:
    Sylvain Devaux
    • 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.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:
        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 tested
        defaultIgnoredList - an optional "hardcoded" ignore list. File will be ignored if its relative path is contained.
        Returns:
        true if given File