hudson.plugins.dry.parser
Class DuplicationParserRegistry

java.lang.Object
  extended by hudson.plugins.dry.parser.DuplicationParserRegistry
All Implemented Interfaces:
hudson.plugins.analysis.core.AnnotationParser, Serializable

public class DuplicationParserRegistry
extends Object
implements hudson.plugins.analysis.core.AnnotationParser

Registry for duplication parsers.

Author:
Ulli Hafner
See Also:
Serialized Form

Constructor Summary
DuplicationParserRegistry(int normalThreshold, int highThreshold, String defaultEncoding)
          Creates a new instance of DuplicationParserRegistry.
DuplicationParserRegistry(int normalThreshold, int highThreshold, String workspacePath, String defaultEncoding)
          Creates a new instance of DuplicationParserRegistry.
 
Method Summary
 Collection<hudson.plugins.analysis.util.model.FileAnnotation> parse(File file, String moduleName)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuplicationParserRegistry

public DuplicationParserRegistry(int normalThreshold,
                                 int highThreshold,
                                 String defaultEncoding)
Creates a new instance of DuplicationParserRegistry.

Parameters:
highThreshold - minimum number of duplicate lines for high priority warnings
normalThreshold - minimum number of duplicate lines for normal priority warnings
defaultEncoding - default encoding of the files

DuplicationParserRegistry

public DuplicationParserRegistry(int normalThreshold,
                                 int highThreshold,
                                 String workspacePath,
                                 String defaultEncoding)
Creates a new instance of DuplicationParserRegistry.

Parameters:
highThreshold - minimum number of duplicate lines for high priority warnings
normalThreshold - minimum number of duplicate lines for normal priority warnings
workspacePath - path to the workspace files
defaultEncoding - default encoding of the files
Method Detail

parse

public Collection<hudson.plugins.analysis.util.model.FileAnnotation> parse(File file,
                                                                           String moduleName)
                                                                    throws InvocationTargetException

Specified by:
parse in interface hudson.plugins.analysis.core.AnnotationParser
Throws:
InvocationTargetException


Copyright © 2004-2013 Hudson. All Rights Reserved.