com.atlassian.confluence.renderer
Class RenderResult

java.lang.Object
  extended by com.atlassian.confluence.renderer.RenderResult

public class RenderResult
extends Object

The result of a wiki rendering: the main payload is, of course, the rendered content, but we may during the course of the render want to collect more information like page structure, or excerpts or so on, so this gives us a simple metadata facility.


Constructor Summary
RenderResult(String renderedContent, Map metadata)
           
 
Method Summary
 boolean containsMetadata(String key)
           
 Object getMetadata(String key)
           
 String getRenderedContent()
           
 String toString()
          Does the same as getRenderedContent, so you can shortcut the use of the renderer in things like writers or string concatenation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RenderResult

public RenderResult(String renderedContent,
                    Map metadata)
Method Detail

containsMetadata

public boolean containsMetadata(String key)

getMetadata

public Object getMetadata(String key)

getRenderedContent

public String getRenderedContent()

toString

public String toString()
Does the same as getRenderedContent, so you can shortcut the use of the renderer in things like writers or string concatenation.

Overrides:
toString in class Object
Returns:
the rendered content from the result.


Copyright © 2003-2012 Atlassian. All Rights Reserved.