|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.event.MapEventType
public final class MapEventType
Implementation of the EventType
interface for handling plain Maps containing name value pairs.
Constructor Summary | |
---|---|
MapEventType(java.util.Map<java.lang.String,java.lang.Class> types)
Constructor takes a map of property names and types. |
Method Summary | |
---|---|
EventPropertyGetter |
getGetter(java.lang.String propertyName)
Get the getter for a specified event property. |
java.lang.String[] |
getPropertyNames()
Get all valid property names for the event type. |
java.lang.Class |
getPropertyType(java.lang.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. |
java.lang.Class |
getUnderlyingType()
Get the class that represents the Java type of the event type. |
boolean |
isProperty(java.lang.String propertyName)
Check that the given property name is valid for this event type, ie. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MapEventType(java.util.Map<java.lang.String,java.lang.Class> types)
types
- is pairs of property name and typeMethod Detail |
---|
public final java.lang.Class getPropertyType(java.lang.String propertyName)
EventType
getPropertyType
in interface EventType
propertyName
- is the property name
public final java.lang.Class getUnderlyingType()
EventType
getUnderlyingType
in interface EventType
public EventPropertyGetter getGetter(java.lang.String propertyName)
EventType
getGetter
in interface EventType
propertyName
- is the property name
public java.lang.String[] getPropertyNames()
EventType
getPropertyNames
in interface EventType
public boolean isProperty(java.lang.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 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 |