public interface FormItemVisitor
FormItemVisitable interface.FormItemVisitable,
FormInterpretationAlgorithm,
FormItem| Modifier and Type | Method and Description |
|---|---|
void |
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. |
void |
visitFieldFormItem(InputItem item)
If a
<field> is visited, the FIA selects and queues
up any prompts based on the item's prompt counter and prompt
conditions. |
void |
visitInitialFormItem(InitialFormItem initial)
This element controls the initial interaction in a mixed initiative form.
|
void |
visitObjectFormItem(ObjectFormItem object)
This input item invokes a platform-specific object with various
parameters.
|
void |
visitRecordFormItem(RecordFormItem record)
An input item whose value is an audio clip recorded by the user.
|
void |
visitSubdialogFormItem(SubdialogFormItem subdialog)
A
<subdialog> input item is roughly like a function
call. |
void |
visitTransferFormItem(TransferFormItem transfer)
An input item which transfers the user to another telephone number.
|
void 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.void visitFieldFormItem(InputItem item) throws JVoiceXMLEvent
<field> is visited, the FIA selects and queues
up any prompts based on the item's prompt 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.item - the input form item to visit.JVoiceXMLEvent - Error or event executing the field.void 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.void 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.void 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.void 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.void visitTransferFormItem(TransferFormItem transfer) throws JVoiceXMLEvent
transfer - The transfer form item to visit.JVoiceXMLEvent - Error or event executing the transfer form item.