public class JSONRendererImpl extends java.lang.Object implements JSONEventRenderer
Constructor and Description |
---|
JSONRendererImpl(EventType eventType,
JSONRenderingOptions options)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
render(EventBean theEvent)
Render a given event in the JSON format.
|
java.lang.String |
render(java.lang.String title,
EventBean theEvent)
Render a given event in the JSON format.
|
public JSONRendererImpl(EventType eventType, JSONRenderingOptions options)
eventType
- type of event(s)options
- rendering optionspublic java.lang.String render(java.lang.String title, EventBean theEvent)
JSONEventRenderer
render
in interface JSONEventRenderer
title
- the JSON root titletheEvent
- the event to renderpublic java.lang.String render(EventBean theEvent)
JSONEventRenderer
render
in interface JSONEventRenderer
theEvent
- the event to render