|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.event.BeanEventType
public final class BeanEventType
Implementation of the EventType interface for handling JavaBean-type classes.
Constructor Summary | |
---|---|
BeanEventType(java.lang.Class clazz)
Constructor takes a java bean class as an argument. |
Method Summary | |
---|---|
net.sf.cglib.reflect.FastClass |
getFastClass()
Returns the fast class reference, if it exists. |
EventPropertyGetter |
getGetter(java.lang.String propertyName)
Get the getter for a specified event property. |
EventPropertyDescriptor |
getIndexedProperty(java.lang.String propertyName)
Looks up and returns a cached indexed property's descriptor. |
EventPropertyDescriptor |
getMappedProperty(java.lang.String propertyName)
Looks up and returns a cached mapped property's descriptor. |
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. |
EventPropertyDescriptor |
getSimpleProperty(java.lang.String propertyName)
Looks up and returns a cached simple property's descriptor. |
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 BeanEventType(java.lang.Class clazz)
clazz
- is the class of a java bean or other POJOMethod Detail |
---|
public final java.lang.Class getPropertyType(java.lang.String propertyName)
EventType
getPropertyType
in interface EventType
propertyName
- is the property name
public boolean isProperty(java.lang.String propertyName)
EventType
isProperty
in interface EventType
propertyName
- is the property to check
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 final EventPropertyDescriptor getSimpleProperty(java.lang.String propertyName)
propertyName
- to look up
public final EventPropertyDescriptor getMappedProperty(java.lang.String propertyName)
propertyName
- to look up
public final EventPropertyDescriptor getIndexedProperty(java.lang.String propertyName)
propertyName
- to look up
public java.lang.String[] getPropertyNames()
EventType
getPropertyNames
in interface EventType
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 net.sf.cglib.reflect.FastClass getFastClass()
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 |