|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.interpreter.tagstrategy.AbstractTagStrategy
abstract class AbstractTagStrategy
Skeleton for a TagStrategy.
Copyright © 2006 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Field Summary | |
|---|---|
private Map<String,Object> |
attributes
Map with evaluated attributes. |
private static Logger |
LOGGER
Logger for this class. |
| Constructor Summary | |
|---|---|
AbstractTagStrategy()
Constructs a new object. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
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. |
protected Object |
getAttribute(String name)
Retrieves the value of the given attribute. |
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. |
protected boolean |
isAttributeDefined(String name)
Checks if the given attribute is defined, this means, neither null nor Context.getUndefinedValue(). |
TagStrategy |
newInstance()
Factory method to get a new instance of this strategy. |
void |
validateAttributes()
Validate the attributes of the current node. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jvoicexml.interpreter.TagStrategy |
|---|
execute, getEvalAttributes |
| Field Detail |
|---|
private static final Logger LOGGER
private Map<String,Object> attributes
| Constructor Detail |
|---|
public AbstractTagStrategy()
| Method Detail |
|---|
public TagStrategy newInstance()
newInstance in interface TagStrategyFormInterpretationAlgorithm
public void getAttributes(VoiceXmlInterpreterContext context,
VoiceXmlNode node)
<property> tag and stores their
values in the working copy of this strategy.
getAttributes in interface TagStrategycontext - The current VoiceXML interpreter context.node - The node to process.
public void evalAttributes(VoiceXmlInterpreterContext context)
throws SemanticError
evalAttributes in interface TagStrategycontext - The current VoiceXML interpreter context.
SemanticError - Error avaluating a variable.
public void validateAttributes()
throws ErrorEvent
validateAttributes in interface TagStrategyErrorEvent - Validation failed.public Object clone()
clone in class Objectprotected Object getAttribute(String name)
name - Name of the attribute.
null if the attribute
has no associated value.protected boolean isAttributeDefined(String name)
null nor Context.getUndefinedValue().
name - Name of the attribute.
true if the attribute is defined.public void dumpNode(VoiceXmlNode node)
dumpNode in interface TagStrategynode - The current node.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||