|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.event.WrapperEventBean
public class WrapperEventBean
Event bean that wraps another event bean adding additional properties.
This can be useful for classes for which the statement adds derived values retaining the original class.
The event type of such events is always WrapperEventType
. Additional properties are stored in a
Map.
Constructor Summary | |
---|---|
WrapperEventBean(EventBean event,
Map<String,Object> properties,
EventType eventType)
Ctor. |
Method Summary | |
---|---|
boolean |
equals(Object otherObject)
|
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 |
getUnderlyingEvent()
Returns the wrapped event. |
Map |
getUnderlyingMap()
Returns the underlying map storing the additional properties, if any. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WrapperEventBean(EventBean event, Map<String,Object> properties, EventType eventType)
event
- is the wrapped eventproperties
- is zero or more property values that embellish the wrapped eventeventType
- is the WrapperEventType
.Method Detail |
---|
public Object get(String property) throws 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 accessedpublic EventType getEventType()
EventBean
EventType
instance that describes the set of properties available for this event.
getEventType
in interface EventBean
public Object getUnderlying()
EventBean
getUnderlying
in interface EventBean
public Map getUnderlyingMap()
public EventBean getUnderlyingEvent()
public String toString()
toString
in class Object
public boolean equals(Object otherObject)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |