public class EventPropertyDescriptor
extends java.lang.Object
Constructor and Description |
---|
EventPropertyDescriptor(java.lang.String propertyName,
EPType propertyType,
boolean requiresIndex,
boolean requiresMapkey,
boolean indexed,
boolean mapped,
boolean fragment)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
EPTypeClass |
getPropertyComponentEPType()
Returns the component type, if applicable.
|
java.lang.Class |
getPropertyComponentType()
Returns the component type, if applicable.
|
EPType |
getPropertyEPType()
Returns the property underlying type.
|
java.lang.String |
getPropertyName()
Returns the property name.
|
java.lang.Class |
getPropertyType()
Returns the property underlying type.
|
int |
hashCode() |
boolean |
isFragment()
|
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() |
public EventPropertyDescriptor(java.lang.String propertyName, EPType propertyType, boolean requiresIndex, boolean requiresMapkey, boolean indexed, boolean mapped, boolean fragment)
propertyName
- name of the propertypropertyType
- the property typerequiresIndex
- 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 EventTypepublic java.lang.String getPropertyName()
public java.lang.Class getPropertyType()
Note that a null values is possible as null values can be selected.
Use getPropertyEPType()
for access to type parameters.
public EPType getPropertyEPType()
Note that a null values is possible as null values can be selected.
public java.lang.Class getPropertyComponentType()
public EPTypeClass getPropertyComponentEPType()
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