com.espertech.esper.event.property
Class SimpleProperty

java.lang.Object
  extended by com.espertech.esper.event.property.PropertyBase
      extended by com.espertech.esper.event.property.SimpleProperty
All Implemented Interfaces:
Property

public class SimpleProperty
extends PropertyBase

Represents a simple property of a given name.


Field Summary
 
Fields inherited from class com.espertech.esper.event.property.PropertyBase
propertyNameAtomic
 
Constructor Summary
SimpleProperty(java.lang.String propertyName)
          Ctor.
 
Method Summary
 EventPropertyGetter 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 xmlEventType, java.lang.String propertyExpression)
          Returns the getter-method for use with XML DOM event representations.
 MapEventPropertyGetter getGetterMap(java.util.Map optionalMapPropTypes, EventAdapterService eventAdapterService)
          Returns the getter-method for use with Map event representations.
 ObjectArrayEventPropertyGetter getGetterObjectArray(java.util.Map<java.lang.String,java.lang.Integer> indexPerProperty, java.util.Map<java.lang.String,java.lang.Object> nestableTypes, EventAdapterService eventAdapterService)
           
 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

SimpleProperty

public SimpleProperty(java.lang.String propertyName)
Ctor.

Parameters:
propertyName - is the property name
Method Detail

toPropertyArray

public java.lang.String[] toPropertyArray()
Description copied from interface: Property
Return a String-array of atomic property names.

Returns:
array of atomic names in a property expression

getGetter

public EventPropertyGetter getGetter(BeanEventType eventType,
                                     EventAdapterService eventAdapterService)
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
eventAdapterService - factory for event beans and event types
Returns:
fast property value getter for property

getPropertyType

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

Parameters:
eventType - is the event type representing the JavaBean
eventAdapterService - for event adapters
Returns:
property type class

getPropertyTypeGeneric

public GenericPropertyDesc getPropertyTypeGeneric(BeanEventType eventType,
                                                  EventAdapterService eventAdapterService)
Description copied from interface: Property
Returns the property type plus its generic type parameter, if any.

Parameters:
eventType - is the event type representing the JavaBean
eventAdapterService - for event adapters
Returns:
type and generic descriptor

getPropertyTypeMap

public java.lang.Class getPropertyTypeMap(java.util.Map optionalMapPropTypes,
                                          EventAdapterService eventAdapterService)
Description copied from interface: Property
Returns the property type for use with Map event representations.

Parameters:
optionalMapPropTypes - a map-within-map type definition, if supplied, or null if not supplied
eventAdapterService - for resolving further map event types that are property types
Returns:
property type @param optionalMapPropTypes

getGetterMap

public MapEventPropertyGetter getGetterMap(java.util.Map optionalMapPropTypes,
                                           EventAdapterService eventAdapterService)
Description copied from interface: Property
Returns the getter-method for use with Map event representations.

Parameters:
optionalMapPropTypes - a map-within-map type definition, if supplied, or null if not supplied
eventAdapterService - for resolving further map event types that are property types
Returns:
getter for maps

toPropertyEPL

public void toPropertyEPL(java.io.StringWriter writer)
Description copied from interface: Property
Write the EPL-representation of the property.

Parameters:
writer - to write to

getGetterDOM

public EventPropertyGetter getGetterDOM()
Description copied from interface: Property
Returns the getter-method for use with XML DOM event representations.

Returns:
getter

getGetterDOM

public EventPropertyGetter getGetterDOM(SchemaElementComplex complexProperty,
                                        EventAdapterService eventAdapterService,
                                        BaseXMLEventType xmlEventType,
                                        java.lang.String propertyExpression)
Description copied from interface: Property
Returns the getter-method for use with XML DOM event representations.

Parameters:
complexProperty - a element-within-element type definition
eventAdapterService - for resolving or creating further event types that are property types
xmlEventType - the event type
propertyExpression - the full property expression
Returns:
getter

getPropertyTypeSchema

public SchemaItem getPropertyTypeSchema(SchemaElementComplex complexProperty,
                                        EventAdapterService eventAdapterService)
Description copied from interface: Property
Returns the property type for use with DOM event representations.

Parameters:
complexProperty - a element-within-element type definition
eventAdapterService - for resolving further element event types if defined
Returns:
property type

isDynamic

public boolean isDynamic()
Description copied from interface: Property
Returns true for dynamic properties.

Specified by:
isDynamic in interface Property
Overrides:
isDynamic in class PropertyBase
Returns:
false for not-dynamic properties, true for dynamic properties.

getGetterObjectArray

public ObjectArrayEventPropertyGetter getGetterObjectArray(java.util.Map<java.lang.String,java.lang.Integer> indexPerProperty,
                                                           java.util.Map<java.lang.String,java.lang.Object> nestableTypes,
                                                           EventAdapterService eventAdapterService)

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