Package net.sourceforge.pmd.renderers
Class XSLTRenderer
-
- All Implemented Interfaces:
PropertySource
,Renderer
public class XSLTRenderer extends XMLRenderer
Renderer to XML format with a XSL Transformation applied.- Author:
- Romain Pelisse, belaran@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
static PropertyDescriptor<String>
XSLT_FILENAME
-
Fields inherited from class net.sourceforge.pmd.renderers.XMLRenderer
ENCODING
-
Fields inherited from class net.sourceforge.pmd.renderers.AbstractIncrementingRenderer
configErrors, errors, suppressed
-
Fields inherited from class net.sourceforge.pmd.renderers.AbstractRenderer
description, name, showSuppressedViolations, writer
-
Fields inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
propertyDescriptors, propertyValuesByDescriptor
-
-
Constructor Summary
Constructors Constructor Description XSLTRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
defaultFileExtension()
Return the default filename extension to use.void
end()
This method is at the very end of the Rendering process, afterRenderer.renderFileReport(Report)
.void
start()
This method is called before any source files are processed.-
Methods inherited from class net.sourceforge.pmd.renderers.XMLRenderer
renderFileViolations, setReportFile, setWriter
-
Methods inherited from class net.sourceforge.pmd.renderers.AbstractIncrementingRenderer
renderFileReport, startFileAnalysis
-
Methods inherited from class net.sourceforge.pmd.renderers.AbstractRenderer
determineFileName, flush, getDescription, getName, getPropertySourceType, getWriter, isShowSuppressedViolations, setDescription, setName, setShowSuppressedViolations
-
Methods inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, isPropertyOverridden, setProperty, setProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.properties.PropertySource
definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, isPropertyOverridden, setProperty, setProperty
-
Methods inherited from interface net.sourceforge.pmd.renderers.Renderer
newListener
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
XSLT_FILENAME
public static final PropertyDescriptor<String> XSLT_FILENAME
-
-
Method Detail
-
defaultFileExtension
public String defaultFileExtension()
Description copied from interface:Renderer
Return the default filename extension to use.- Specified by:
defaultFileExtension
in interfaceRenderer
- Overrides:
defaultFileExtension
in classXMLRenderer
- Returns:
- String
-
start
public void start() throws IOException
Description copied from interface:Renderer
This method is called before any source files are processed. The Renderer will have been fully initialized by the time this method is called, so the Writer and other state will be available.- Specified by:
start
in interfaceRenderer
- Overrides:
start
in classXMLRenderer
- Throws:
IOException
-
end
public void end() throws IOException
Description copied from interface:Renderer
This method is at the very end of the Rendering process, afterRenderer.renderFileReport(Report)
.- Specified by:
end
in interfaceRenderer
- Overrides:
end
in classXMLRenderer
- Throws:
IOException
-
-