public class

JsonRenderer

extends AbstractRenderer
java.lang.Object
   ↳ com.microstrategy.web.blocks.renderers.AbstractRenderer
     ↳ com.microstrategy.web.blocks.renderers.JsonRenderer
Known Direct Subclasses

Class Overview

This class is used to render the contents of a Block in JavaScript Object Notation (JSON) format.

Summary

Constants
String PROPERTY_ANNOTATION_EXPRESSION
String PROPERTY_ANNOTATION_GROUP
[Expand]
Inherited Fields
From class com.microstrategy.web.blocks.renderers.AbstractRenderer
Public Constructors
JsonRenderer()
Default no-args constructor.
Public Methods
GenericJsonGenerator buildJsonGeneratorTree(Block block, BlockContext bContext)
Construct a JSON Generator Tree from the Block tree.
MarkupOutput generateMarkup(BlockContext bContext, Block block)
Protected Methods
Comparator<BlockProperty> getBlockPropertyComparator()
[Expand]
Inherited Methods
From class com.microstrategy.web.blocks.renderers.AbstractRenderer
From class java.lang.Object
From interface com.microstrategy.web.blocks.renderers.Renderer

Constants

public static final String PROPERTY_ANNOTATION_EXPRESSION

Constant Value: "expression"

public static final String PROPERTY_ANNOTATION_GROUP

Constant Value: "json"

Public Constructors

public JsonRenderer ()

Default no-args constructor.

Public Methods

public GenericJsonGenerator buildJsonGeneratorTree (Block block, BlockContext bContext)

Construct a JSON Generator Tree from the Block tree.

Parameters
block The Block tree to convert into a JSON Generator.
bContext The BlockContext which defines how dynamic Block property values are computed.
Returns

public MarkupOutput generateMarkup (BlockContext bContext, Block block)

Throws
Exception

Protected Methods

protected Comparator<BlockProperty> getBlockPropertyComparator ()