|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.event.property.PropertyBase
com.espertech.esper.event.property.IndexedProperty
public class IndexedProperty
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 com.espertech.esper.event.property.PropertyBase |
---|
propertyNameAtomic |
Constructor Summary | |
---|---|
IndexedProperty(java.lang.String propertyName)
|
|
IndexedProperty(java.lang.String propertyName,
int index)
Ctor. |
Method Summary | |
---|---|
EventPropertyGetterAndIndexed |
getGetter(BeanEventType eventType,
EventAdapterService eventAdapterService)
Returns value getter for the property of an event of the given event type. |
EventPropertyGetter |
getGetterDOM()
Returns the getter-method for use with XML DOM event representations. |
EventPropertyGetter |
getGetterDOM(SchemaElementComplex complexProperty,
EventAdapterService eventAdapterService,
BaseXMLEventType eventType,
java.lang.String propertyExpression)
Returns the getter-method for use with XML DOM event representations. |
MapEventPropertyGetterAndIndexed |
getGetterMap(java.util.Map optionalMapPropTypes,
EventAdapterService eventAdapterService)
Returns the getter-method for use with Map event representations. |
ObjectArrayEventPropertyGetterAndIndexed |
getGetterObjectArray(java.util.Map<java.lang.String,java.lang.Integer> indexPerProperty,
java.util.Map<java.lang.String,java.lang.Object> nestableTypes,
EventAdapterService eventAdapterService)
|
int |
getIndex()
Returns index for indexed access. |
static java.lang.Integer |
getIndex(java.lang.String propertyName)
Returns the index number for an indexed property expression. |
java.lang.Class |
getPropertyType(BeanEventType eventType,
EventAdapterService eventAdapterService)
Returns the property type. |
GenericPropertyDesc |
getPropertyTypeGeneric(BeanEventType eventType,
EventAdapterService eventAdapterService)
Returns the property type plus its generic type parameter, if any. |
java.lang.Class |
getPropertyTypeMap(java.util.Map optionalMapPropTypes,
EventAdapterService eventAdapterService)
Returns the property type for use with Map event representations. |
SchemaItem |
getPropertyTypeSchema(SchemaElementComplex complexProperty,
EventAdapterService eventAdapterService)
Returns the property type for use with DOM event representations. |
boolean |
isDynamic()
Returns true for dynamic properties. |
java.lang.String[] |
toPropertyArray()
Return a String-array of atomic property names. |
void |
toPropertyEPL(java.io.StringWriter writer)
Write the EPL-representation of the property. |
Methods inherited from class com.espertech.esper.event.property.PropertyBase |
---|
getPropertyNameAtomic |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexedProperty(java.lang.String propertyName)
public IndexedProperty(java.lang.String propertyName, int index)
propertyName
- is the property nameindex
- is the index to use to access the property valueMethod Detail |
---|
public boolean isDynamic()
Property
isDynamic
in interface Property
isDynamic
in class PropertyBase
public java.lang.String[] toPropertyArray()
Property
public int getIndex()
public EventPropertyGetterAndIndexed getGetter(BeanEventType eventType, EventAdapterService eventAdapterService)
Property
eventType
- is the type of event to make a getter foreventAdapterService
- factory for event beans and event types
public GenericPropertyDesc getPropertyTypeGeneric(BeanEventType eventType, EventAdapterService eventAdapterService)
Property
eventType
- is the event type representing the JavaBeaneventAdapterService
- for event adapters
public java.lang.Class getPropertyType(BeanEventType eventType, EventAdapterService eventAdapterService)
Property
eventType
- is the event type representing the JavaBeaneventAdapterService
- for event adapters
public java.lang.Class getPropertyTypeMap(java.util.Map optionalMapPropTypes, EventAdapterService eventAdapterService)
Property
optionalMapPropTypes
- a map-within-map type definition, if supplied, or null if not suppliedeventAdapterService
- for resolving further map event types that are property types
public MapEventPropertyGetterAndIndexed getGetterMap(java.util.Map optionalMapPropTypes, EventAdapterService eventAdapterService)
Property
optionalMapPropTypes
- a map-within-map type definition, if supplied, or null if not suppliedeventAdapterService
- for resolving further map event types that are property types
public void toPropertyEPL(java.io.StringWriter writer)
Property
writer
- to write topublic EventPropertyGetter getGetterDOM()
Property
public EventPropertyGetter getGetterDOM(SchemaElementComplex complexProperty, EventAdapterService eventAdapterService, BaseXMLEventType eventType, java.lang.String propertyExpression)
Property
complexProperty
- a element-within-element type definitioneventAdapterService
- for resolving or creating further event types that are property typeseventType
- the event typepropertyExpression
- the full property expression
public SchemaItem getPropertyTypeSchema(SchemaElementComplex complexProperty, EventAdapterService eventAdapterService)
Property
complexProperty
- a element-within-element type definitioneventAdapterService
- for resolving further element event types if defined
public static java.lang.Integer getIndex(java.lang.String propertyName)
propertyName
- property expression
public ObjectArrayEventPropertyGetterAndIndexed getGetterObjectArray(java.util.Map<java.lang.String,java.lang.Integer> indexPerProperty, java.util.Map<java.lang.String,java.lang.Object> nestableTypes, EventAdapterService eventAdapterService)
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |