Package org.codenarc.report
Class BaselineXmlReportWriter
- java.lang.Object
-
- org.codenarc.report.AbstractReportWriter
-
- org.codenarc.report.BaselineXmlReportWriter
-
- All Implemented Interfaces:
groovy.lang.GroovyObject,ReportWriter
public class BaselineXmlReportWriter extends AbstractReportWriter
-
-
Field Summary
-
Fields inherited from class org.codenarc.report.AbstractReportWriter
BASE_MESSAGES_BUNDLE, CODENARC_URL, CUSTOM_MESSAGES_BUNDLE, customMessagesBundleName, getTimestamp, initializeResourceBundle, resourceBundle, VERSION_FILE
-
-
Constructor Summary
Constructors Constructor Description BaselineXmlReportWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected groovy.lang.ClosurebuildFileElement(FileResults results)protected groovy.lang.ClosurebuildFileElement(Results results)protected groovy.lang.ClosurebuildFileElements(Results results)protected groovy.lang.ClosurebuildMessageElement(Violation violation)protected groovy.lang.ClosurebuildProjectElement(AnalysisContext analysisContext)protected groovy.lang.ClosurebuildReportElement()protected groovy.lang.ClosurebuildViolationElement(Violation violation)StringgetDefaultOutputFile()groovy.lang.MetaClassgetMetaClass()ObjectgetProperty(String property)StringgetTitle()ObjectinvokeMethod(String method, Object arguments)voidsetDefaultOutputFile(String value)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(String property, Object value)voidsetTitle(String value)voidwriteReport(Writer writer, AnalysisContext analysisContext, Results results)-
Methods inherited from class org.codenarc.report.AbstractReportWriter
getCodeNarcVersion, getDescriptionForRule, getFormattedTimestamp, getHtmlDescriptionForRule, getOutputFile, getResourceBundleString, getResourceBundleString, getResourceBundleString, getSortedRules, getWriteToStandardOut, initializeDefaultResourceBundle, isEnabled, setOutputFile, setWriteToStandardOut, writeReport
-
-
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
getMetaClassin classAbstractReportWriter
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
setMetaClassin classAbstractReportWriter
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classAbstractReportWriter
-
getProperty
public Object getProperty(String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classAbstractReportWriter
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classAbstractReportWriter
-
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:
writeReportin classAbstractReportWriter
-
buildReportElement
protected groovy.lang.Closure buildReportElement()
-
buildProjectElement
protected groovy.lang.Closure buildProjectElement(AnalysisContext analysisContext)
-
buildFileElements
protected groovy.lang.Closure buildFileElements(Results results)
-
buildFileElement
protected groovy.lang.Closure buildFileElement(Results results)
-
buildFileElement
protected groovy.lang.Closure buildFileElement(FileResults results)
-
buildViolationElement
protected groovy.lang.Closure buildViolationElement(Violation violation)
-
buildMessageElement
protected groovy.lang.Closure buildMessageElement(Violation violation)
-
-