![]() | EventType Methods |
The EventType type exposes the following members.
Name | Description | |
---|---|---|
![]() | GetFragmentType |
Returns the event type of the fragment that is the value of a property name or property expression.
Returns null if the property name or property expression is not valid or does not return a fragment for the event type. The provides a flag that indicates which properties provide fragment events. This is useful for navigating properties that are itself events or other well-defined types that the underlying event representation may represent as an event type. It is up to each event representation to determine what properties can be represented as event types themselves. The method takes a property name or property expression as a parameter. Property expressions may include indexed properties via the syntax "name[index]", mapped properties via the syntax "name('key')", nested properties via the syntax "outer.inner" or combinations thereof. The underlying event representation may not support providing fragments or therefore fragment event types for any or all properties, in which case the method returns null. Use the method to obtain a list of properties for which a fragment event type may be retrieved by this method. |
![]() | GetGetter |
Get the getter of an event property or property expression: Getters are useful when an application
receives events of the same event type multiple times and requires fast access
to an event property or nested, indexed or mapped property.
Returns null if the property name or property expression is not valid against the event type. The method takes a property name or property expression as a parameter. Property expressions may include indexed properties via the syntax "name[index]", mapped properties via the syntax "name('key')", nested properties via the syntax "outer.inner" or combinations thereof. |
![]() | GetGetterIndexed |
Get the getter of an event property that is a indexed event property: Getters are useful when an application
receives events of the same event type multiple times and requires fast access
to a indexed property.
Returns null if the property name is not valid against the event type or the property is not an indexed property. The method takes a indexed property name (and not a property expression) as a parameter. |
![]() | GetGetterMapped |
Get the getter of an event property that is a mapped event property: Getters are useful when an application
receives events of the same event type multiple times and requires fast access
to a mapped property.
Returns null if the property name is not valid against the event type or the property is not a mapped property. The method takes a mapped property name (and not a property expression) as a parameter. |
![]() | GetPropertyDescriptor |
Get the property descriptor for a given property of the event, or null
if a property by that name was not found.
The property name parameter does accept a property expression. It therefore does not allow the indexed, mapped or nested property expression syntax and only returns the descriptor for the event type's known properties. The method does not return property information of inner or nested types. For returning a property descriptor for nested, indexed or mapped properties use . |
![]() | GetPropertyType |
Get the type of an event property.
Returns null if the property name or property expression is not valid against the event type. Can also return null if a select-clause selects a constant null value. The method takes a property name or property expression as a parameter. Property expressions may include indexed properties via the syntax "name[index]", mapped properties via the syntax "name('key')", nested properties via the syntax "outer.inner" or combinations thereof. Returns unboxed (such as 'int.class') as well as boxed (System.Int32) type. |
![]() | IsProperty |
Check that the given property name or property expression is valid for this event type, ie. that the property
exists on the event type.
The method takes a property name or property expression as a parameter. Property expressions may include indexed properties via the syntax "name[index]", mapped properties via the syntax "name('key')", nested properties via the syntax "outer.inner" or combinations thereof. |