Class DiagnosticJsonRenderer

  • All Implemented Interfaces:

    public class DiagnosticJsonRenderer
    extends JsonRenderer
    A diagnostic version of the JsonRenderer that includes the block name in the generated JSON. It also generates statistics on the Blocks processed and sends it to STDERR (System.err).
    MicroStrategy Web 9.0.0
    • Field Detail


        public static final java.lang.String BLOCK_PROP_BLOCK_NAME
        The name of the property that is used to hold the block name.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DiagnosticJsonRenderer

        public DiagnosticJsonRenderer()
    • Method Detail

      • generateMarkup

        public MarkupOutput generateMarkup​(BlockContext bContext,
                                           Block block)
                                    throws java.lang.Exception
        Description copied from interface: Renderer
        Generate the markup representation of the specified Block.
        Specified by:
        generateMarkup in interface Renderer
        generateMarkup in class JsonRenderer
        bContext - The BlockContext object that controls how BlockProperty values are expanded and Blocks are serialized.
        block - The Block to generate markup for.
        A new MarkupOutput object that contains the generated markup.
        java.lang.Exception - If an error occurs in the process of generating the markup.