|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.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.
Field Summary | |
---|---|
protected Map<String,EventType> |
taggedEventTypes
Map of tag name and event type. |
Constructor Summary | |
---|---|
CompositeEventType(String alias,
Map<String,EventType> taggedEventTypes)
Ctor. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
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. |
Map<String,EventType> |
getTaggedEventTypes()
Returns the event types for each composing event. |
Class |
getUnderlyingType()
Get the class that represents the Java type of the event type. |
int |
hashCode()
|
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Map<String,EventType> taggedEventTypes
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
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Map<String,EventType> getTaggedEventTypes()
TaggedCompositeEventType
getTaggedEventTypes
in interface TaggedCompositeEventType
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |