Class ChildBlocksBuilder


  • public class ChildBlocksBuilder
    extends java.lang.Object
    Re-usable builder that can be used to generate paragraph and list item text from a string containing all the content and wiki formatting. This class is intentionally stateful, but cheap to create, so create one as needed and keep it on the stack to preserve stateless behaviour in the caller.
    Since:
    1.1
    Author:
    Dave Syer
    • Constructor Summary

      Constructors 
      Constructor Description
      ChildBlocksBuilder​(java.lang.String input)
      Constructor for ChildBlocksBuilder.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Block> getBlocks()
      Utility method to convert marked up content into blocks for rendering.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChildBlocksBuilder

        public ChildBlocksBuilder​(java.lang.String input)

        Constructor for ChildBlocksBuilder.

        Parameters:
        input - the input.
    • Method Detail

      • getBlocks

        public java.util.List<Block> getBlocks()
        Utility method to convert marked up content into blocks for rendering.
        Returns:
        a list of Blocks that can be used to render it