public interface EventRenderer
EventBean
events.Modifier and Type | Method and Description |
---|---|
JSONEventRenderer |
getJSONRenderer(EventType eventType)
Returns a render for the JSON format, valid only for the given event type and its subtypes.
|
JSONEventRenderer |
getJSONRenderer(EventType eventType,
JSONRenderingOptions options)
Returns a render for the JSON format, valid only for the given event type and its subtypes.
|
XMLEventRenderer |
getXMLRenderer(EventType eventType)
Returns a render for the XML format, valid only for the given event type and its subtypes.
|
XMLEventRenderer |
getXMLRenderer(EventType eventType,
XMLRenderingOptions options)
Returns a render for the XML format, valid only for the given event type and its subtypes.
|
String |
renderJSON(String title,
EventBean theEvent)
Quick-access method to render a given event in the JSON format.
|
String |
renderJSON(String title,
EventBean theEvent,
JSONRenderingOptions options)
Quick-access method to render a given event in the JSON format.
|
String |
renderXML(String rootElementName,
EventBean theEvent)
Quick-access method to render a given event in the XML format.
|
String |
renderXML(String rootElementName,
EventBean theEvent,
XMLRenderingOptions options)
Quick-access method to render a given event in the XML format.
|
JSONEventRenderer getJSONRenderer(EventType eventType, JSONRenderingOptions options)
eventType
- to return renderer foroptions
- rendering optionsJSONEventRenderer getJSONRenderer(EventType eventType)
eventType
- to return renderer forString renderJSON(String title, EventBean theEvent)
Use the #getJSONRenderer to obtain a renderer instance that allows repeated rendering of the same type of event. For performance reasons obtaining a dedicated renderer instance is the preferred method compared to repeated rendering via this method.
title
- the JSON root titletheEvent
- the event to renderString renderJSON(String title, EventBean theEvent, JSONRenderingOptions options)
Use the #getJSONRenderer to obtain a renderer instance that allows repeated rendering of the same type of event. For performance reasons obtaining a dedicated renderer instance is the preferred method compared to repeated rendering via this method.
title
- the JSON root titletheEvent
- the event to renderoptions
- are JSON rendering optionsXMLEventRenderer getXMLRenderer(EventType eventType)
eventType
- to return renderer forXMLEventRenderer getXMLRenderer(EventType eventType, XMLRenderingOptions options)
eventType
- to return renderer foroptions
- rendering optionsString renderXML(String rootElementName, EventBean theEvent)
Use the #getXMLRenderer to obtain a renderer instance that allows repeated rendering of the same type of event. For performance reasons obtaining a dedicated renderer instance is the preferred method compared to repeated rendering via this method.
rootElementName
- the root element name that may also include namespace informationtheEvent
- the event to renderString renderXML(String rootElementName, EventBean theEvent, XMLRenderingOptions options)
Use the #getXMLRenderer to obtain a renderer instance that allows repeated rendering of the same type of event. For performance reasons obtaining a dedicated renderer instance is the preferred method compared to repeated rendering via this method.
rootElementName
- the root element name that may also include namespace informationtheEvent
- the event to renderoptions
- are XML rendering options