public interface ComponentEvent extends Event
Modifier and Type | Method and Description |
---|---|
Object |
coerceContext(int index,
String desiredTypeName)
Coerces a context value to a particular type.
|
Object[] |
getContext()
Returns the underlying
EventContext as a (possibly empty) array. |
EventContext |
getEventContext()
Returns the underlying event context.
|
boolean |
matches(String eventType,
String componentId,
int parameterCount)
Returns true if the event matches the provided criteria and the event has not yet been aborted.
|
isAborted, setMethodDescription, storeResult
boolean matches(String eventType, String componentId, int parameterCount)
eventType
- the type of event (case insensitive match)componentId
- component is to match against (case insensitive), or the empty stringparameterCount
- minimum number of context valuesObject coerceContext(int index, String desiredTypeName)
index
- the index of the context valuedesiredTypeName
- the desired typeObject[] getContext()
EventContext
as a (possibly empty) array.EventContext getEventContext()
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.