|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventHandler
Event handler to catch events generated from the
ImplementationPlatform.
When an event is thrown, the scope in which the event is handled and its enclosing scopes are examined to find the best qualified catch element, according to the following algorithm:
The name of a thrown event matches the catch element event name if it is an exact match, a prefix match or if the catch event attribute is not specified (note that the event attribute cannot be specified as an empty string - event="" is syntactically invalid). A prefix match occurs when the catch element event attribute is a token prefix of the name of the event being thrown, where the dot is the token separator, all trailing dots are removed, and a remaining empty string matches everything.
Copyright © 2005-2006 JVoiceXML group -
http://jvoicexml.sourceforge.net/
| Method Summary | |
|---|---|
void |
addStrategy(AbstractEventStrategy strategy)
Add a strategy for the given event type. |
void |
collect(VoiceXmlInterpreterContext context,
VoiceXmlInterpreter interpreter,
FormInterpretationAlgorithm fia,
FieldFormItem field)
Add all event handlers defined in the given field. |
JVoiceXMLEvent |
getEvent()
Retrieve the event. |
void |
processEvent(InputItem input)
Process the last received event. |
JVoiceXMLEvent |
waitEvent()
Wait until an event was generated in the implementation platform. |
| Methods inherited from interface org.jvoicexml.event.EventObserver |
|---|
notifyEvent |
| Method Detail |
|---|
void collect(VoiceXmlInterpreterContext context,
VoiceXmlInterpreter interpreter,
FormInterpretationAlgorithm fia,
FieldFormItem field)
context - The current VoiceXmlInterpreterContextinterpreter - The current VoiceXmlInterpreterfia - The current FIA.field - The field.JVoiceXMLEvent waitEvent()
void processEvent(InputItem input)
throws JVoiceXMLEvent
input - The current input item.
JVoiceXMLEvent - Error or event processing the event.void addStrategy(AbstractEventStrategy strategy)
strategy - The strategy to add.JVoiceXMLEvent getEvent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||