net.esper.event.property
Class MappedProperty
java.lang.Object
net.esper.event.property.PropertyBase
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.
Constructor Summary |
MappedProperty(java.lang.String propertyName,
java.lang.String key)
Ctor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappedProperty
public MappedProperty(java.lang.String propertyName,
java.lang.String key)
- Ctor.
- Parameters:
propertyName
- is the property name of the mapped propertykey
- is the key value to access the mapped property
getKey
public java.lang.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 java.lang.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