Class EventPropertyRendererContext
java.lang.Object
com.espertech.esper.common.client.render.EventPropertyRendererContext
Context for use with the
EventPropertyRenderer
interface for use with the JSON or XML event renderes to handle custom event property rendering.
Do not retain a handle to the renderer context as this object changes for each event property.
-
Constructor Summary
ConstructorDescriptionEventPropertyRendererContext
(EventType eventType, boolean jsonFormatted) Ctor. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copies context.com.espertech.esper.common.internal.event.render.OutputValueRenderer
Returns the output value default renderer.Returns the event typeReturns the index for indexed properties.Returns the map key for mapped propertiesReturns the property name to be rendered.Returns the property value.Returns the string builder.boolean
Returns true for JSON formatted.void
setDefaultRenderer
(com.espertech.esper.common.internal.event.render.OutputValueRenderer defaultRenderer) Sets the output value default renderer.void
setIndexedPropertyIndex
(Integer indexedPropertyIndex) Sets the index for indexed properties.void
setMappedPropertyKey
(String mappedPropertyKey) Sets the map key for mapped propertiesvoid
setPropertyName
(String propertyName) Sets the property name to be rendered.void
setPropertyValue
(Object propertyValue) Sets the property value.void
setStringBuilderAndReset
(StringBuilder stringBuilder) Sets the string builer
-
Constructor Details
-
EventPropertyRendererContext
Ctor.- Parameters:
eventType
- event typejsonFormatted
- boolean if JSON formatted
-
-
Method Details
-
getPropertyName
Returns the property name to be rendered.- Returns:
- property name
-
setPropertyName
Sets the property name to be rendered.- Parameters:
propertyName
- property name
-
getPropertyValue
Returns the property value.- Returns:
- value
-
setPropertyValue
Sets the property value.- Parameters:
propertyValue
- to set
-
getDefaultRenderer
public com.espertech.esper.common.internal.event.render.OutputValueRenderer getDefaultRenderer()Returns the output value default renderer.- Returns:
- renderer
-
setDefaultRenderer
public void setDefaultRenderer(com.espertech.esper.common.internal.event.render.OutputValueRenderer defaultRenderer) Sets the output value default renderer.- Parameters:
defaultRenderer
- renderer to set
-
setStringBuilderAndReset
Sets the string builer- Parameters:
stringBuilder
- to set
-
getStringBuilder
Returns the string builder.- Returns:
- string builder to use
-
getEventType
Returns the event type- Returns:
- event type
-
getIndexedPropertyIndex
Returns the index for indexed properties.- Returns:
- property index
-
setIndexedPropertyIndex
Sets the index for indexed properties.- Parameters:
indexedPropertyIndex
- property index
-
getMappedPropertyKey
Returns the map key for mapped properties- Returns:
- map key
-
setMappedPropertyKey
Sets the map key for mapped properties- Parameters:
mappedPropertyKey
- map key to set
-
isJsonFormatted
public boolean isJsonFormatted()Returns true for JSON formatted.- Returns:
- indicator
-
copy
Copies context.- Returns:
- copy
-