org.jvoicexml.interpreter.formitem
Class FieldShadowVarContainer

java.lang.Object
  extended by org.mozilla.javascript.ScriptableObject
      extended by org.jvoicexml.interpreter.formitem.FieldShadowVarContainer
All Implemented Interfaces:
Serializable, DebuggableObject, Scriptable

public final class FieldShadowVarContainer
extends ScriptableObject

Component that provides a container for the shadowed variables of a field. Currently the shadowed vars are hardcoded into this class as attributes, this is going to be changed. See http://www.w3.org/TR/voicexml20/#dml2.3.1 for details.

Since:
0.3.1
Version:
$Revision: 214 $

Copyright © 2005-2006 JVoiceXML group - http://jvoicexml.sourceforge.net/

Author:
Torben Hardt, Dirk Schnelle
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mozilla.javascript.ScriptableObject
DONTENUM, EMPTY, PERMANENT, READONLY
 
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
FieldShadowVarContainer()
          Constructs a new object.
 
Method Summary
 String getClassName()
          Return the name of the class.
 String getConfidence()
          gets the current confidence.
 String getInputmode()
          gets the current inputmode.
 String getInterpretation()
          gets the current interpretation.
 String getUtterance()
          gets the current utterance.
 void jsContructor()
          this method is a callback for rhino which gets called on instantiation.
 String jsGet_confidence()
          js (rhino) callback to provide javabean-like interface.
 String jsGet_inputmode()
          js (rhino) callback to provide javabean-like interface.
 String jsGet_markname()
          js (rhino) callback to provide javabean-like interface.
 String jsGet_utterance()
          js (rhino) callback to provide javabean-like interface.
 void jsSet_inputmode(String input)
          js (rhino) callback to provide javabean-like interface.
 String jsSet_interpretation()
          js (rhino) callback to provide javabean-like interface.
 void jsSet_interpretation(String inter)
          js (rhino) callback to provide javabean-like interface.
 void setConfidence(String conf)
          sets the confidence.
 void setInterpretation(String inter)
          sets the interpretation.
 void setMarkname(String mark)
          sets the markname.
 void setUtterance(String utter)
          sets the utterance.
 
Methods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isSealed, put, put, putProperty, putProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldShadowVarContainer

public FieldShadowVarContainer()
Constructs a new object.

Method Detail

jsContructor

public void jsContructor()
this method is a callback for rhino which gets called on instantiation. (virtual js constructor)


jsGet_utterance

public String jsGet_utterance()
js (rhino) callback to provide javabean-like interface.

Returns:
the current utterance

jsGet_confidence

public String jsGet_confidence()
js (rhino) callback to provide javabean-like interface.

Returns:
the current confidence

jsGet_markname

public String jsGet_markname()
js (rhino) callback to provide javabean-like interface.

Returns:
the current utterance
Since:
0.5

jsGet_inputmode

public String jsGet_inputmode()
js (rhino) callback to provide javabean-like interface.

Returns:
the current inputmode

jsSet_inputmode

public void jsSet_inputmode(String input)
js (rhino) callback to provide javabean-like interface. sets the inputmode

Parameters:
input - the new inputmode

jsSet_interpretation

public String jsSet_interpretation()
js (rhino) callback to provide javabean-like interface.

Returns:
the current interpretation

jsSet_interpretation

public void jsSet_interpretation(String inter)
js (rhino) callback to provide javabean-like interface. sets the interpretation

Parameters:
inter - the new interpretation

getConfidence

public String getConfidence()
gets the current confidence.

Returns:
the current confidence

getInputmode

public String getInputmode()
gets the current inputmode.

Returns:
the current inputmode

getInterpretation

public String getInterpretation()
gets the current interpretation.

Returns:
the current interpretation

getUtterance

public String getUtterance()
gets the current utterance.

Returns:
the current utterance

setConfidence

public void setConfidence(String conf)
sets the confidence.

Parameters:
conf - the new confidence

setInterpretation

public void setInterpretation(String inter)
sets the interpretation.

Parameters:
inter - the new interpretation

setUtterance

public void setUtterance(String utter)
sets the utterance.

Parameters:
utter - the new utterance

setMarkname

public void setMarkname(String mark)
sets the markname.

Parameters:
mark - The name of the mark.
Since:
0.5

getClassName

public String getClassName()
Return the name of the class. This is typically the same name as the constructor.

Specified by:
getClassName in interface Scriptable
Specified by:
getClassName in class ScriptableObject
Returns:
Name of the class.


Copyright © 2005-2007 JVoiceXML group.