Class DateFormatStringChecker.Rule

java.lang.Object
edu.umd.cs.findbugs.detect.DateFormatStringChecker.Rule
Enclosing class:
DateFormatStringChecker

private static final class DateFormatStringChecker.Rule extends Object
Contains special flags that can trigger check (triggers); property of the rule (isRequired - whether flag should be contained or be absent); flags to be checked (checkItems) and a bypassing flag (ignoreFlag - whether a rule can be skipped if such flag is included)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final List<String>
     
    private final String
     
    private final boolean
     
    private final List<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Rule(List<String> checkItems, String ignoreFlag, boolean isRequired, List<String> triggers)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) boolean
    containsAny(String dateFormat, List<String> listOfFlags)
    dateFormat is being checked for existence of any element from listOfFlags
    (package private) boolean
    verify(String dateFormat)
    dateFormat is being checked for existence of any keywords (triggering flags) to start the check (if ignoreFlag flag was found - further checking is skipped); if isRequired property is: - true: dateFormat is checked for existence of flags (this.flags) - false: dateFormat is checked for absence of flags (this.flags)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • isRequired

      private final boolean isRequired
    • ignoreFlag

      private final String ignoreFlag
    • checkItems

      private final List<String> checkItems
    • triggers

      private final List<String> triggers
  • Constructor Details

  • Method Details

    • containsAny

      boolean containsAny(String dateFormat, List<String> listOfFlags)
      dateFormat is being checked for existence of any element from listOfFlags
    • verify

      boolean verify(String dateFormat)
      dateFormat is being checked for existence of any keywords (triggering flags) to start the check (if ignoreFlag flag was found - further checking is skipped); if isRequired property is: - true: dateFormat is checked for existence of flags (this.flags) - false: dateFormat is checked for absence of flags (this.flags)