|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormItem
Form items are the elements that can be visited in the main loop of the form interpretation algorithm. Input items direct the FIA to gather a result for a specific element. When the FIA selects a control item, the control item may contain a block of procedural code to execute, or it may tell the FIA to set up the initial prompt-and-collect for a mixed initiative form.
Copyright © 2006-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
FormInterpretationAlgorithm| Method Summary | |
|---|---|
Collection<AbstractCatchElement> |
getCatchElements()
Get all nested <catch> elements. |
String |
getExpr()
Selector for the expr attribute. |
Object |
getFormItemVariable()
Retrieves the form item variable. |
String |
getName()
Retrieves the name of this FormItem.. |
VoiceXmlNode |
getNode()
Retrieves the encapsualed VoiceXmlNode. |
boolean |
isSelectable()
Guard conditions, which governs whether or not this form item can be selected by the form interpretation algorithm. |
void |
setFormItemVariable(Object value)
Sets the form item variable. |
| Methods inherited from interface org.jvoicexml.interpreter.FormItemVisitable |
|---|
accept |
| Method Detail |
|---|
Object getFormItemVariable()
Each form has an associated form item variable. which by default is set
to ECMA_SCRIPT_UNDEFINED when the form is entered. This
form item variable will contain the result of interpreting the form item.
An input item's form variable can be given a name using the name
attribute or left nameless in which case an internal name is generated.
Context.getUndefinedValue()void setFormItemVariable(Object value)
value - New value for the form item variable.String getName()
FormItem..
boolean isSelectable()
This default guard condition just tests to see if the form item variable has a value. If it does, this form item will not be visited.
true if the form item's variable has no value.getFormItemVariable(),
Context.getUndefinedValue()VoiceXmlNode getNode()
VoiceXmlNode.
VoiceXmlNode.String getExpr()
expr attribute.
expr attribute.Collection<AbstractCatchElement> getCatchElements()
<catch> elements.
<catch> tags.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||