public final class Subdialog extends AbstractXmlNode
Return| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_COND
An expression that must evaluate to true after conversion to boolean
in order for the form item to be visited.
|
static java.lang.String |
ATTRIBUTE_ENCTYPE
The media encoding type of the submitted document (when the value of
method is "post").
|
static java.lang.String |
ATTRIBUTE_EXPR
The initial value of the form item variable; default is ECMAScript
undefined.
|
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.
|
static java.lang.String |
ATTRIBUTE_METHOD
The request method: get (the default) or post.
|
static java.lang.String |
ATTRIBUTE_NAME
The result returned from the subdialog, an ECMAScript object whose
properties are the ones defined in the namelist attribute of the
<return> element. |
static java.lang.String |
ATTRIBUTE_NAMELIST
The list of variables to submit.
|
protected static java.util.ArrayList<java.lang.String> |
ATTRIBUTE_NAMES
Supported attribute names for this node.
|
static java.lang.String |
ATTRIBUTE_SRC
The URI of the subdialog.
|
static java.lang.String |
ATTRIBUTE_SRCEXPR
An ECMAScript expression yielding the URI of the subdialog.
|
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 |
|---|
Subdialog()
Construct a new subdialog object without a node.
|
| Modifier and Type | Method and Description |
|---|---|
Text |
addText(java.lang.String text)
Create a new text within this node.
|
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 |
getCond()
Retrieve the cond attribute.
|
java.lang.String |
getEnctype()
Retrieve the enctype attribute.
|
java.lang.String |
getExpr()
Retrieve the expr 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 |
getMethod()
Retrieve the method attribute.
|
java.lang.String |
getName()
Retrieve the name attribute.
|
java.lang.String |
getNamelist()
Retrieve the namelist attribute.
|
java.lang.String |
getSrc()
Retrieve the src attribute.
|
java.lang.String |
getSrcexpr()
Retrieve the srcexpr attribute.
|
java.net.URI |
getSrcUri()
Retrieve the src 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 |
setCond(java.lang.String cond)
Set the cond attribute.
|
void |
setEnctype(java.lang.String enctype)
Set the enctype attribute.
|
void |
setExpr(java.lang.String expr)
Set the expr 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 |
setMethod(java.lang.String method)
Set the method attribute.
|
void |
setName(java.lang.String name)
Set the name attribute.
|
void |
setNamelist(java.lang.String namelist)
Set the namelist attribute.
|
void |
setSrc(java.lang.String src)
Set the src attribute.
|
void |
setSrc(java.net.URI uri)
Set the src attribute.
|
void |
setSrcexpr(java.lang.String srcexpr)
Set the srcexpr 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_NAME
<return> element.public static final java.lang.String ATTRIBUTE_EXPR
public static final java.lang.String ATTRIBUTE_COND
public static final java.lang.String ATTRIBUTE_NAMELIST
public static final java.lang.String ATTRIBUTE_SRC
public static final java.lang.String ATTRIBUTE_SRCEXPR
public static final java.lang.String ATTRIBUTE_METHOD
public static final java.lang.String ATTRIBUTE_ENCTYPE
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 Subdialog()
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 getName()
ATTRIBUTE_NAMEpublic void setName(java.lang.String name)
name - Value of the name attribute.ATTRIBUTE_NAMEpublic java.lang.String getExpr()
ATTRIBUTE_EXPRpublic void setExpr(java.lang.String expr)
expr - Value of the expr attribute.ATTRIBUTE_EXPRpublic java.lang.String getCond()
ATTRIBUTE_CONDpublic void setCond(java.lang.String cond)
cond - Value of the cond attribute.ATTRIBUTE_CONDpublic java.lang.String getNamelist()
ATTRIBUTE_NAMELISTpublic void setNamelist(java.lang.String namelist)
namelist - Value of the namelist attribute.ATTRIBUTE_NAMELISTpublic java.lang.String getSrc()
ATTRIBUTE_SRCpublic java.net.URI getSrcUri()
throws java.net.URISyntaxException
java.net.URISyntaxException - Src attribute does not denote a valid URI.ATTRIBUTE_SRCpublic void setSrc(java.lang.String src)
src - Value of the src attribute.ATTRIBUTE_SRCpublic void setSrc(java.net.URI uri)
uri - Value of the src attribute.ATTRIBUTE_SRCpublic java.lang.String getSrcexpr()
ATTRIBUTE_SRCEXPRpublic void setSrcexpr(java.lang.String srcexpr)
srcexpr - Value of the srcexpr attribute.ATTRIBUTE_SRCEXPRpublic java.lang.String getMethod()
ATTRIBUTE_METHODpublic void setMethod(java.lang.String method)
method - Value of the method attribute.ATTRIBUTE_METHODpublic java.lang.String getEnctype()
ATTRIBUTE_ENCTYPEpublic void setEnctype(java.lang.String enctype)
enctype - Value of the enctype attribute.ATTRIBUTE_ENCTYPEpublic 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_MAXSTALEpublic Text addText(java.lang.String text)
text - The text to be added.protected 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