Class DynamicSimpleProperty
java.lang.Object
com.espertech.esper.common.internal.event.property.PropertyBase
com.espertech.esper.common.internal.event.property.DynamicSimpleProperty
- All Implemented Interfaces:
DynamicProperty
,Property
,PropertySimple
Represents a dynamic simple property of a given name.
Dynamic properties always exist, have an Object type and are resolved to a method during runtime.
-
Field Summary
Fields inherited from class com.espertech.esper.common.internal.event.property.PropertyBase
propertyNameAtomic
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetGetter
(BeanEventType eventType, EventBeanTypedEventFactory eventBeanTypedEventFactory, BeanEventTypeFactory beanEventTypeFactory) Returns value getter for the property of an event of the given event type.Returns the getter-method for use with XML DOM event representations.getGetterDOM
(SchemaElementComplex complexProperty, EventBeanTypedEventFactory eventBeanTypedEventFactory, BaseXMLEventType eventType, String propertyExpression) Returns the getter-method for use with XML DOM event representations.getGetterMap
(Map optionalMapPropTypes, EventBeanTypedEventFactory eventBeanTypedEventFactory, BeanEventTypeFactory beanEventTypeFactory) Returns the getter-method for use with Map event representations.getGetterObjectArray
(Map<String, Integer> indexPerProperty, Map<String, Object> nestableTypes, EventBeanTypedEventFactory eventBeanTypedEventFactory, BeanEventTypeFactory beanEventTypeFactory) getPropertyType
(BeanEventType eventType, BeanEventTypeFactory beanEventTypeFactory) Returns the property type.getPropertyTypeMap
(Map optionalMapPropTypes, BeanEventTypeFactory beanEventTypeFactory) Returns the property type for use with Map event representations.getPropertyTypeSchema
(SchemaElementComplex complexProperty) Returns the property type for use with DOM event representations.boolean
Returns true for dynamic properties.String[]
Return a String-array of atomic property names.void
toPropertyEPL
(StringWriter writer) Write the EPL-representation of the property.Methods inherited from class com.espertech.esper.common.internal.event.property.PropertyBase
getPropertyNameAtomic
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.common.internal.event.property.Property
getPropertyNameAtomic
-
Constructor Details
-
DynamicSimpleProperty
Ctor.- Parameters:
propertyName
- is the property name
-
-
Method Details
-
getGetter
public EventPropertyGetterSPI getGetter(BeanEventType eventType, EventBeanTypedEventFactory eventBeanTypedEventFactory, BeanEventTypeFactory beanEventTypeFactory) Description copied from interface:Property
Returns value getter for the property of an event of the given event type. -
isDynamic
public boolean isDynamic()Description copied from interface:Property
Returns true for dynamic properties.- Specified by:
isDynamic
in interfaceProperty
- Overrides:
isDynamic
in classPropertyBase
- Returns:
- false for not-dynamic properties, true for dynamic properties.
-
toPropertyArray
Description copied from interface:Property
Return a String-array of atomic property names.- Specified by:
toPropertyArray
in interfaceProperty
- Returns:
- array of atomic names in a property expression
-
getPropertyType
public EPTypeClass getPropertyType(BeanEventType eventType, BeanEventTypeFactory beanEventTypeFactory) Description copied from interface:Property
Returns the property type.- Specified by:
getPropertyType
in interfaceProperty
- Parameters:
eventType
- is the event type representing the JavaBeanbeanEventTypeFactory
- bean factory- Returns:
- property type class
-
getPropertyTypeMap
public EPType getPropertyTypeMap(Map optionalMapPropTypes, BeanEventTypeFactory beanEventTypeFactory) Description copied from interface:Property
Returns the property type for use with Map event representations.- Specified by:
getPropertyTypeMap
in interfaceProperty
- Parameters:
optionalMapPropTypes
- a map-within-map type definition, if supplied, or null if not suppliedbeanEventTypeFactory
- bean factory- Returns:
- property type @param optionalMapPropTypes
-
getGetterMap
public MapEventPropertyGetter getGetterMap(Map optionalMapPropTypes, EventBeanTypedEventFactory eventBeanTypedEventFactory, BeanEventTypeFactory beanEventTypeFactory) Description copied from interface:Property
Returns the getter-method for use with Map event representations.- Specified by:
getGetterMap
in interfaceProperty
- Parameters:
optionalMapPropTypes
- a map-within-map type definition, if supplied, or null if not suppliedeventBeanTypedEventFactory
- for resolving further map event types that are property typesbeanEventTypeFactory
- bean factory- Returns:
- getter for maps
-
toPropertyEPL
Description copied from interface:Property
Write the EPL-representation of the property.- Specified by:
toPropertyEPL
in interfaceProperty
- Parameters:
writer
- to write to
-
getGetterDOM
public EventPropertyGetterSPI getGetterDOM(SchemaElementComplex complexProperty, EventBeanTypedEventFactory eventBeanTypedEventFactory, BaseXMLEventType eventType, String propertyExpression) Description copied from interface:Property
Returns the getter-method for use with XML DOM event representations.- Specified by:
getGetterDOM
in interfaceProperty
- Parameters:
complexProperty
- a element-within-element type definitioneventBeanTypedEventFactory
- for resolving or creating further event types that are property typeseventType
- the event typepropertyExpression
- the full property expression- Returns:
- getter
-
getGetterDOM
Description copied from interface:Property
Returns the getter-method for use with XML DOM event representations.- Specified by:
getGetterDOM
in interfaceProperty
- Returns:
- getter
-
getPropertyTypeSchema
Description copied from interface:Property
Returns the property type for use with DOM event representations.- Specified by:
getPropertyTypeSchema
in interfaceProperty
- Parameters:
complexProperty
- a element-within-element type definition- Returns:
- property type
-
getGetterObjectArray
public ObjectArrayEventPropertyGetter getGetterObjectArray(Map<String, Integer> indexPerProperty, Map<String, Object> nestableTypes, EventBeanTypedEventFactory eventBeanTypedEventFactory, BeanEventTypeFactory beanEventTypeFactory) - Specified by:
getGetterObjectArray
in interfaceProperty
-