|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.event.CompositeEventType
public class CompositeEventType
Event type for events that itself have event properties that are event wrappers.
For use in pattern expression statements in which multiple events match a pattern. There the composite event indicates that the whole patterns matched, and indicates the individual events that caused the pattern as event properties to the event.
Constructor Summary | |
---|---|
CompositeEventType(String alias,
Map<String,EventType> taggedEventTypes)
Ctor. |
Method Summary | |
---|---|
String |
getAlias()
Returns the event type alias. |
Iterator<EventType> |
getDeepSuperTypes()
Returns iterator over all super types to event type, going up the hierarchy and including all Java interfaces (and their extended interfaces) and superclasses as EventType instances. |
EventPropertyGetter |
getGetter(String propertyName)
Get the getter for a specified event property. |
String[] |
getPropertyNames()
Get all valid property names for the event type. |
Class |
getPropertyType(String propertyName)
Get the type of an event property as returned by the "getter" method for that property. |
EventType[] |
getSuperTypes()
Returns an array of event types that are super to this event type, from which this event type inherited event properties. |
Class |
getUnderlyingType()
Get the class that represents the Java type of the event type. |
boolean |
isProperty(String propertyName)
Check that the given property name is valid for this event type, ie. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeEventType(String alias, Map<String,EventType> taggedEventTypes)
alias
- is the event type aliastaggedEventTypes
- is a map of name tags and event type per tagMethod Detail |
---|
public String getAlias()
public Class getPropertyType(String propertyName)
EventType
getPropertyType
in interface EventType
propertyName
- is the property name
public Class getUnderlyingType()
EventType
getUnderlyingType
in interface EventType
public EventPropertyGetter getGetter(String propertyName)
EventType
getGetter
in interface EventType
propertyName
- is the property name
public String[] getPropertyNames()
EventType
getPropertyNames
in interface EventType
public boolean isProperty(String propertyName)
EventType
isProperty
in interface EventType
propertyName
- is the property to check
public EventType[] getSuperTypes()
EventType
For Java bean instances underlying the event this method returns the event types for all superclasses extended by the Java bean and all interfaces implemented by the Java bean.
getSuperTypes
in interface EventType
public Iterator<EventType> getDeepSuperTypes()
EventType
getDeepSuperTypes
in interface EventType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |