net.esper.event
Interface EventBean

All Known Implementing Classes:
BeanEventBean, MapEventBean

public interface EventBean

Interface for event representation. All events have an EventType. Events also usually have one or more event properties. This interface allows the querying of event type, event property values and the underlying event object.


Method Summary
 java.lang.Object get(java.lang.String property)
          Returns the value of an event property.
 EventType getEventType()
          Return the EventType instance that describes the set of properties available for this event.
 java.lang.Object getUnderlying()
          Get the underlying data object to this event wrapper.
 

Method Detail

getEventType

EventType getEventType()
Return the EventType instance that describes the set of properties available for this event.

Returns:
event type

get

java.lang.Object get(java.lang.String property)
                     throws PropertyAccessException
Returns the value of an event property.

Parameters:
property - - name of the property whose value is to be retrieved
Returns:
the value of a simple property with the specified name.
Throws:
PropertyAccessException - - if there is no property of the specified name, or the property cannot be accessed

getUnderlying

java.lang.Object getUnderlying()
Get the underlying data object to this event wrapper.

Returns:
underlying data object, usually either a Map or a Java bean instance.