public interface EventStrategy
Each strategy is responsible to handle events of a given type
getEventType(). Event processing happens in the
process(JVoiceXMLEvent) method.
ImplementationPlatform| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Retrieves the count of different occurrences of the event type returned
by
getEventType(). |
java.lang.String |
getEventType()
Retrieves the event type.
|
boolean |
isActive()
Checks if this event strategy is active by evaluating the
cond attribute of the corresponding catch node and
special enabling conditions. |
void |
process(JVoiceXMLEvent event)
Processes the event.
|
java.lang.String getEventType()
int getCount()
getEventType().boolean isActive()
throws SemanticError
cond attribute of the corresponding catch node and
special enabling conditions.true if this strategy is active.SemanticError - error evaluating the conditionvoid process(JVoiceXMLEvent event) throws JVoiceXMLEvent
event - the caught event.JVoiceXMLEvent - Error or event processing the current tag.