All Implemented Interfaces:
Serializable

public class SimianParser extends AbstractDryParser<Set>
A parser for Simian XML files.
Author:
Ullrich Hafner
See Also:
  • Constructor Details

    • SimianParser

      public SimianParser(int highThreshold, int normalThreshold)
      Creates a new instance of SimianParser.
      Parameters:
      highThreshold - minimum number of duplicate lines for high priority warnings
      normalThreshold - minimum number of duplicate lines for normal priority warnings
    • SimianParser

      public SimianParser()
      Creates a new instance of SimianParser. The highThreshold is set to 50, the normalThreshold is set to 25.
  • Method Details

    • configureParser

      protected void configureParser(org.apache.commons.digester3.Digester digester)
      Description copied from class: AbstractDryParser
      Configures the Digester parser. Register all rules that are required to parse the file.
      Specified by:
      configureParser in class AbstractDryParser<Set>
      Parameters:
      digester - the parser to configure
    • convertDuplicationsToIssues

      protected Report convertDuplicationsToIssues(List<Set> duplications, IssueBuilder issueBuilder)
      Description copied from class: AbstractDryParser
      Converts the parsed duplications from the original format to an Report instance.
      Specified by:
      convertDuplicationsToIssues in class AbstractDryParser<Set>
      Parameters:
      duplications - the parsed warnings
      issueBuilder - the issue builder to use
      Returns:
      the converted warnings