com.espertech.esper.client.util
Class JSONRenderingOptions

java.lang.Object
  extended by com.espertech.esper.client.util.JSONRenderingOptions

public class JSONRenderingOptions
extends java.lang.Object

JSON rendering options.


Constructor Summary
JSONRenderingOptions()
          Ctor.
 
Method Summary
 EventPropertyRenderer getRenderer()
          Returns the event property renderer to use.
 boolean isPreventLooping()
          Indicator whether to prevent looping, by default set to true.
 JSONRenderingOptions setPreventLooping(boolean preventLooping)
          Indicator whether to prevent looping, by default set to true.
 void setRenderer(EventPropertyRenderer renderer)
          Sets the event property renderer to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONRenderingOptions

public JSONRenderingOptions()
Ctor.

Method Detail

isPreventLooping

public boolean isPreventLooping()
Indicator whether to prevent looping, by default set to true. Set to false to allow looping in the case where nested properties may refer to themselves, for example.

The algorithm to control looping considers the combination of event type and property name for each level of nested property.

Returns:
indicator whether the rendering algorithm prevents looping behavior

setPreventLooping

public JSONRenderingOptions setPreventLooping(boolean preventLooping)
Indicator whether to prevent looping, by default set to true. Set to false to allow looping in the case where nested properties may refer to themselves, for example.

The algorithm to control looping considers the combination of event type and property name for each level of nested property.

Parameters:
preventLooping - indicator whether the rendering algorithm prevents looping behavior
Returns:
options object

getRenderer

public EventPropertyRenderer getRenderer()
Returns the event property renderer to use.

Returns:
event property renderer

setRenderer

public void setRenderer(EventPropertyRenderer renderer)
Sets the event property renderer to use.

Parameters:
renderer - event property renderer

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com