public final class Goto extends AbstractXmlNode
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.
Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_EXPR
An ECMAScript expression that yields the URI.
|
static java.lang.String |
ATTRIBUTE_EXPRITEM
An ECMAScript expression that yields the name of the next form item to
visit.
|
static java.lang.String |
ATTRIBUTE_FETCHAUDIO
The URI of the audio clip to play while the fetch is being done.
|
static java.lang.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 java.lang.String |
ATTRIBUTE_FETCHTIMEOUT
The interval to wait for the content to be returned before throwing an
error.badfetch event.
|
static java.lang.String |
ATTRIBUTE_MAXAGE
Indicates that the document is willing to use content whose age is no
greater than the specified time in seconds.
|
static java.lang.String |
ATTRIBUTE_MAXSTALE
Indicates that the document is willing to use content that has exceeded
its expiration time.
|
protected static java.util.ArrayList<java.lang.String> |
ATTRIBUTE_NAMES
Supported attribute names for this node.
|
static java.lang.String |
ATTRIBUTE_NEXT
The URI to which to transition.
|
static java.lang.String |
ATTRIBUTE_NEXTITEM
The name of the next form item to visit in the current form.
|
static java.lang.String |
TAG_NAME
Name of the tag.
|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
Goto()
Construct a new goto object without a node.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canContainChild(java.lang.String tagName)
Can the specified sub-tag be contained within this node?
|
java.util.Collection<java.lang.String> |
getAttributeNames()
Returns a collection of permitted attribute names for the node.
|
java.lang.String |
getExpr()
Retrieve the expr attribute.
|
java.lang.String |
getExpritem()
Retrieve the expritem attribute.
|
java.lang.String |
getFetchaudio()
Retrieve the fetchaudio attribute.
|
java.lang.String |
getFetchhint()
Retrieve the fetchhint attribute.
|
java.lang.String |
getFetchtimeout()
Retrieve the fetchtimeout attribute.
|
java.lang.String |
getMaxage()
Retrieve the maxage attribute.
|
java.lang.String |
getMaxstale()
Retrieve the maxstale attribute.
|
java.lang.String |
getNext()
Retrieve the next attribute.
|
java.lang.String |
getNextitem()
Retrieve the nextitem attribute.
|
java.net.URI |
getNextUri()
Retrieve the next attribute.
|
java.lang.String |
getTagName()
Get the name of the tag for the derived node.
|
XmlNode |
newInstance(org.w3c.dom.Node n,
XmlNodeFactory<? extends XmlNode> factory)
Create a new instance for the given node.
|
void |
setExpr(java.lang.String expr)
Set the expr attribute.
|
void |
setExpritem(java.lang.String expritem)
Set the expritem attribute.
|
void |
setFetchaudio(java.lang.String fetchaudio)
Set the fetchaudio attribute.
|
void |
setFetchhint(java.lang.String fetchhint)
Set the fetchhint attribute.
|
void |
setFetchtimeout(java.lang.String fetchtimeout)
Set the fetchtimeout attribute.
|
void |
setMaxage(java.lang.String maxage)
Set the maxage attribute.
|
void |
setMaxstale(java.lang.String maxstale)
Set the maxstale attribute.
|
void |
setNext(java.lang.String next)
Set the next attribute.
|
void |
setNext(java.net.URI uri)
Set the next attribute.
|
void |
setNextitem(java.lang.String nextitem)
Set the nextitem attribute.
|
addChild, addChild, appendChild, appendChild, appendDeepClone, cloneNode, compareDocumentPosition, equals, getAttribute, getAttributes, getBaseURI, getChildNodes, getChildNodes, getChildren, getDefinedAttributeNames, getFeature, getFirstChild, getFirstLevelTextContent, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeFactory, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getOwnerXmlDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttribute, hasAttributes, hasChildNodes, hashCode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setAttribute, setNodeValue, setPrefix, setTextContent, setUserData, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChild, getAttribute, getChildNodes, getChildren, getNode, setAttributeappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, 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, setUserDatapublic static final java.lang.String TAG_NAME
public static final java.lang.String ATTRIBUTE_NEXT
public static final java.lang.String ATTRIBUTE_EXPR
public static final java.lang.String ATTRIBUTE_NEXTITEM
public static final java.lang.String ATTRIBUTE_EXPRITEM
public static final java.lang.String ATTRIBUTE_FETCHAUDIO
public static final java.lang.String ATTRIBUTE_FETCHTIMEOUT
public static final java.lang.String ATTRIBUTE_FETCHHINT
public static final java.lang.String ATTRIBUTE_MAXAGE
public static final java.lang.String ATTRIBUTE_MAXSTALE
protected static final java.util.ArrayList<java.lang.String> ATTRIBUTE_NAMES
public Goto()
This is necessary for the node factory.
VoiceXmlNodeFactorypublic java.lang.String getTagName()
public XmlNode newInstance(org.w3c.dom.Node n, XmlNodeFactory<? extends XmlNode> factory)
Each XmlNode can serve as a prototype in a
XmlNodeFactory to produce a collection of
child nodes. Factories can then use the prototype pattern to
produce new nodes.
n - The node to encapsulate.factory - the factroy that calls this method.XmlNodeFactorypublic java.lang.String getNext()
ATTRIBUTE_NEXTpublic java.net.URI getNextUri()
throws java.net.URISyntaxException
java.net.URISyntaxException - if the attribute could not be converted into a valid URIATTRIBUTE_NEXTpublic void setNext(java.lang.String next)
next - Value of the next attribute.ATTRIBUTE_NEXTpublic void setNext(java.net.URI uri)
uri - Value of the next attribute.ATTRIBUTE_NEXTpublic java.lang.String getExpr()
ATTRIBUTE_EXPRpublic void setExpr(java.lang.String expr)
expr - Value of the expr attribute.ATTRIBUTE_EXPRpublic java.lang.String getNextitem()
ATTRIBUTE_NEXTITEMpublic void setNextitem(java.lang.String nextitem)
nextitem - Value of the nextitem attribute.ATTRIBUTE_NEXTITEMpublic java.lang.String getExpritem()
ATTRIBUTE_EXPRITEMpublic void setExpritem(java.lang.String expritem)
expritem - Value of the expritem attribute.ATTRIBUTE_EXPRITEMpublic java.lang.String getFetchaudio()
ATTRIBUTE_FETCHAUDIOpublic void setFetchaudio(java.lang.String fetchaudio)
fetchaudio - Value of the fetchaudio attribute.ATTRIBUTE_FETCHAUDIOpublic java.lang.String getFetchhint()
ATTRIBUTE_FETCHHINTpublic void setFetchhint(java.lang.String fetchhint)
fetchhint - Value of the fetchhint attribute.ATTRIBUTE_FETCHHINTpublic java.lang.String getFetchtimeout()
ATTRIBUTE_FETCHTIMEOUTpublic void setFetchtimeout(java.lang.String fetchtimeout)
fetchtimeout - Value of the fetchtimeout attribute.ATTRIBUTE_FETCHTIMEOUTpublic java.lang.String getMaxage()
ATTRIBUTE_MAXAGEpublic void setMaxage(java.lang.String maxage)
maxage - Value of the maxage attribute.ATTRIBUTE_MAXAGEpublic java.lang.String getMaxstale()
ATTRIBUTE_MAXSTALEpublic void setMaxstale(java.lang.String maxstale)
maxstale - Value of the maxstale attribute.ATTRIBUTE_MAXSTALEprotected boolean canContainChild(java.lang.String tagName)
canContainChild in class AbstractXmlNodetagName - Name of child.public java.util.Collection<java.lang.String> getAttributeNames()
getAttributeNames in interface XmlNodegetAttributeNames in class AbstractXmlNode