|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TagStrategy
Strategy to execute a node. This can happen in two cases:
Form initialization
Strategy of the interpreter and the FIA to initialize a form. When the
VoiceXmlInterpreter iterates overall VoiceXML
tags, and asks a TagStrategyFactory for a strategy
how to initialize the current node. If a matching strategy was found, it
is executed.
Tag execution by the FIA
Strategy of the FIA to execute a Node. When the
ForminterpretationAlgorithm comes to a VoiceXML tag, it asks
a TagStrategyFactory for a strategy how to process the
current node. If a matching strategy was found, the strategy is executed.
Execution of a TagStrategy comprises the following steps:
newInstancegetAttributesevalAttributesvalidateAttributesexecute
The tags for which a TagStrategy exists are executable
content.
Executable content refers to a block of procedural logic. Such logic appears
in:
<block> form item.<filled> actions in forms and
InputItems.<catch>, <help>,
et cetera).
Copyright © 2005-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
TagStrategyFactory,
FormInterpretationAlgorithm,
BlockFormItem,
InputItem| Method Summary | |
|---|---|
void |
dumpNode(VoiceXmlNode node)
Debugging facility to display the contents of all attributes in the node. |
void |
evalAttributes(VoiceXmlInterpreterContext context)
Evaluates all attributes which have to be evaluated by the scripting environment. |
void |
execute(VoiceXmlInterpreterContext context,
VoiceXmlInterpreter interpreter,
FormInterpretationAlgorithm fia,
FormItem item,
VoiceXmlNode node)
Executes the strategy with the current parameters. |
void |
getAttributes(VoiceXmlInterpreterContext context,
VoiceXmlNode node)
Retrieves all attributes specified by the given node or by a <property> tag and stores their
values in the working copy of this strategy. |
Collection<String> |
getEvalAttributes()
Retrieves the names of all attributes, which have to be evaluated by the scripting environment. |
TagStrategy |
newInstance()
Factory method to get a new instance of this strategy. |
void |
validateAttributes()
Validate the attributes of the current node. |
| Method Detail |
|---|
TagStrategy newInstance()
FormInterpretationAlgorithmCollection<String> getEvalAttributes()
null
if the related node has not attributes to be evaluated.
void getAttributes(VoiceXmlInterpreterContext context,
VoiceXmlNode node)
<property> tag and stores their
values in the working copy of this strategy.
context - The current VoiceXML interpreter context.node - The node to process.
void evalAttributes(VoiceXmlInterpreterContext context)
throws SemanticError
context - The current VoiceXML interpreter context.
SemanticError - Error evaluating a variable.
void validateAttributes()
throws ErrorEvent
ErrorEvent - Validation failed.
void execute(VoiceXmlInterpreterContext context,
VoiceXmlInterpreter interpreter,
FormInterpretationAlgorithm fia,
FormItem item,
VoiceXmlNode node)
throws JVoiceXMLEvent
context - The VoiceXML interpreter context.interpreter - The current VoiceXML interpreter.fia - The current form interpretation algorithm, maybe null
if there is no current fia.item - The current form item,maybe null if there is no
current form item.node - The current child node.
JVoiceXMLEvent - Error while executing this strategy.void dumpNode(VoiceXmlNode node)
node - The current node.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||