|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.interpreter.formitem.AbstractFormItem
public abstract class AbstractFormItem
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 © 2005-2006 JVoiceXML group - http://jvoicexml.sourceforge.net/
FormInterpretationAlgorithm| Constructor Summary | |
|---|---|
AbstractFormItem(VoiceXmlInterpreterContext ctx,
VoiceXmlNode voiceNode)
Create a new form item. |
|
| Method Summary | |
|---|---|
Collection<AbstractCatchElement> |
getCatchElements()
Get all nested <catch> elements. |
protected VoiceXmlInterpreterContext |
getContext()
Selector for the current VoiceXmlInterpreterContext. |
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jvoicexml.interpreter.FormItemVisitable |
|---|
accept |
| Constructor Detail |
|---|
public AbstractFormItem(VoiceXmlInterpreterContext ctx,
VoiceXmlNode voiceNode)
ctx - The current VoiceXmlInterpreterContext.voiceNode - The corresponding XML node in the VoiceXML document.| Method Detail |
|---|
public final 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.
getFormItemVariable in interface FormItemContext.getUndefinedValue()public void setFormItemVariable(Object value)
setFormItemVariable in interface FormItemvalue - New value for the form item variable.public final String getName()
FormItem..
getName in interface FormItempublic final String getExpr()
expr attribute.
getExpr in interface FormItemexpr attribute.public 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.
isSelectable in interface FormItemtrue if the form item's variable has no value.FormItem.getFormItemVariable(),
Context.getUndefinedValue()public final VoiceXmlNode getNode()
VoiceXmlNode.
getNode in interface FormItemVoiceXmlNode.protected final VoiceXmlInterpreterContext getContext()
VoiceXmlInterpreterContext.
VoiceXmlInterpreterContext.public Collection<AbstractCatchElement> getCatchElements()
<catch> elements.
getCatchElements in interface FormItem<catch> tags.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||