Package net.sourceforge.pmd.renderers
Class AbstractRenderer
- java.lang.Object
-
- net.sourceforge.pmd.properties.AbstractPropertySource
-
- net.sourceforge.pmd.renderers.AbstractRenderer
-
- All Implemented Interfaces:
PropertySource,Renderer
- Direct Known Subclasses:
AbstractAccumulatingRenderer,AbstractIncrementingRenderer,EmptyRenderer
public abstract class AbstractRenderer extends AbstractPropertySource implements Renderer
Abstract base class forRendererimplementations.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringdescriptionprotected java.lang.Stringnameprotected booleanshowSuppressedViolationsprotected java.io.Writerwriter-
Fields inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
propertyDescriptors, propertyValuesByDescriptor
-
-
Constructor Summary
Constructors Constructor Description AbstractRenderer(java.lang.String name, java.lang.String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()java.lang.StringgetDescription()Get the description of the Renderer.java.lang.StringgetName()Get the name of the Renderer.protected java.lang.StringgetPropertySourceType()java.io.WritergetWriter()Get the Writer for the Renderer.booleanisShowSuppressedViolations()Get the indicator for whether to show suppressed violations.voidsetDescription(java.lang.String description)Set the description of the Renderer.voidsetName(java.lang.String name)Set the name of the Renderer.voidsetShowSuppressedViolations(boolean showSuppressedViolations)Set the indicator for whether to show suppressed violations.voidsetWriter(java.io.Writer writer)Set the Writer for the Renderer.-
Methods inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
-
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, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
-
Methods inherited from interface net.sourceforge.pmd.renderers.Renderer
defaultFileExtension, end, renderFileReport, start, startFileAnalysis
-
-
-
-
Method Detail
-
getPropertySourceType
protected java.lang.String getPropertySourceType()
- Specified by:
getPropertySourceTypein classAbstractPropertySource
-
getName
public java.lang.String getName()
Description copied from interface:RendererGet the name of the Renderer.- Specified by:
getNamein interfacePropertySource- Specified by:
getNamein interfaceRenderer- Returns:
- The name of the Renderer.
-
setName
public void setName(java.lang.String name)
Description copied from interface:RendererSet the name of the Renderer.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:RendererGet the description of the Renderer.- Specified by:
getDescriptionin interfaceRenderer- Returns:
- The description of the Renderer.
-
setDescription
public void setDescription(java.lang.String description)
Description copied from interface:RendererSet the description of the Renderer.- Specified by:
setDescriptionin interfaceRenderer- Parameters:
description- The description of the Renderer.
-
isShowSuppressedViolations
public boolean isShowSuppressedViolations()
Description copied from interface:RendererGet the indicator for whether to show suppressed violations.- Specified by:
isShowSuppressedViolationsin interfaceRenderer- Returns:
trueif suppressed violations should show,falseotherwise.
-
setShowSuppressedViolations
public void setShowSuppressedViolations(boolean showSuppressedViolations)
Description copied from interface:RendererSet the indicator for whether to show suppressed violations.- Specified by:
setShowSuppressedViolationsin interfaceRenderer- Parameters:
showSuppressedViolations- Whether to show suppressed violations.
-
setWriter
public void setWriter(java.io.Writer writer)
Description copied from interface:RendererSet the Writer for the Renderer.
-
getWriter
public java.io.Writer getWriter()
Description copied from interface:RendererGet the Writer for the Renderer.
-
-