public final class ConvertedChoiceOption
extends java.lang.Object
implements java.lang.Cloneable
<if>
conditions. A grammar node can be used to bypass the generation of a
SRGS XML grammar from the accepted inputs. If at least one
ConvertedChoiceOption contains a grammar node, no SRGS grammar will
be generated. The created grammar is appended as a child node to the
generated anonymous field by calling setGrammar(Grammar).| Constructor and Description |
|---|
ConvertedChoiceOption(org.jvoicexml.xml.vxml.Field fld)
Constructs a new object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAcceptedInput(java.lang.String input)
Adds the given input to the list of accepted inputs.
|
protected ConvertedChoiceOption |
clone() |
org.jvoicexml.xml.srgs.Grammar |
createGrammarNode()
Creates an empty grammar node within the field.
|
org.jvoicexml.xml.vxml.AcceptType |
getAccept()
Retrieves the accept type.
|
java.util.Collection<java.lang.String> |
getAcceptedInputs()
Retrieves the accepted inputs.
|
java.lang.String |
getDtmf()
Retrieves the DTMF sequence of a choice node.
|
JVoiceXMLEvent |
getEvent()
Retrieves the event to be thrwon instead of a next.
|
org.jvoicexml.xml.srgs.Grammar |
getGrammar()
Retrieves the grammar object.
|
org.jvoicexml.xml.srgs.ModeType |
getMode()
Sets the mode type.
|
java.net.URI |
getNext()
Retrieves the URI of next dialog or document.
|
java.lang.String |
getText()
Retrieves the text within the choice node.
|
void |
setAccept(org.jvoicexml.xml.vxml.AcceptType acceptType)
Sets the accept type.
|
void |
setAcceptedInputs(java.util.Collection<java.lang.String> inputs)
Set the accepted inputs of the grammar.
|
void |
setDtmf(java.lang.String value)
Sets the DTMF sequence that is set in the choice node.
|
void |
setEvent(JVoiceXMLEvent e)
Sets the event to be thrown instead of a next.
|
void |
setGrammar(org.jvoicexml.xml.srgs.Grammar gram)
Sets the grammar object.
|
void |
setMode(org.jvoicexml.xml.srgs.ModeType modeType)
Retrieves the mode type.
|
void |
setNext(java.net.URI uri)
Sets the URI of next dialog or document.
|
void |
setText(java.lang.String txt)
Sets the text that is contained in the choice node.
|
public ConvertedChoiceOption(org.jvoicexml.xml.vxml.Field fld)
fld - the created fieldpublic org.jvoicexml.xml.srgs.ModeType getMode()
public void setMode(org.jvoicexml.xml.srgs.ModeType modeType)
modeType - the mode to setpublic java.util.Collection<java.lang.String> getAcceptedInputs()
public void setAcceptedInputs(java.util.Collection<java.lang.String> inputs)
inputs - the acceptedInputs to setpublic void addAcceptedInput(java.lang.String input)
input - the input to acceptpublic org.jvoicexml.xml.vxml.AcceptType getAccept()
public void setAccept(org.jvoicexml.xml.vxml.AcceptType acceptType)
acceptType - the accept to setpublic org.jvoicexml.xml.srgs.Grammar getGrammar()
public void setGrammar(org.jvoicexml.xml.srgs.Grammar gram)
gram - the grammar to setpublic org.jvoicexml.xml.srgs.Grammar createGrammarNode()
public java.net.URI getNext()
public void setNext(java.net.URI uri)
uri - the next to setpublic JVoiceXMLEvent getEvent()
public void setEvent(JVoiceXMLEvent e)
e - the event to setpublic java.lang.String getText()
public void setText(java.lang.String txt)
txt - the text to setpublic java.lang.String getDtmf()
public void setDtmf(java.lang.String value)
value - the DTMF sequence to setprotected ConvertedChoiceOption clone()
clone in class java.lang.Object