Class AbstractRuleChecker<O>

  • Type Parameters:
    O - The checked object type.
    All Implemented Interfaces:
    cdc.util.debug.Printable

    public abstract class AbstractRuleChecker<O>
    extends AbstractChecker<O>
    Abstract leaf (Rule) checker.
    Author:
    Damien Carbonne
    • Constructor Detail

    • Method Detail

      • getRule

        public Rule getRule()
      • getHeader

        protected abstract String getHeader​(O object)
        Parameters:
        object - The object.
        Returns:
        A string designating the checked object or object part.
      • isEnabled

        public final boolean isEnabled()
        Specified by:
        isEnabled in class AbstractChecker<O>
        Returns:
        true if this checker is enabled.
      • print

        public void print​(PrintStream out,
                          int level)
      • add

        protected final void add​(Issue issue)