Class 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 Detail

      • RenderResult

        public RenderResult​(String renderedContent,
                            Map metadata)
    • Method Detail

      • containsMetadata

        public boolean containsMetadata​(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.