com.atlassian.confluence.content.render.xhtml.compatibility
Class BodyTypeAwareRenderer

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.compatibility.BodyTypeAwareRenderer
All Implemented Interfaces:
Renderer

public class BodyTypeAwareRenderer
extends Object
implements Renderer

Allows clients to produce a safe rendering of a ContentEntityObject that respects its BodyType.


Constructor Summary
BodyTypeAwareRenderer(Renderer xhtmlRenderer, com.atlassian.renderer.WikiStyleRenderer wikiRenderer)
           
 
Method Summary
 String render(ContentEntityObject content)
           
 String render(ContentEntityObject content, ConversionContext conversionContext)
          Produces an appropriate rendering of the specified content depending on its BodyType.
 String render(String xml, ConversionContext conversionContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BodyTypeAwareRenderer

public BodyTypeAwareRenderer(Renderer xhtmlRenderer,
                             com.atlassian.renderer.WikiStyleRenderer wikiRenderer)
Method Detail

render

public String render(ContentEntityObject content)
Specified by:
render in interface Renderer

render

public String render(ContentEntityObject content,
                     ConversionContext conversionContext)
Produces an appropriate rendering of the specified content depending on its BodyType.

Specified by:
render in interface Renderer
Parameters:
content - the content
conversionContext - the conversion context
Returns:
an appropriate rendering of the specified content depending on its BodyType.

render

public String render(String xml,
                     ConversionContext conversionContext)
Specified by:
render in interface Renderer


Copyright © 2003-2011 Atlassian. All Rights Reserved.