org.jvoicexml.interpreter
Interface EventStrategy


public interface EventStrategy

A strategy to process an event coming from the implementation platform.

Each strategy is responsible to handle events of a given type getEventType(). Event processing happens in the process(JVoiceXMLEvent) method.

Version:
$Revision: 2129 $
Author:
Dirk Schnelle-Walka
See Also:
ImplementationPlatform

Method Summary
 int getCount()
          Retrieves the count of different occurrences of the event type returned by getEventType().
 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.
 

Method Detail

getEventType

String getEventType()
Retrieves the event type.

Returns:
the event type.

getCount

int getCount()
Retrieves the count of different occurrences of the event type returned by getEventType().

Returns:
The count.

isActive

boolean isActive()
                 throws SemanticError
Checks if this event strategy is active by evaluating the cond attribute of the corresponding catch node and special enabling conditions.

Returns:
true if this strategy is active.
Throws:
SemanticError - error evaluating the condition
Since:
0.7.1

process

void process(JVoiceXMLEvent event)
             throws JVoiceXMLEvent
Processes the event.

Parameters:
event - the caught event.
Throws:
JVoiceXMLEvent - Error or event processing the current tag.


Copyright © 2005-2010JVoiceXML group.