Class DoxiaDocumentRenderer
- java.lang.Object
-
- org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer
-
- All Implemented Interfaces:
DocumentRenderer
public class DoxiaDocumentRenderer extends java.lang.Object implements DocumentRenderer
Renderer for a document that has a source file to be parsed by Doxia. Details about the source file are inRenderingContext, which is expected to have a non-null parserId and extension.- Version:
- $Id: DoxiaDocumentRenderer.java 1720924 2015-12-19 13:44:56Z hboutemy $
- Author:
- Brett Porter
-
-
Constructor Summary
Constructors Constructor Description DoxiaDocumentRenderer(RenderingContext renderingContext)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetOutputName()The name of the output document.RenderingContextgetRenderingContext()Return the RenderingContext of the document.booleanisExternalReport()Whether this document is an external report.booleanisOverwrite()Whether to always overwrite the document, or only do so when it is changed.voidrenderDocument(java.io.Writer writer, Renderer renderer, SiteRenderingContext siteRenderingContext)Render a document.
-
-
-
Constructor Detail
-
DoxiaDocumentRenderer
public DoxiaDocumentRenderer(RenderingContext renderingContext)
Constructor.- Parameters:
renderingContext- the document's RenderingContext to use.
-
-
Method Detail
-
renderDocument
public void renderDocument(java.io.Writer writer, Renderer renderer, SiteRenderingContext siteRenderingContext) throws RendererException, java.io.FileNotFoundException, java.io.UnsupportedEncodingExceptionRender a document.- Specified by:
renderDocumentin interfaceDocumentRenderer- Parameters:
writer- the Writer.renderer- the Renderer.siteRenderingContext- the SiteRenderingContext.- Throws:
RendererException- if it bombs.java.io.FileNotFoundException- if it bombs.java.io.UnsupportedEncodingException- if it bombs.
-
getOutputName
public java.lang.String getOutputName()
The name of the output document.- Specified by:
getOutputNamein interfaceDocumentRenderer- Returns:
- the name of the output document.
-
getRenderingContext
public RenderingContext getRenderingContext()
Return the RenderingContext of the document.- Specified by:
getRenderingContextin interfaceDocumentRenderer- Returns:
- RenderingContext.
-
isOverwrite
public boolean isOverwrite()
Whether to always overwrite the document, or only do so when it is changed.- Specified by:
isOverwritein interfaceDocumentRenderer- Returns:
- whether to overwrite
-
isExternalReport
public boolean isExternalReport()
Description copied from interface:DocumentRendererWhether this document is an external report.- Specified by:
isExternalReportin interfaceDocumentRenderer- Returns:
trueif report is external, otherwisefalse
-
-