com.espertech.esper.event.bean
Class BaseNativePropertyGetter

java.lang.Object
  extended by com.espertech.esper.event.bean.BaseNativePropertyGetter
All Implemented Interfaces:
EventPropertyGetter
Direct Known Subclasses:
ArrayFastPropertyGetter, ArrayFieldPropertyGetter, ArrayMethodPropertyGetter, CGLibPropertyGetter, IterableFastPropertyGetter, IterableFieldPropertyGetter, IterableMethodPropertyGetter, KeyedFastPropertyGetter, KeyedMapFastPropertyGetter, KeyedMapFieldPropertyGetter, KeyedMapMethodPropertyGetter, KeyedMethodPropertyGetter, ListFastPropertyGetter, ListFieldPropertyGetter, ListMethodPropertyGetter, MapArrayPOJOBeanEntryIndexedPropertyGetter, MapArrayPOJOEntryIndexedPropertyGetter, MapPOJOEntryPropertyGetter, NestedPropertyGetter, ObjectArrayArrayPOJOBeanEntryIndexedPropertyGetter, ObjectArrayArrayPOJOEntryIndexedPropertyGetter, ObjectArrayPOJOEntryPropertyGetter, ReflectionPropFieldGetter, ReflectionPropMethodGetter

public abstract class BaseNativePropertyGetter
extends java.lang.Object
implements EventPropertyGetter

Base getter for native fragments.


Constructor Summary
BaseNativePropertyGetter(EventAdapterService eventAdapterService, java.lang.Class returnType, java.lang.Class genericType)
          Constructor.
 
Method Summary
 java.lang.Object getFragment(EventBean eventBean)
          Returns EventBean or array of EventBean for a property name or property expression.
static java.lang.Object getFragmentDynamic(java.lang.Object object, EventAdapterService eventAdapterService)
          Returns the fragment for dynamic properties.
 
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.client.EventPropertyGetter
get, isExistsProperty
 

Constructor Detail

BaseNativePropertyGetter

public BaseNativePropertyGetter(EventAdapterService eventAdapterService,
                                java.lang.Class returnType,
                                java.lang.Class genericType)
Constructor.

Parameters:
eventAdapterService - factory for event beans and event types
returnType - type of the entry returned
genericType - type generic parameter, if any
Method Detail

getFragmentDynamic

public static java.lang.Object getFragmentDynamic(java.lang.Object object,
                                                  EventAdapterService eventAdapterService)
Returns the fragment for dynamic properties.

Parameters:
object - to inspect
eventAdapterService - factory for event beans and event types
Returns:
fragment

getFragment

public java.lang.Object getFragment(EventBean eventBean)
Description copied from interface: EventPropertyGetter
Returns EventBean or array of EventBean for a property name or property expression.

For use with properties whose value is itself an event or whose value can be represented as an event by the underlying event representation.

The EventType of the EventBean instance(s) returned by this method can be determined by EventType.getFragmentType(String). Use EventPropertyDescriptor to obtain a list of properties that return fragments from an event type.

Returns null if the property value is null or the property value cannot be represented as a fragment by the underlying representation.

Specified by:
getFragment in interface EventPropertyGetter
Parameters:
eventBean - is the event to get the fragment value of a property
Returns:
the value of a property as an EventBean or array of EventBean

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com