net.esper.event.property
Class MappedProperty

java.lang.Object
  extended by net.esper.event.property.PropertyBase
      extended by net.esper.event.property.MappedProperty
All Implemented Interfaces:
Property

public class MappedProperty
extends PropertyBase

Represents a mapped property or array property, ie. an 'value' property with read method getValue(int index) or a 'array' property via read method getArray() returning an array.


Field Summary
 
Fields inherited from class net.esper.event.property.PropertyBase
propertyName
 
Constructor Summary
MappedProperty(String propertyName, String key)
          Ctor.
 
Method Summary
 EventPropertyGetter getGetter(BeanEventType eventType)
          Returns value getter for the property of an event of the given event type.
 String getKey()
          Returns the key value for mapped access.
 Class getPropertyType(BeanEventType eventType)
          Returns the property type.
 
Methods inherited from class net.esper.event.property.PropertyBase
getPropertyName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappedProperty

public MappedProperty(String propertyName,
                      String key)
Ctor.

Parameters:
propertyName - is the property name of the mapped property
key - is the key value to access the mapped property
Method Detail

getKey

public String getKey()
Returns the key value for mapped access.

Returns:
key value

getGetter

public EventPropertyGetter getGetter(BeanEventType eventType)
Description copied from interface: Property
Returns value getter for the property of an event of the given event type.

Parameters:
eventType - is the type of event to make a getter for
Returns:
fast property value getter for property

getPropertyType

public Class getPropertyType(BeanEventType eventType)
Description copied from interface: Property
Returns the property type.

Parameters:
eventType - is the event type representing the JavaBean
Returns:
property type class