Class DefaultRendererFactory

  • All Implemented Interfaces:
    IRendererFactory

    public class DefaultRendererFactory
    extends Object
    implements IRendererFactory

    Renderer factory implementation that provides the default supported document renderer (IBex).

    This default renderer uses the XmlDocumentRenderer as default xml renderer. Use the setXmlRenderer method to override the xml renderer.

    Since:
    6.0
    Author:
    Jon van Leuven, O. Kerpershoek
    See Also:
    The default renderer that is used.
    • Constructor Detail

      • DefaultRendererFactory

        public DefaultRendererFactory()
      • DefaultRendererFactory

        public DefaultRendererFactory​(IDocumentsProperties documentsProperties)
    • Method Detail

      • setDocumentsBaseFolder

        protected void setDocumentsBaseFolder​(IDocumentsProperties documentsProperties)
      • getDocumentsBaseFolder

        protected String getDocumentsBaseFolder()
      • getOutputFormats

        public OutputFormat[] getOutputFormats()
        Description copied from interface: IRendererFactory
        This method returns the output formats that are supported by the renderer factory.
        Specified by:
        getOutputFormats in interface IRendererFactory
        Returns:
        Array containing the output formats that are supported by the renderer factory.
      • setStylesheet

        public void setStylesheet​(String stylesheet)
        Set the stylesheet resource. The default resource is documents/ibex/styles.xsl
        Parameters:
        stylesheet - The style sheet resource.
      • setConfig

        public void setConfig​(String config)
        Set the config resource. The default resource is documents/ibex/ibex-config.xml
        Parameters:
        config - The config sheet resource.
      • setXmlRenderer

        public void setXmlRenderer​(IXmlRenderer xmlRenderer)
        Set the xmlRenderer.
        Parameters:
        xmlRenderer - The document xml renderer to be used for document rendering.