|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.event.BeanEventBean
public class BeanEventBean
Wrapper for Java bean (POJO or regular) Java objects the represent events.
Allows access to event properties, which is done through the getter supplied by the event type.
EventType
instances containing type information are obtained from EventTypeFactory
.
Two BeanEventBean instances are equal if they have the same event type and refer to the same instance of event object.
Clients that need to compute equality between Java beans wrapped by this class need to obtain the underlying object.
Constructor Summary | |
---|---|
protected |
BeanEventBean(java.lang.Object event,
EventType eventType)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected BeanEventBean(java.lang.Object event, EventType eventType)
event
- is the event objecteventType
- is the schema information for the event object.Method Detail |
---|
public java.lang.Object getUnderlying()
EventBean
getUnderlying
in interface EventBean
public EventType getEventType()
EventBean
EventType
instance that describes the set of properties available for this event.
getEventType
in interface EventBean
public final boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.Object get(java.lang.String property) throws java.lang.IllegalArgumentException, PropertyAccessException
EventBean
get
in interface EventBean
property
- - name of the property whose value is to be retrieved
PropertyAccessException
- - if there is no property of the specified name, or the property cannot be accessed
java.lang.IllegalArgumentException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |