com.ibm.voice
Class FunctionBean

java.lang.Object
  |
  +--com.ibm.voice.FunctionBean
Direct Known Subclasses:
CommandItem

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

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

See Also:
Serialized Form

Constructor Summary
FunctionBean()
           
 
Method Summary
 void addFetchArgumentsListener(FetchArgumentsListener l)
          Adds a FetchArgumentsEvent listener.
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Adds a PropertyChange listener.
 void addTriggerNextActionListener(TriggerNextActionListener l)
          Adds a TriggerNextActionEvent listener.
 boolean getAutoAction()
          Returns true if an autoaction is enabled, otherwise - false.
 void removeFetchArgumentsListener(FetchArgumentsListener l)
          Removes a FetchArgumentsEvent listener.
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Removes a PropertyChange listener.
 void removeTriggerNextActionListener(TriggerNextActionListener l)
          Removes a TriggerNextActionEvent listener.
 void setAutoAction(boolean isAutoAction)
          Sets this in true if an immediate evaluation after setting of any argument is needed.
 void triggerAction()
          Performs evaluations.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionBean

public FunctionBean()
Method Detail

addFetchArgumentsListener

public void addFetchArgumentsListener(FetchArgumentsListener l)
Adds a FetchArgumentsEvent listener.
Parameters:
l - com.ibm.voice.events.FetchArgumentsEventListener.

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a PropertyChange listener.
Parameters:
l - listener to be added.

addTriggerNextActionListener

public void addTriggerNextActionListener(TriggerNextActionListener l)
Adds a TriggerNextActionEvent listener.
Parameters:
l - com.ibm.voice.events.TriggerNextActionListener.

getAutoAction

public boolean getAutoAction()
Returns true if an autoaction is enabled, otherwise - false.
Returns:
boolean value of the autoAction property.
See Also:
setAutoAction(boolean)

removeFetchArgumentsListener

public void removeFetchArgumentsListener(FetchArgumentsListener l)
Removes a FetchArgumentsEvent listener.
Parameters:
l - com.ibm.voice.events.FetchArgumentsListener.

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChange listener.
Parameters:
l - listener to be removed.

removeTriggerNextActionListener

public void removeTriggerNextActionListener(TriggerNextActionListener l)
Removes a TriggerNextActionEvent listener.
Parameters:
l - com.ibm.voice.events.TriggerNextActionListener.

setAutoAction

public void setAutoAction(boolean isAutoAction)
Sets this in true if an immediate evaluation after setting of any argument is needed.
Parameters:
isAutoAction - new boolean value of the autoAction property.

triggerAction

public void triggerAction()
Performs evaluations.