groovy.lang.GroovyObject, ReportWriterInlineXmlReportWriterpublic class XmlReportWriter extends AbstractReportWriter implements groovy.lang.GroovyObject
BASE_MESSAGES_BUNDLE, CODENARC_URL, CUSTOM_MESSAGES_BUNDLE, customMessagesBundleName, getTimestamp, initializeResourceBundle, resourceBundle, VERSION_FILE| Constructor | Description |
|---|---|
XmlReportWriter() |
| Modifier and Type | Method | Description |
|---|---|---|
protected groovy.lang.Closure |
buildFileElement(FileResults results) |
|
protected groovy.lang.Closure |
buildMessageElement(Violation violation) |
|
protected Map |
buildPackageAttributeMap(Results results) |
|
protected groovy.lang.Closure |
buildPackageElement(Results results) |
|
protected groovy.lang.Closure |
buildPackageElements(Results results) |
|
protected groovy.lang.Closure |
buildProjectElement(AnalysisContext analysisContext) |
|
protected groovy.lang.Closure |
buildReportElement() |
|
protected groovy.lang.Closure |
buildRulesElement(AnalysisContext analysisContext) |
|
protected groovy.lang.Closure |
buildSourceLineElement(Violation violation) |
|
protected groovy.lang.Closure |
buildViolationElement(Violation violation) |
|
String |
getDefaultOutputFile() |
|
groovy.lang.MetaClass |
getMetaClass() |
|
Object |
getProperty(String property) |
|
String |
getTitle() |
|
Object |
invokeMethod(String method,
Object arguments) |
|
protected boolean |
isRoot(Results results) |
|
void |
setDefaultOutputFile(String value) |
|
void |
setMetaClass(groovy.lang.MetaClass mc) |
|
void |
setProperty(String property,
Object value) |
|
void |
setTitle(String value) |
|
void |
writeReport(Writer writer,
AnalysisContext analysisContext,
Results results) |
getCodeNarcVersion, getDescriptionForRule, getFormattedTimestamp, getHtmlDescriptionForRule, getOutputFile, getResourceBundleString, getResourceBundleString, getResourceBundleString, getSortedRules, getWriteToStandardOut, initializeDefaultResourceBundle, isEnabled, setOutputFile, setWriteToStandardOut, writeReportpublic groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectgetMetaClass in class AbstractReportWriterpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectsetMetaClass in class AbstractReportWriterpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class AbstractReportWriterpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class AbstractReportWriterpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class AbstractReportWriterpublic String getTitle()
public void setTitle(String value)
public String getDefaultOutputFile()
public void setDefaultOutputFile(String value)
public void writeReport(Writer writer, AnalysisContext analysisContext, Results results)
writeReport in class AbstractReportWriterprotected groovy.lang.Closure buildReportElement()
protected groovy.lang.Closure buildProjectElement(AnalysisContext analysisContext)
protected groovy.lang.Closure buildPackageElements(Results results)
protected groovy.lang.Closure buildPackageElement(Results results)
protected boolean isRoot(Results results)
protected groovy.lang.Closure buildFileElement(FileResults results)
protected groovy.lang.Closure buildViolationElement(Violation violation)
protected groovy.lang.Closure buildSourceLineElement(Violation violation)
protected groovy.lang.Closure buildMessageElement(Violation violation)
protected groovy.lang.Closure buildRulesElement(AnalysisContext analysisContext)
Copyright © 2019. All rights reserved.