com.espertech.esper.event.vaevent
Class VariantEventBean

java.lang.Object
  extended by com.espertech.esper.event.vaevent.VariantEventBean
All Implemented Interfaces:
EventBean

public class VariantEventBean
extends Object
implements EventBean

An event bean that represents multiple potentially disparate underlying events and presents a unified face across each such types or even any type.


Constructor Summary
VariantEventBean(VariantEventType variantEventType, EventBean underlying)
          Ctor.
 
Method Summary
 Object get(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.
 Object getUnderlying()
          Get the underlying data object to this event wrapper.
 EventBean getUnderlyingEventBean()
          Returns the underlying event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariantEventBean

public VariantEventBean(VariantEventType variantEventType,
                        EventBean underlying)
Ctor.

Parameters:
variantEventType - the event type
underlying - the event
Method Detail

getEventType

public EventType getEventType()
Description copied from interface: EventBean
Return the EventType instance that describes the set of properties available for this event.

Specified by:
getEventType in interface EventBean
Returns:
event type

get

public Object get(String property)
           throws PropertyAccessException
Description copied from interface: EventBean
Returns the value of an event property.

Specified by:
get in interface EventBean
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

public Object getUnderlying()
Description copied from interface: EventBean
Get the underlying data object to this event wrapper.

Specified by:
getUnderlying in interface EventBean
Returns:
underlying data object, usually either a Map or a Java bean instance.

getUnderlyingEventBean

public EventBean getUnderlyingEventBean()
Returns the underlying event.

Returns:
underlying event

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com