Class DiagnosticJsonRenderer

  • All Implemented Interfaces:
    Renderer

    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).
    Since:
    MicroStrategy Web 9.0.0
    • Field Detail

      • BLOCK_PROP_BLOCK_NAME

        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
        Overrides:
        generateMarkup in class JsonRenderer
        Parameters:
        bContext - The BlockContext object that controls how BlockProperty values are expanded and Blocks are serialized.
        block - The Block to generate markup for.
        Returns:
        A new MarkupOutput object that contains the generated markup.
        Throws:
        java.lang.Exception - If an error occurs in the process of generating the markup.