com.ecyrd.jspwiki.render
Class WikiRenderer

java.lang.Object
  extended by com.ecyrd.jspwiki.render.WikiRenderer
Direct Known Subclasses:
CleanTextRenderer, 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
Author:
jalkanen

Field Summary
protected  WikiContext m_context
           
protected  WikiDocument m_document
           
protected  boolean m_enablePlugins
           
 
Constructor Summary
protected WikiRenderer(WikiContext context, WikiDocument doc)
           
 
Method Summary
 void enablePlugins(boolean toggle)
          Can be used to turn on plugin execution on a translator-reader basis
abstract  String getString()
           
 
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

m_enablePlugins

protected boolean m_enablePlugins
Constructor Detail

WikiRenderer

protected WikiRenderer(WikiContext context,
                       WikiDocument doc)
Method Detail

enablePlugins

public void enablePlugins(boolean toggle)
Can be used to turn on plugin execution on a translator-reader basis


getString

public abstract String getString()
                          throws IOException
Throws:
IOException