org.jvoicexml.interpreter.dialog
Class JVoiceXmlDialogFactory

java.lang.Object
  extended by org.jvoicexml.interpreter.dialog.JVoiceXmlDialogFactory
All Implemented Interfaces:
DialogFactory

public final class JVoiceXmlDialogFactory
extends Object
implements DialogFactory

Implementation of a DialogFactory.

Since:
0.4
Version:
$Revision: 2612 $
Author:
Dirk Schnelle-Walka

Constructor Summary
JVoiceXmlDialogFactory()
          Constructs a new object.
 
Method Summary
 void addDialogMapping(String tag, Dialog dialog)
          Adds the dialog as a template to handle the given tag.
 Collection<Dialog> getDialogs(Vxml vxml)
          Retrieves a collection of all Dialogs in the given VoiceXML document with the help of the given configuration.
 void setDialogs(Map<String,Dialog> mappings)
          Adds the given mappings of dialogs to tag names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JVoiceXmlDialogFactory

public JVoiceXmlDialogFactory()
Constructs a new object.

Method Detail

setDialogs

public void setDialogs(Map<String,Dialog> mappings)
Adds the given mappings of dialogs to tag names.

Parameters:
mappings -
Since:
0.7.5

addDialogMapping

public void addDialogMapping(String tag,
                             Dialog dialog)
Adds the dialog as a template to handle the given tag.

Parameters:
tag - the tag that is handled by the dialog
dialog - the dialog
Since:
0.7.5

getDialogs

public Collection<Dialog> getDialogs(Vxml vxml)
Retrieves a collection of all Dialogs in the given VoiceXML document with the help of the given configuration.

Specified by:
getDialogs in interface DialogFactory
Parameters:
vxml - the document.
Returns:
collection of all Dialogs.


Copyright © 2005-2010JVoiceXML group.