org.jvoicexml.interpreter.form
Class ExecutablePlainForm

java.lang.Object
  extended by org.jvoicexml.interpreter.form.ExecutablePlainForm
All Implemented Interfaces:
DialogConstruct, ExecutableForm

public final class ExecutablePlainForm
extends Object
implements ExecutableForm

Implementation of an ExecutableForm for the <form> tag.

Since:
0.4
Version:
$Revision: 216 $

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

Author:
Dirk Schnelle
See Also:
Form

Field Summary
 
Fields inherited from interface org.jvoicexml.interpreter.ExecutableForm
UNNAMED_FORM
 
Constructor Summary
ExecutablePlainForm(Form tag)
          Constructs a new object.
 
Method Summary
 NodeList getChildNodes()
          Retrieves the child nodes of this executable form.
 Collection<FormItem> getFormItems(VoiceXmlInterpreterContext context)
          Retrieves all FormItems, defined in this form.
 String getId()
          Retrieves the identifier of this ExecutableForm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutablePlainForm

public ExecutablePlainForm(Form tag)
Constructs a new object.

Parameters:
tag - The form.
Method Detail

getId

public String getId()
Retrieves the identifier of this ExecutableForm. It allows the ExecutableForm to be target of a <goto> or a <submit>.

If the related form or menu does not provide an id, UNNAMED_FORM is returned as the id for this form.

Specified by:
getId in interface ExecutableForm
Returns:
Identifier for this form.
See Also:
ExecutableForm.UNNAMED_FORM

getChildNodes

public NodeList getChildNodes()
Retrieves the child nodes of this executable form.

Specified by:
getChildNodes in interface ExecutableForm
Returns:
Child nodes of this executable form

getFormItems

public Collection<FormItem> getFormItems(VoiceXmlInterpreterContext context)
Retrieves all FormItems, defined in this form.

Specified by:
getFormItems in interface ExecutableForm
Parameters:
context - The current context.
Returns:
Collection of FormItems.


Copyright © 2005-2007 JVoiceXML group.