public final class ObjectTag extends AbstractXmlNode
A VoiceXML implementation platform may expose platform-specific functionality
for use by a VoiceXML application via the <object>
element. The <object> element makes direct use of its
own content during initialization (e.g. <param> child
element) and execution. As a result, <object> content
cannot be treated as alternative content. Notice that like other input items,
<object> has prompts and catch elements. It may also
have <filled> actions.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_ARCHIVE
A space-separated list of URIs for archives containing resources
relevant to the object, which may include the resources specified by
the classid and data attributes.
|
static java.lang.String |
ATTRIBUTE_CLASSID
The URI specifying the location of the object's implementation.
|
static java.lang.String |
ATTRIBUTE_CODEBASE
The base path used to resolve relative URIs specified by classid, data,
and archive.
|
static java.lang.String |
ATTRIBUTE_CODETYPE
The content type of data expected when downloading the object specified
by classid.
|
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_DATA
The URI specifying the location of the object's data.
|
static java.lang.String |
ATTRIBUTE_EXPR
The initial value of the form item variable; default is ECMAScript
undefined.
|
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_NAME
When the object is evaluated, it sets this variable to an ECMAScript
value whose type is defined by the object.
|
protected static java.util.ArrayList<java.lang.String> |
ATTRIBUTE_NAMES
Supported attribute names for this node.
|
static java.lang.String |
ATTRIBUTE_TYPE
The content type of the data specified by the data attribute.
|
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 |
|---|
ObjectTag()
Construct a new object 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.lang.String |
getArchive()
Retrieve the archive attribute.
|
java.util.Collection<java.net.URI> |
getArchiveUris()
Retrieves the URIs of the archive attribute.
|
java.util.Collection<java.lang.String> |
getAttributeNames()
Returns a collection of permitted attribute names for the node.
|
java.lang.String |
getClassid()
Retrieve the classid attribute.
|
java.net.URI |
getClassidUri()
Retrieves the classid attribute as an URI.
|
java.lang.String |
getCodebase()
Retrieve the codebase attribute.
|
java.lang.String |
getCodetype()
Retrieve the codetype attribute.
|
java.lang.String |
getCond()
Retrieve the cond attribute.
|
java.lang.String |
getData()
Retrieve the data attribute.
|
java.net.URI |
getDataUri()
Retrieve the data attribute.
|
java.lang.String |
getExpr()
Retrieve the expr 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 |
getName()
Retrieve the name attribute.
|
java.lang.String |
getTagName()
Get the name of the tag for the derived node.
|
java.lang.String |
getType()
Retrieve the type attribute.
|
XmlNode |
newInstance(org.w3c.dom.Node n,
XmlNodeFactory<? extends XmlNode> factory)
Create a new instance for the given node.
|
void |
setArchive(java.util.Collection<java.net.URI> uris)
Sets the archive URIs.
|
void |
setArchive(java.lang.String archive)
Set the archive attribute.
|
void |
setClassid(java.lang.Class<?> classid)
Set the classid attribute to
method://" + classid.getName(). |
void |
setClassid(java.lang.Class<?> classid,
java.lang.String method)
Set the classid attribute to
method://" + classid.getName() if the method name is
null and to
method://" + classid.getName() + "#" + method if a
method is specified. |
void |
setClassid(java.lang.String classid)
Set the classid attribute.
|
void |
setClassid(java.net.URI classid)
Set the classid attribute.
|
void |
setCodebase(java.lang.String codebase)
Set the codebase attribute.
|
void |
setCodetype(java.lang.String codetype)
Set the codetype attribute.
|
void |
setCond(java.lang.String cond)
Set the cond attribute.
|
void |
setData(java.lang.String data)
Set the data attribute.
|
void |
setData(java.net.URI data)
Set the data attribute.
|
void |
setExpr(java.lang.String expr)
Set the expr 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 |
setName(java.lang.String name)
Set the name attribute.
|
void |
setType(java.lang.String type)
Set the type 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
public static final java.lang.String ATTRIBUTE_EXPR
public static final java.lang.String ATTRIBUTE_COND
public static final java.lang.String ATTRIBUTE_CLASSID
public static final java.lang.String ATTRIBUTE_CODEBASE
public static final java.lang.String ATTRIBUTE_CODETYPE
public static final java.lang.String ATTRIBUTE_DATA
public static final java.lang.String ATTRIBUTE_TYPE
public static final java.lang.String ATTRIBUTE_ARCHIVE
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 ObjectTag()
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 getClassid()
ATTRIBUTE_CLASSIDpublic java.net.URI getClassidUri()
throws java.net.URISyntaxException
java.net.URISyntaxException - Value is not a valid URI.ATTRIBUTE_CLASSIDpublic void setClassid(java.lang.String classid)
classid - Value of the classid attribute.ATTRIBUTE_CLASSIDpublic void setClassid(java.lang.Class<?> classid)
method://" + classid.getName().classid - Class to call.ATTRIBUTE_CLASSIDpublic void setClassid(java.lang.Class<?> classid,
java.lang.String method)
method://" + classid.getName() if the method name is
null and to
method://" + classid.getName() + "#" + method if a
method is specified.classid - Class to call.method - name of the method to call.ATTRIBUTE_CLASSIDpublic void setClassid(java.net.URI classid)
classid - Value of the classid attribute.ATTRIBUTE_CLASSIDpublic java.lang.String getCodebase()
ATTRIBUTE_CODEBASEpublic void setCodebase(java.lang.String codebase)
codebase - Value of the codebase attribute.ATTRIBUTE_CODEBASEpublic java.lang.String getCodetype()
ATTRIBUTE_CODETYPEpublic void setCodetype(java.lang.String codetype)
codetype - Value of the codetype attribute.ATTRIBUTE_CODETYPEpublic java.lang.String getData()
ATTRIBUTE_DATApublic java.net.URI getDataUri()
throws java.net.URISyntaxException
java.net.URISyntaxException - The data does not denote a valid URI.ATTRIBUTE_DATApublic void setData(java.lang.String data)
data - Value of the data attribute.ATTRIBUTE_DATApublic void setData(java.net.URI data)
data - Value of the data attribute.ATTRIBUTE_DATApublic java.lang.String getType()
ATTRIBUTE_TYPEpublic void setType(java.lang.String type)
type - Value of the type attribute.ATTRIBUTE_TYPEpublic java.lang.String getArchive()
ATTRIBUTE_ARCHIVEpublic java.util.Collection<java.net.URI> getArchiveUris()
throws java.net.URISyntaxException
null if there
are no URIs defined.java.net.URISyntaxException - if one of the entries is no valid URI.public void setArchive(java.lang.String archive)
archive - Value of the archive attribute.ATTRIBUTE_ARCHIVEpublic void setArchive(java.util.Collection<java.net.URI> uris)
uris - archive UIRs.public 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