org.jvoicexml.interpreter.formitem
Class RecordFormItem

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

public final class RecordFormItem
extends InputItem

An input item whose value is an audio clip recorded by the user. A <record> element could collect a voice mail message, for instance.

Version:
$Revision: 110 $

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

Author:
Dirk Schnelle

Constructor Summary
RecordFormItem(VoiceXmlInterpreterContext context, VoiceXmlNode voiceNode)
          Create a new record 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

RecordFormItem

public RecordFormItem(VoiceXmlInterpreterContext context,
                      VoiceXmlNode voiceNode)
Create a new record 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.