com.atlassian.renderer.v2.plugin
Class PluggableV2Renderer

java.lang.Object
  extended by com.atlassian.renderer.v2.plugin.PluggableV2Renderer
All Implemented Interfaces:
Renderer

public class PluggableV2Renderer
extends Object
implements Renderer

A V2Renderer that gets its components from the plugin system


Constructor Summary
PluggableV2Renderer(com.atlassian.plugin.PluginAccessor pluginAccessor)
          Construct a new pluggable V2Renderer
 
Method Summary
 String getRendererType()
          This renderer identifies as a V2Renderer.
 String render(String originalContent, RenderContext renderContext)
          Render some content without changing render modes.
 String renderAsText(String originalContent, RenderContext context)
          Render some content as text, performing any transforms that may be needed to produce nicely formatted text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluggableV2Renderer

public PluggableV2Renderer(com.atlassian.plugin.PluginAccessor pluginAccessor)
Construct a new pluggable V2Renderer

Parameters:
pluginAccessor - the plugin accessor
Method Detail

render

public String render(String originalContent,
                     RenderContext renderContext)
Description copied from interface: Renderer
Render some content without changing render modes.

Specified by:
render in interface Renderer
Parameters:
originalContent - the content to render
renderContext - the context in which it is being rendered
Returns:
the resulting HTML
See Also:
Renderer.render(java.lang.String, com.atlassian.renderer.RenderContext)

renderAsText

public String renderAsText(String originalContent,
                           RenderContext context)
Description copied from interface: Renderer
Render some content as text, performing any transforms that may be needed to produce nicely formatted text.

Specified by:
renderAsText in interface Renderer
Parameters:
originalContent - is the content to render.
Returns:
a string that represents the text of the original content which has been stripped of any markup characters that need not be indexed by lucene.
See Also:
Renderer.renderAsText(java.lang.String, com.atlassian.renderer.RenderContext)

getRendererType

public String getRendererType()
This renderer identifies as a V2Renderer.

Specified by:
getRendererType in interface Renderer
Returns:
V2Renderer.RENDERER_TYPE


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.