net.esper.event.property
Class NestedProperty

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

public class NestedProperty
extends java.lang.Object
implements Property

This class represents a nested property, each nesting level made up of a property instance that can be of type indexed, mapped or simple itself.

The syntax for nested properties is as follows.

 a.n
 a[1].n
 a('1').n
 


Constructor Summary
NestedProperty(java.util.List<Property> properties, BeanEventAdapter beanEventAdapter)
          Ctor.
 
Method Summary
 EventPropertyGetter getGetter(BeanEventType eventType)
          Returns value getter for the property of an event of the given event type.
 java.util.List<Property> getProperties()
          Returns the list of property instances making up the nesting levels.
 java.lang.Class getPropertyType(BeanEventType eventType)
          Returns the property type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestedProperty

public NestedProperty(java.util.List<Property> properties,
                      BeanEventAdapter beanEventAdapter)
Ctor.

Parameters:
properties - is the list of Property instances representing each nesting level
beanEventAdapter - is the chache and factory for event bean types and event wrappers
Method Detail

getProperties

public java.util.List<Property> getProperties()
Returns the list of property instances making up the nesting levels.

Returns:
list of Property instances

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.

Specified by:
getGetter in interface Property
Parameters:
eventType - is the type of event to make a getter for
Returns:
fast property value getter for property

getPropertyType

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

Specified by:
getPropertyType in interface Property
Parameters:
eventType - is the event type representing the JavaBean
Returns:
property type class