org.apache.wiki.render
Class WikiRenderer

java.lang.Object
  extended by org.apache.wiki.render.WikiRenderer
Direct Known Subclasses:
CleanTextRenderer, CreoleRenderer, WysiwygEditingRenderer, XHTMLRenderer

public abstract class WikiRenderer
extends Object

Provides an interface to the basic rendering engine. This class is an abstract class instead of an interface because it is expected that rendering capabilities are increased at some point, and I would hate if renderers broke. This class allows some sane defaults to be implemented.

Since:
2.4

Field Summary
protected  WikiContext m_context
           
protected  WikiDocument m_document
           
 
Constructor Summary
protected WikiRenderer(WikiContext context, WikiDocument doc)
          Create a WikiRenderer.
 
Method Summary
abstract  String getString()
          Renders and returns the end result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_context

protected WikiContext m_context

m_document

protected WikiDocument m_document
Constructor Detail

WikiRenderer

protected WikiRenderer(WikiContext context,
                       WikiDocument doc)
Create a WikiRenderer.

Parameters:
context - A WikiContext in which the rendering will take place.
doc - The WikiDocument which shall be rendered.
Method Detail

getString

public abstract String getString()
                          throws IOException
Renders and returns the end result.

Returns:
A rendered string.
Throws:
IOException - If rendering fails.


Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.