net.esper.event.property
Class IndexedProperty

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

public class IndexedProperty
extends PropertyBase

Represents an indexed 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
IndexedProperty(String propertyName, int index)
          Ctor.
 
Method Summary
 EventPropertyGetter getGetter(BeanEventType eventType)
          Returns value getter for the property of an event of the given event type.
 EventPropertyGetter getGetterMap()
          Returns the getter-method for use with Map event representations.
 int getIndex()
          Returns index for indexed access.
 Class getPropertyType(BeanEventType eventType)
          Returns the property type.
 Class getPropertyTypeMap()
          Returns the property type for use with Map event representations.
 
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

IndexedProperty

public IndexedProperty(String propertyName,
                       int index)
Ctor.

Parameters:
propertyName - is the property name
index - is the index to use to access the property value
Method Detail

getIndex

public int getIndex()
Returns index for indexed access.

Returns:
index 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

getPropertyTypeMap

public Class getPropertyTypeMap()
Description copied from interface: Property
Returns the property type for use with Map event representations.

Returns:
property type

getGetterMap

public EventPropertyGetter getGetterMap()
Description copied from interface: Property
Returns the getter-method for use with Map event representations.

Returns:
getter for maps