Class SimianParser
- java.lang.Object
-
- edu.hm.hafner.analysis.IssueParser
-
- edu.hm.hafner.analysis.parser.dry.AbstractDryParser<Set>
-
- edu.hm.hafner.analysis.parser.dry.simian.SimianParser
-
- All Implemented Interfaces:
Serializable
public class SimianParser extends AbstractDryParser<Set>
A parser for Simian XML files.- Author:
- Ullrich Hafner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimianParser()Creates a new instance ofSimianParser.SimianParser(int highThreshold, int normalThreshold)Creates a new instance ofSimianParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureParser(org.apache.commons.digester3.Digester digester)Configures the Digester parser.protected ReportconvertDuplicationsToIssues(List<Set> duplications, IssueBuilder issueBuilder)Converts the parsed duplications from the original format to anReportinstance.-
Methods inherited from class edu.hm.hafner.analysis.parser.dry.AbstractDryParser
getPriority, parse
-
Methods inherited from class edu.hm.hafner.analysis.IssueParser
accepts, equalsIgnoreCase, isXmlFile, parseFile
-
-
-
-
Constructor Detail
-
SimianParser
public SimianParser(int highThreshold, int normalThreshold)Creates a new instance ofSimianParser.- Parameters:
highThreshold- minimum number of duplicate lines for high priority warningsnormalThreshold- minimum number of duplicate lines for normal priority warnings
-
SimianParser
public SimianParser()
Creates a new instance ofSimianParser. ThehighThresholdis set to 50, thenormalThresholdis set to 25.
-
-
Method Detail
-
configureParser
protected void configureParser(org.apache.commons.digester3.Digester digester)
Description copied from class:AbstractDryParserConfigures the Digester parser. Register all rules that are required to parse the file.- Specified by:
configureParserin classAbstractDryParser<Set>- Parameters:
digester- the parser to configure
-
convertDuplicationsToIssues
protected Report convertDuplicationsToIssues(List<Set> duplications, IssueBuilder issueBuilder)
Description copied from class:AbstractDryParserConverts the parsed duplications from the original format to anReportinstance.- Specified by:
convertDuplicationsToIssuesin classAbstractDryParser<Set>- Parameters:
duplications- the parsed warningsissueBuilder- the issue builder to use- Returns:
- the converted warnings
-
-