Package 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 implements groovy.lang.GroovyObject
-
-
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 XmlReportWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected groovy.lang.ClosurebuildFileElement(FileResults results)protected groovy.lang.ClosurebuildMessageElement(Violation violation)protected MapbuildPackageAttributeMap(Results results)protected groovy.lang.ClosurebuildPackageElement(Results results)protected groovy.lang.ClosurebuildPackageElements(Results results)protected groovy.lang.ClosurebuildProjectElement(AnalysisContext analysisContext)protected groovy.lang.ClosurebuildReportElement()protected groovy.lang.ClosurebuildRulesElement(AnalysisContext analysisContext)protected groovy.lang.ClosurebuildSourceLineElement(Violation violation)protected groovy.lang.ClosurebuildViolationElement(Violation violation)StringgetDefaultOutputFile()groovy.lang.MetaClassgetMetaClass()ObjectgetProperty(String property)StringgetTitle()ObjectinvokeMethod(String method, Object arguments)protected booleanisRoot(Results results)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)
-
buildPackageElements
protected groovy.lang.Closure buildPackageElements(Results results)
-
buildPackageElement
protected groovy.lang.Closure buildPackageElement(Results results)
-
isRoot
protected boolean isRoot(Results results)
-
buildFileElement
protected groovy.lang.Closure buildFileElement(FileResults results)
-
buildViolationElement
protected groovy.lang.Closure buildViolationElement(Violation violation)
-
buildSourceLineElement
protected groovy.lang.Closure buildSourceLineElement(Violation violation)
-
buildMessageElement
protected groovy.lang.Closure buildMessageElement(Violation violation)
-
buildRulesElement
protected groovy.lang.Closure buildRulesElement(AnalysisContext analysisContext)
-
-