net.esper.event
Class CompositeEventBean

java.lang.Object
  extended by net.esper.event.CompositeEventBean
All Implemented Interfaces:
EventBean, TaggedCompositeEventBean

public class CompositeEventBean
extends Object
implements EventBean, TaggedCompositeEventBean

Event bean wrapper for events that consists of a Map of name tags as key values and event bean wrappers as value objects, for use by pattern expressions.


Constructor Summary
CompositeEventBean(Map<String,EventBean> wrappedEvents, EventType eventType)
          Ctor.
 
Method Summary
 Object get(String property)
          Returns the value of an event property.
 EventBean getEventBean(String property)
          Returns the event for the tag.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeEventBean

public CompositeEventBean(Map<String,EventBean> wrappedEvents,
                          EventType eventType)
Ctor.

Parameters:
wrappedEvents - is the event properties map with keys being the property name tages and values the wrapped event
eventType - is the event type instance for the wrapper
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.

getEventBean

public EventBean getEventBean(String property)
Description copied from interface: TaggedCompositeEventBean
Returns the event for the tag.

Specified by:
getEventBean in interface TaggedCompositeEventBean
Parameters:
property - is the tag name
Returns:
event

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