|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormItemVisitor
A visitor for form items. Form items are visited in the collect
phase of the form interpretation algorithm. Visitable form items have
to implement the FormItemVisitable interface.
Copyright © 2005 JVoiceXML group - http://jvoicexml.sourceforge.net/
FormItemVisitable,
FormInterpretationAlgorithm,
FormItem| Method Summary | |
|---|---|
EventHandler |
visitBlockFormItem(BlockFormItem block)
A <block> element is visited by setting its form
item variable to true, evaluating its content, and then
bypassing the process phase. |
EventHandler |
visitFieldFormItem(FieldFormItem field)
If a <field> is visited, the FIA selects and queues
up any prompts based on the item'sprompt counter and prompt
conditions. |
EventHandler |
visitInitialFormItem(InitialFormItem initial)
This element controls the initial interaction in a mixed initiative form. |
EventHandler |
visitObjectFormItem(ObjectFormItem object)
This input item invokes a platform-specific object with various parameters. |
EventHandler |
visitRecordFormItem(RecordFormItem record)
An input item whose value is an audio clip recorded by the user. |
EventHandler |
visitSubdialogFormItem(SubdialogFormItem subdialog)
A <>subdialog> input item is roughly like a function
call. |
EventHandler |
visitTransferFormItem(TransferFormItem transfer)
An input item which transfers the user to another telephone number. |
| Method Detail |
|---|
EventHandler visitBlockFormItem(BlockFormItem block)
throws JVoiceXMLEvent
<block> element is visited by setting its form
item variable to true, evaluating its content, and then
bypassing the process phase. No input is collected, and the next
iteration of the FIA's main loop is entered.
block - The block form item to visit.
JVoiceXMLEvent - Error or event executing the block.
EventHandler visitFieldFormItem(FieldFormItem field)
throws JVoiceXMLEvent
<field> is visited, the FIA selects and queues
up any prompts based on the item'sprompt counter and prompt
conditions. Then it activates and listens for the field level
grammar(s) and any higher-level grammars, and waits for the item
to be filled or for some events to be generated.
field - The field form item to visit.
JVoiceXMLEvent - Error or event executing the field.
EventHandler visitInitialFormItem(InitialFormItem initial)
throws JVoiceXMLEvent
<initial>
element, the form item variable of <initial> becomes
true, thus removing it as an alternative for the FIA.
initial - The field form item to visit.
JVoiceXMLEvent - Error or event executing the initial form item.
EventHandler visitObjectFormItem(ObjectFormItem object)
throws JVoiceXMLEvent
<object> element by throwing
error.unsupported.objectname if the particular
platform-specific object is not supported (note that
objectname in error.unsupported.objectname is
a fixed string, so not substituted with the name of the unsupported
object; more specific error information may be provided in the event
_message special variable as described in
Section 5.2.2).
object - The object form item to visit.
JVoiceXMLEvent - Error or event executing the object form item.
EventHandler visitRecordFormItem(RecordFormItem record)
throws JVoiceXMLEvent
<record> element could collect a voice mail message,
for instance.
record - The record form item to visit.
JVoiceXMLEvent - Error or event executing the record form item.
EventHandler visitSubdialogFormItem(SubdialogFormItem subdialog)
throws JVoiceXMLEvent
<>subdialog> input item is roughly like a function
call. It invokes another dialog on the current page, or invokes another
VoiceXML document. It returns an ECMAScript Object as its result.
subdialog - The subdialog form item to visit.
JVoiceXMLEvent - Error or event executing the subdialog form item.
EventHandler visitTransferFormItem(TransferFormItem transfer)
throws JVoiceXMLEvent
transfer - The transfer form item to visit.
JVoiceXMLEvent - Error or event executing the transfer form item.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||