org.jvoicexml.interpreter.formitem
Class TransferFormItem

java.lang.Object
  extended by org.jvoicexml.interpreter.formitem.AbstractFormItem
      extended by org.jvoicexml.interpreter.formitem.InputItem
          extended by org.jvoicexml.interpreter.formitem.TransferFormItem
All Implemented Interfaces:
DialogConstruct, FormItem, PromptCountable, FormItemVisitable

public final class TransferFormItem
extends InputItem

An input item which transfers the user to another telephone number. If the transfer returns control, the field variable will be set to the result status.

Version:
$Revision: 110 $

Copyright © 2005 JVoiceXML group - http://jvoicexml.sourceforge.net/

Author:
Dirk Schnelle

Constructor Summary
TransferFormItem(VoiceXmlInterpreterContext context, VoiceXmlNode voiceNode)
          Create a new transfer input item.
 
Method Summary
 EventHandler accept(FormItemVisitor visitor)
          Execute the specific method of the visitor.
 Class<? extends Object> getShadowVariableContainer()
          Retrieves the implementation of the shadow var container for this input item.
 
Methods inherited from class org.jvoicexml.interpreter.formitem.InputItem
createShadowVarContainer, getEventCount, getPromptCount, getShadowVarContainerName, incrementEventCounter, incrementPromptCount, resetEventCounter, resetPromptCount
 
Methods inherited from class org.jvoicexml.interpreter.formitem.AbstractFormItem
getCatchElements, getContext, getExpr, getFormItemVariable, getName, getNode, isSelectable, setFormItemVariable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jvoicexml.interpreter.formitem.PromptCountable
getName, getNode
 

Constructor Detail

TransferFormItem

public TransferFormItem(VoiceXmlInterpreterContext context,
                        VoiceXmlNode voiceNode)
Create a new transfer input item.

Parameters:
context - The current VoiceXmlInterpreterContext.
voiceNode - The corresponding xml node in the VoiceXML document.
Method Detail

accept

public EventHandler accept(FormItemVisitor visitor)
                    throws JVoiceXMLEvent
Execute the specific method of the visitor.

Parameters:
visitor - The visitor to use.
Returns:
The event handler to use for the processing.
Throws:
JVoiceXMLEvent - Error or event visiting the form item.

getShadowVariableContainer

public Class<? extends Object> getShadowVariableContainer()
Retrieves the implementation of the shadow var container for this input item.

Specified by:
getShadowVariableContainer in class InputItem
Returns:
Class of the shadow var container, null if there is no shadow var container.
Stuff to complete
Implement this method.


Copyright © 2005-2007 JVoiceXML group.