|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.event.BaseConfigurableEventType
public abstract class BaseConfigurableEventType
EventType than can be supplied with a preconfigured list of properties getters (aka. explicit properties).
Constructor Summary | |
---|---|
protected |
BaseConfigurableEventType(Class underlyngType)
Ctor. |
Method Summary | |
---|---|
protected abstract String[] |
doListPropertyNames()
Subclasses must implement this to supply a list of valid property names. |
protected abstract EventPropertyGetter |
doResolvePropertyGetter(String property)
Subclasses must implement this and supply a getter to a given property. |
protected abstract Class |
doResolvePropertyType(String property)
Subclasses must implement this and return a type for a property. |
EventPropertyGetter |
getGetter(String property)
Get the getter for a specified event property. |
String[] |
getPropertyNames()
Get all valid property names for the event type. |
Class |
getPropertyType(String property)
Get the type of an event property as returned by the "getter" method for that property. |
Class |
getUnderlyingType()
Get the class that represents the Java type of the event type. |
boolean |
isProperty(String property)
Check that the given property name is valid for this event type, ie. |
protected void |
setExplicitProperties(Map<String,TypedEventPropertyGetter> explicitProperties)
Sets explicit properties using a map of event property name and getter instance for each property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.espertech.esper.event.EventType |
---|
getDeepSuperTypes, getSuperTypes |
Constructor Detail |
---|
protected BaseConfigurableEventType(Class underlyngType)
underlyngType
- is the underlying type returned by the event typeMethod Detail |
---|
protected void setExplicitProperties(Map<String,TypedEventPropertyGetter> explicitProperties)
explicitProperties
- is the preconfigured properties not implicit in the event typepublic Class getPropertyType(String property)
EventType
getPropertyType
in interface EventType
property
- is the property name
public Class getUnderlyingType()
EventType
getUnderlyingType
in interface EventType
public EventPropertyGetter getGetter(String property)
EventType
getGetter
in interface EventType
property
- is the property name
public String[] getPropertyNames()
EventType
getPropertyNames
in interface EventType
public boolean isProperty(String property)
EventType
isProperty
in interface EventType
property
- is the property to check
protected abstract String[] doListPropertyNames()
protected abstract EventPropertyGetter doResolvePropertyGetter(String property)
property
- is the property name
protected abstract Class doResolvePropertyType(String property)
property
- is the property name
|
© 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 |