org.codenarc.report
Class XmlReportWriter
java.lang.Object
org.codenarc.report.AbstractReportWriter
org.codenarc.report.XmlReportWriter
- All Implemented Interfaces:
- groovy.lang.GroovyObject, ReportWriter
- Direct Known Subclasses:
- InlineXmlReportWriter
public class XmlReportWriter
- extends AbstractReportWriter
Methods inherited from class org.codenarc.report.AbstractReportWriter |
getCodeNarcVersion, getDescriptionForRule, getFormattedTimestamp, getHtmlDescriptionForRule, getOutputFile, getResourceBundleString, getResourceBundleString, getResourceBundleString, getSortedRules, getWriteToStandardOut, initializeDefaultResourceBundle, isEnabled, setOutputFile, setWriteToStandardOut, writeReport |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlReportWriter
public XmlReportWriter()
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interface groovy.lang.GroovyObject
- Overrides:
getMetaClass
in class AbstractReportWriter
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interface groovy.lang.GroovyObject
- Overrides:
setMetaClass
in class AbstractReportWriter
invokeMethod
public Object invokeMethod(String method,
Object arguments)
- Specified by:
invokeMethod
in interface groovy.lang.GroovyObject
- Overrides:
invokeMethod
in class AbstractReportWriter
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interface groovy.lang.GroovyObject
- Overrides:
getProperty
in class AbstractReportWriter
setProperty
public void setProperty(String property,
Object value)
- Specified by:
setProperty
in interface groovy.lang.GroovyObject
- Overrides:
setProperty
in class AbstractReportWriter
getTitle
public String getTitle()
setTitle
public void setTitle(String value)
getDefaultOutputFile
public String getDefaultOutputFile()
setDefaultOutputFile
public void setDefaultOutputFile(String value)
writeReport
public void writeReport(Writer writer,
AnalysisContext analysisContext,
Results results)
- Specified by:
writeReport
in class AbstractReportWriter
buildReportElement
protected Object buildReportElement()
buildProjectElement
protected Object buildProjectElement(AnalysisContext analysisContext)
buildPackageElements
protected Object buildPackageElements(Object results)
buildPackageElement
protected Object buildPackageElement(Object results)
buildPackageAttributeMap
protected Map buildPackageAttributeMap(Object results)
isRoot
protected boolean isRoot(Object results)
buildFileElement
protected Object buildFileElement(FileResults results)
buildViolationElement
protected Object buildViolationElement(Violation violation)
buildSourceLineElement
protected Object buildSourceLineElement(Violation violation)
buildMessageElement
protected Object buildMessageElement(Violation violation)
buildRulesElement
protected Object buildRulesElement(AnalysisContext analysisContext)
cdata
protected Object cdata(String text)
Copyright © 2012. All Rights Reserved.