com.ibm.voice
Class CommandItem

java.lang.Object
  |
  +--com.ibm.voice.FunctionBean
        |
        +--com.ibm.voice.CommandItem

public class CommandItem
extends FunctionBean

This bean is used as part of command recognition.

Version:
1.0 29 Jul 1999
See Also:
Serialized Form

Constructor Summary
CommandItem()
          A default constructor with no arguments.
 
Method Summary
 void addCommandAcceptedListener(CommandAcceptedListener newListener)
          Add a new CommandAccepted listener.
 java.lang.String getAboutThisBean()
          Returns a special formatted string intended for use by the editor of this property.
 java.lang.String getCommandName()
          Gets the commandName property (java.lang.String) value.
 java.lang.String getInputCommand()
          Gets the inputCommand property (java.lang.String) value.
 void removeCommandAcceptedListener(CommandAcceptedListener newListener)
          Removes the CommandAccepted listener.
 void setAboutThisBean(java.lang.String s)
          Setter method for the aboutThisBean property to be available in the properties list.
 void setCommandName(java.lang.String commandName)
          Sets the commandName property (java.lang.String) value.
 void setInputCommand(java.lang.String inputCommand)
          Sets the inputCommand property (java.lang.String) value.
 
Methods inherited from class com.ibm.voice.FunctionBean
addFetchArgumentsListener, addPropertyChangeListener, addTriggerNextActionListener, getAutoAction, removeFetchArgumentsListener, removePropertyChangeListener, removeTriggerNextActionListener, setAutoAction, triggerAction
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandItem

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

addCommandAcceptedListener

public void addCommandAcceptedListener(CommandAcceptedListener newListener)
Add a new CommandAccepted listener.
Parameters:
newListener - com.ibm.voice.events.CommandAcceptedListener

getAboutThisBean

public java.lang.String getAboutThisBean()
Returns a special formatted string intended for use by the editor of this property.
Returns:
the special formatted string for use by the editor of this property

getCommandName

public java.lang.String getCommandName()
Gets the commandName property (java.lang.String) value.
Returns:
The commandName property value.
See Also:
setCommandName(java.lang.String)

getInputCommand

public java.lang.String getInputCommand()
Gets the inputCommand property (java.lang.String) value.
Returns:
The inputCommand property value.
See Also:
setInputCommand(java.lang.String)

removeCommandAcceptedListener

public void removeCommandAcceptedListener(CommandAcceptedListener newListener)
Removes the CommandAccepted listener.
Parameters:
newListener - com.ibm.voice.events.CommandAcceptedListener

setAboutThisBean

public void setAboutThisBean(java.lang.String s)
Setter method for the aboutThisBean property to be available in the properties list. This method should not be used to set the aboutThisBean property value.
Parameters:
s - the special formatted string

setCommandName

public void setCommandName(java.lang.String commandName)
Sets the commandName property (java.lang.String) value.
Parameters:
commandName - The new value for the property.
Throws:
IllegalArgumentException - If passed argument is null.
See Also:
getCommandName()

setInputCommand

public void setInputCommand(java.lang.String inputCommand)
Sets the inputCommand property (java.lang.String) value.
Parameters:
inputCommand - The new value for the property.
See Also:
getInputCommand()