|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.EventPropertyDescriptor
public class EventPropertyDescriptor
Descriptor for event property names, property types and access metadata.
Constructor Summary | |
---|---|
EventPropertyDescriptor(java.lang.String propertyName,
java.lang.Class propertyType,
java.lang.Class propertyComponentType,
boolean requiresIndex,
boolean requiresMapkey,
boolean indexed,
boolean mapped,
boolean fragment)
Ctor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.Class |
getPropertyComponentType()
Returns the component type. |
java.lang.String |
getPropertyName()
Returns the property name. |
java.lang.Class |
getPropertyType()
Returns the property underlying type. |
int |
hashCode()
|
boolean |
isFragment()
Returns true to indicate that the property value can itself be represented as an EventBean
and that the property type can be represented as an EventType . |
boolean |
isIndexed()
Returns true for indexed properties, returns false for all other property styles. |
boolean |
isMapped()
Returns true for mapped properties, returns false for all other property styles. |
boolean |
isRequiresIndex()
Returns true to indicate that the property is an indexed property and requires an index to access elements of the indexed property. |
boolean |
isRequiresMapkey()
Returns true to indicate that the property is a mapped property and requires a map key to access elements of the mapped property. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EventPropertyDescriptor(java.lang.String propertyName, java.lang.Class propertyType, java.lang.Class propertyComponentType, boolean requiresIndex, boolean requiresMapkey, boolean indexed, boolean mapped, boolean fragment)
propertyName
- name of the propertypropertyType
- the property typepropertyComponentType
- is the component type if the property is an indexed propertyrequiresIndex
- true if the access to property value access requires an integer index valuerequiresMapkey
- true if the access to property value access requires a string map keyindexed
- true if the property is an indexed property, i.e. type is an array or the property value access requires an integer index valuemapped
- true if the property is a mapped property, i.e. type is an Map or the property value access requires an string map keyfragment
- true if the property value can be represented as an EventBean and property type can be represented as an EventTypeMethod Detail |
---|
public java.lang.String getPropertyName()
public java.lang.Class getPropertyType()
Note that a null values is possible as null values can be selected.
public java.lang.Class getPropertyComponentType()
public boolean isRequiresIndex()
For JavaBean-style events, a getter-method that takes a single integer parameter is considered an indexed property that requires an index for access.
A getter-method that returns an array is considered an index property but does not require an index for access.
public boolean isRequiresMapkey()
For JavaBean-style events, a getter-method that takes a single string parameter is considered a mapped property that requires a map key for access.
A getter-method that returns a Map is considered a mapped property but does not require a map key for access.
public boolean isIndexed()
An indexed property is a property returning an array value or a getter-method taking a single integer parameter.
public boolean isMapped()
A mapped property is a property returning a Map value or a getter-method taking a single string (key) parameter.
public boolean isFragment()
EventBean
and that the property type can be represented as an EventType
.
EventType
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
© 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 |