com.espertech.esper.event.bean
Class InternalEventPropDescriptor

java.lang.Object
  extended by com.espertech.esper.event.bean.InternalEventPropDescriptor

public class InternalEventPropDescriptor
extends java.lang.Object

Encapsulates the event property information available after introspecting an event's class members for getter methods.


Constructor Summary
InternalEventPropDescriptor(java.lang.String propertyName, java.lang.reflect.Field accessorField, EventPropertyType propertyType)
          Ctor.
InternalEventPropDescriptor(java.lang.String propertyName, java.lang.reflect.Method readMethod, EventPropertyType propertyType)
          Ctor.
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.reflect.Field getAccessorField()
          Returns the accessor field.
 java.lang.String getPropertyName()
          Return the property name, for mapped and indexed properties this is just the property name without parantheses or brackets.
 EventPropertyType getPropertyType()
          Returns an enum indicating the type of property: simple, mapped, indexed.
 java.lang.reflect.Method getReadMethod()
          Returns the read method.
 java.lang.Class getReturnType()
          Returns the type of the underlying method or field of the event property.
 GenericPropertyDesc getReturnTypeGeneric()
          Returns the type of the underlying method or field of the event property.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InternalEventPropDescriptor

public InternalEventPropDescriptor(java.lang.String propertyName,
                                   java.lang.reflect.Method readMethod,
                                   EventPropertyType propertyType)
Ctor.

Parameters:
propertyName - - name of property, from getter method
readMethod - - read method to get value
propertyType - - type of property

InternalEventPropDescriptor

public InternalEventPropDescriptor(java.lang.String propertyName,
                                   java.lang.reflect.Field accessorField,
                                   EventPropertyType propertyType)
Ctor.

Parameters:
propertyName - - name of property, from getter method
accessorField - - field to get value from
propertyType - - type of property
Method Detail

getPropertyName

public java.lang.String getPropertyName()
Return the property name, for mapped and indexed properties this is just the property name without parantheses or brackets.

Returns:
property name

getPropertyType

public EventPropertyType getPropertyType()
Returns an enum indicating the type of property: simple, mapped, indexed.

Returns:
enum with property type info

getReadMethod

public java.lang.reflect.Method getReadMethod()
Returns the read method. Can return null if the property is backed by a field..

Returns:
read method of null if field property

getAccessorField

public java.lang.reflect.Field getAccessorField()
Returns the accessor field. Can return null if the property is backed by a method.

Returns:
accessor field of null if method property

getReturnType

public java.lang.Class getReturnType()
Returns the type of the underlying method or field of the event property.

Returns:
return type

getReturnTypeGeneric

public GenericPropertyDesc getReturnTypeGeneric()
Returns the type of the underlying method or field of the event property.

Returns:
return type

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

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