com.ibm.voice
Class ProcessingBean

java.lang.Object
  |
  +--com.ibm.voice.ProcessingBean
Direct Known Subclasses:
CommandListener, Listener, Speaker

public abstract class ProcessingBean
extends java.lang.Object
implements java.io.Serializable

This abstract class is a base class for implementation of Processing Bean Design Pattern. All beans that support this design pattern must extend ProcessingBean.

Version:
1.0 Nov. 11, 1998
See Also:
Serialized Form

Constructor Summary
ProcessingBean()
          A default constructor with no arguments.
 
Method Summary
 void addActionErrorListener(ActionErrorListener newListener)
          Adds a specified actionError listener to receive actionError events from this ProcessingBean.
 void addFetchArgumentsListener(FetchArgumentsListener newListener)
          Adds a specified fetchArguments listener to recieve fetchArguments events from this ProcessingBean.
 void addTriggerNextActionListener(TriggerNextActionListener newListener)
          Add a specified triggerNextAction listener to receive triggerNextAction events from this ProcessingBean.
 void removeActionErrorListener(ActionErrorListener newListener)
          Removes a specified actionError listener so it no longer receives actionError events from this ProcessingBean.
 void removeFetchArgumentsListener(FetchArgumentsListener newListener)
          Removes a specified fetchArguments listener so it no longer receives fetchArguments events from this ProcessingBean.
 void removeTriggerNextActionListener(TriggerNextActionListener newListener)
          Removes a specified trigerNextAction listener so it no longer receives triggerNextAction events from this ProcessingBean.
 void triggerAction()
          It is invoked to evaluate the function.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessingBean

public ProcessingBean()
A default constructor with no arguments.
Method Detail

addActionErrorListener

public void addActionErrorListener(ActionErrorListener newListener)
Adds a specified actionError listener to receive actionError events from this ProcessingBean.
Parameters:
newListener - ActionErrorListener
Throws:
java.lang.IllegalArgumentException - if newListener is null.

addFetchArgumentsListener

public void addFetchArgumentsListener(FetchArgumentsListener newListener)
Adds a specified fetchArguments listener to recieve fetchArguments events from this ProcessingBean.
Parameters:
newListener - FetchArgumensListener
Throws:
java.lang.IllegalArgumentException - if newListener is null.

addTriggerNextActionListener

public void addTriggerNextActionListener(TriggerNextActionListener newListener)
Add a specified triggerNextAction listener to receive triggerNextAction events from this ProcessingBean.
Parameters:
newListener - TriggerNextActionListener
Throws:
java.lang.IllegalArgumentException - if newListener is null.

removeActionErrorListener

public void removeActionErrorListener(ActionErrorListener newListener)
Removes a specified actionError listener so it no longer receives actionError events from this ProcessingBean.
Parameters:
newListener - ActionErrorListener
Throws:
java.lang.IllegalArgumentException - if newListener is null.

removeFetchArgumentsListener

public void removeFetchArgumentsListener(FetchArgumentsListener newListener)
Removes a specified fetchArguments listener so it no longer receives fetchArguments events from this ProcessingBean.
Parameters:
newListener - fetchArgumentsListener
Throws:
java.lang.IllegalArgumentException - if newListener is null.

removeTriggerNextActionListener

public void removeTriggerNextActionListener(TriggerNextActionListener newListener)
Removes a specified trigerNextAction listener so it no longer receives triggerNextAction events from this ProcessingBean.
Parameters:
newListener - TriggerNextActionListener
Throws:
java.lang.IllegalArgumentException - if newListener is null.

triggerAction

public void triggerAction()
It is invoked to evaluate the function.