public class EventPropertyDescriptor extends Object
Constructor and Description |
---|
EventPropertyDescriptor(String propertyName,
Class propertyType,
Class propertyComponentType,
boolean requiresIndex,
boolean requiresMapkey,
boolean indexed,
boolean mapped,
boolean fragment)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Class |
getPropertyComponentType()
Returns the component type.
|
String |
getPropertyName()
Returns the property name.
|
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.
|
String |
toString() |
public EventPropertyDescriptor(String propertyName, Class propertyType, 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 EventTypepublic String getPropertyName()
public Class getPropertyType()
Note that a null values is possible as null values can be selected.
public 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