|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.xml.AbstractXmlNode
org.jvoicexml.xml.vxml.Goto
public final class Goto
Go to another dialog in the same or different document.
The <goto> element is used to:
To transition to another form item, use the nextitem attribute, or the expritem attribute if the form item name is computed using an ECMAScript expression:
<goto nextitem="ssn_confirm"/>
<goto expritem="(type==12)? 'ssn_confirm' : 'reject'"/>
To go to another dialog in the same document, use next (or expr) with only a URI fragment:
<goto next="#another_dialog"/>
<goto expr="'#' + 'another_dialog'"/>
To transition to another document, use next (or expr) with a URI:
<goto next="http://flight.example.com/reserve_seat"/>
<goto next="./special_lunch#wants_vegan"/>
The URI may be absolute or relative to the current document. You may specify the starting dialog in the next document using a fragment that corresponds to the value of the id attribute of a dialog. If no fragment is specified, the first dialog in that document is chosen.
Copyright © 2005-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
Form| Field Summary | |
|---|---|
static String |
ATTRIBUTE_EXPR
An ECMAScript expression that yields the URI. |
static String |
ATTRIBUTE_EXPRITEM
An ECMAScript expression that yields the name of the next form item to visit. |
static String |
ATTRIBUTE_FETCHAUDIO
The URI of the audio clip to play while the fetch is being done. |
static String |
ATTRIBUTE_FETCHHINT
Defines when the interpreter context should retrieve content from the server. prefetch indicates a file may be downloaded when the page is loaded, whereas safe indicates a file that should only be downloaded when actually needed. |
static String |
ATTRIBUTE_FETCHTIMEOUT
The interval to wait for the content to be returned before throwing an error.badfetch event. |
static String |
ATTRIBUTE_MAXAGE
Indicates that the document is willing to use content whose age is no greater than the specified time in seconds. |
static String |
ATTRIBUTE_MAXSTALE
Indicates that the document is willing to use content that has exceeded its expiration time. |
protected static ArrayList<String> |
ATTRIBUTE_NAMES
Supported attribute names for this node. |
static String |
ATTRIBUTE_NEXT
The URI to which to transition. |
static String |
ATTRIBUTE_NEXTITEM
The name of the next form item to visit in the current form. |
static String |
TAG_NAME
Name of the tag. |
| Constructor Summary | |
|---|---|
Goto()
Construct a new goto object without a node. |
|
| Method Summary | |
|---|---|
protected boolean |
canContainChild(String tagName)
Can the specified sub-tag be contained within this node? |
Collection<String> |
getAttributeNames()
Returns a collection of permitted attribute names for the node. |
NodeList |
getChildNodes()
A NodeList that contains all children of this node. |
String |
getExpr()
Retrieve the expr attribute. |
String |
getExpritem()
Retrieve the expritem attribute. |
String |
getFetchaudio()
Retrieve the fetchaudio attribute. |
String |
getFetchhint()
Retrieve the fetchhint attribute. |
String |
getFetchtimeout()
Retrieve the fetchtimeout attribute. |
String |
getMaxage()
Retrieve the maxage attribute. |
String |
getMaxstale()
Retrieve the maxstale attribute. |
String |
getNext()
Retrieve the next attribute. |
String |
getNextitem()
Retrieve the nextitem attribute. |
String |
getTagName()
Get the name of the tag for the derived node. |
VoiceXmlNode |
newInstance(Node n)
Create a new instance for the given node. |
void |
setExpr(String expr)
Set the expr attribute. |
void |
setExpritem(String expritem)
Set the expritem attribute. |
void |
setFetchaudio(String fetchaudio)
Set the fetchaudio attribute. |
void |
setFetchhint(String fetchhint)
Set the fetchhint attribute. |
void |
setFetchtimeout(String fetchtimeout)
Set the fetchtimeout attribute. |
void |
setMaxage(String maxage)
Set the maxage attribute. |
void |
setMaxstale(String maxstale)
Set the maxstale attribute. |
void |
setNext(String next)
Set the next attribute. |
void |
setNextitem(String nextitem)
Set the nextitem attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jvoicexml.xml.XmlNode |
|---|
addChild, getAttribute, getChildNodes, getNode, setAttribute |
| Methods inherited from interface org.jvoicexml.xml.XmlWritable |
|---|
writeChildrenXml, writeXml |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Field Detail |
|---|
public static final String TAG_NAME
public static final String ATTRIBUTE_NEXT
public static final String ATTRIBUTE_EXPR
public static final String ATTRIBUTE_NEXTITEM
public static final String ATTRIBUTE_EXPRITEM
public static final String ATTRIBUTE_FETCHAUDIO
public static final String ATTRIBUTE_FETCHTIMEOUT
public static final String ATTRIBUTE_FETCHHINT
public static final String ATTRIBUTE_MAXAGE
public static final String ATTRIBUTE_MAXSTALE
protected static final ArrayList<String> ATTRIBUTE_NAMES
| Constructor Detail |
|---|
public Goto()
This is necessary for the node factory.
VoiceXmlNodeFactory| Method Detail |
|---|
public String getTagName()
public VoiceXmlNode newInstance(Node n)
n - The node to encapsulate.
XmlNodeFactorypublic String getNext()
ATTRIBUTE_NEXTpublic void setNext(String next)
next - Value of the next attribute.ATTRIBUTE_NEXTpublic String getExpr()
ATTRIBUTE_EXPRpublic void setExpr(String expr)
expr - Value of the expr attribute.ATTRIBUTE_EXPRpublic String getNextitem()
ATTRIBUTE_NEXTITEMpublic void setNextitem(String nextitem)
nextitem - Value of the nextitem attribute.ATTRIBUTE_NEXTITEMpublic String getExpritem()
ATTRIBUTE_EXPRITEMpublic void setExpritem(String expritem)
expritem - Value of the expritem attribute.ATTRIBUTE_EXPRITEMpublic String getFetchaudio()
ATTRIBUTE_FETCHAUDIOpublic void setFetchaudio(String fetchaudio)
fetchaudio - Value of the fetchaudio attribute.ATTRIBUTE_FETCHAUDIOpublic String getFetchhint()
ATTRIBUTE_FETCHHINTpublic void setFetchhint(String fetchhint)
fetchhint - Value of the fetchhint attribute.ATTRIBUTE_FETCHHINTpublic String getFetchtimeout()
ATTRIBUTE_FETCHTIMEOUTpublic void setFetchtimeout(String fetchtimeout)
fetchtimeout - Value of the fetchtimeout attribute.ATTRIBUTE_FETCHTIMEOUTpublic String getMaxage()
ATTRIBUTE_MAXAGEpublic void setMaxage(String maxage)
maxage - Value of the maxage attribute.ATTRIBUTE_MAXAGEpublic String getMaxstale()
ATTRIBUTE_MAXSTALEpublic void setMaxstale(String maxstale)
maxstale - Value of the maxstale attribute.ATTRIBUTE_MAXSTALEprotected boolean canContainChild(String tagName)
canContainChild in class AbstractXmlNodetagName - Name of child.
public Collection<String> getAttributeNames()
getAttributeNames in interface XmlNodegetAttributeNames in class AbstractXmlNodepublic final NodeList getChildNodes()
NodeList that contains all children of this node.
getChildNodes in interface Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||