net.objectlab.qalab.parser
Class PMDStatMerge

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by net.objectlab.qalab.parser.BaseStatMerge
          extended by net.objectlab.qalab.parser.CheckstyleOrPMDBaseMerge
              extended by net.objectlab.qalab.parser.PMDStatMerge
All Implemented Interfaces:
StatMerger, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class PMDStatMerge
extends CheckstyleOrPMDBaseMerge

This class is able to read the XML output from PMD and integrate the violation results into our "qalab" xml format.

See Also:
PMD at SourceForge
 

Constructor Summary
PMDStatMerge()
           
 
Method Summary
protected  java.lang.String getFileNameAttribute()
           
protected  java.lang.String getFileTag()
           
 java.lang.String getType()
           
protected  java.lang.String getViolationTag()
           
 
Methods inherited from class net.objectlab.qalab.parser.CheckstyleOrPMDBaseMerge
endElement, setFileName, startElement
 
Methods inherited from class net.objectlab.qalab.parser.BaseStatMerge
addFileStatistics, addNewResults, addTotalStatistics, getFileCount, getFileStatistics, getMergerTimeStamp, getSrcDir, getTaskLogger, getTotalStatistics, incrementFileCount, isQuiet, mergeStats, preProcessSource, resetFileStatistics, setCurrentFile, setMergerTimeStamp, setQuiet, setSrcDir, setTaskLogger, setTotalStatistics
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PMDStatMerge

public PMDStatMerge()
Method Detail

getFileTag

protected final java.lang.String getFileTag()
Specified by:
getFileTag in class CheckstyleOrPMDBaseMerge
Returns:
"file"

getFileNameAttribute

protected final java.lang.String getFileNameAttribute()
Specified by:
getFileNameAttribute in class CheckstyleOrPMDBaseMerge
Returns:
classname

getViolationTag

protected final java.lang.String getViolationTag()
Specified by:
getViolationTag in class CheckstyleOrPMDBaseMerge
Returns:
tag for a violation/error

getType

public final java.lang.String getType()
Returns:
pmd