Class EventPropertyRendererContext

java.lang.Object
com.espertech.esper.common.client.render.EventPropertyRendererContext

public class EventPropertyRendererContext extends Object
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 Details

    • EventPropertyRendererContext

      public EventPropertyRendererContext(EventType eventType, boolean jsonFormatted)
      Ctor.
      Parameters:
      eventType - event type
      jsonFormatted - boolean if JSON formatted
  • Method Details

    • getPropertyName

      public String getPropertyName()
      Returns the property name to be rendered.
      Returns:
      property name
    • setPropertyName

      public void setPropertyName(String propertyName)
      Sets the property name to be rendered.
      Parameters:
      propertyName - property name
    • getPropertyValue

      public Object getPropertyValue()
      Returns the property value.
      Returns:
      value
    • setPropertyValue

      public void setPropertyValue(Object propertyValue)
      Sets the property value.
      Parameters:
      propertyValue - to set
    • getDefaultRenderer

      public OutputValueRenderer getDefaultRenderer()
      Returns the output value default renderer.
      Returns:
      renderer
    • setDefaultRenderer

      public void setDefaultRenderer(OutputValueRenderer defaultRenderer)
      Sets the output value default renderer.
      Parameters:
      defaultRenderer - renderer to set
    • setStringBuilderAndReset

      public void setStringBuilderAndReset(StringBuilder stringBuilder)
      Sets the string builer
      Parameters:
      stringBuilder - to set
    • getStringBuilder

      public StringBuilder getStringBuilder()
      Returns the string builder.
      Returns:
      string builder to use
    • getEventType

      public EventType getEventType()
      Returns the event type
      Returns:
      event type
    • getIndexedPropertyIndex

      public Integer getIndexedPropertyIndex()
      Returns the index for indexed properties.
      Returns:
      property index
    • setIndexedPropertyIndex

      public void setIndexedPropertyIndex(Integer indexedPropertyIndex)
      Sets the index for indexed properties.
      Parameters:
      indexedPropertyIndex - property index
    • getMappedPropertyKey

      public String getMappedPropertyKey()
      Returns the map key for mapped properties
      Returns:
      map key
    • setMappedPropertyKey

      public void setMappedPropertyKey(String mappedPropertyKey)
      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