|
||||||||||
| 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.ccxml.Script
public final class Script
<script> encloses computations written in the ECMAScript
Compact Profile scripting language. The ECMAScript Compact Profile is a
strict subset of the third edition of ECMA-262. It has been designed to meet
the needs of resource-constrained environments. Special attention has been
paid to constraining ECMAScript features that require proportionately large
amounts of system memory, and continuous or proportionately large amounts of
processing power. In particular, it is designed to facilitate prior
compilation for execution in a lightweight environment.
Copyright © 2005 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_CHARSET
A character string that indicates the character encoding type of the script. |
static String |
ATTRIBUTE_FETCHID
An ECMAScript expression which returns the fetch identifier of a completed fetch request, acquired either in a fetch with the fetchid attribute, or from the fetchid attribute of a fetch.done event. |
static String |
ATTRIBUTE_MAXAGE
The character string is interpreted as a time interval. |
static String |
ATTRIBUTE_MAXSTALE
The character string is interpreted as a time interval. |
protected static ArrayList<String> |
ATTRIBUTE_NAMES
Supported attribute names for this node. |
static String |
ATTRIBUTE_SRC
A URI which references a resource which is the script content, and which will be resolved when the CCXML document is compiled. |
static String |
ATTRIBUTE_TIMEOUT
The character string is interpreted as a time interval. |
static String |
TAG_NAME
Name of the tag. |
| Constructor Summary | |
|---|---|
Script()
Construct a new script object without a node. |
|
| Method Summary | |
|---|---|
Text |
addText(String text)
Create a new text within this node. |
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. |
String |
getCharset()
Retrieve the charset attribute. |
NodeList |
getChildNodes()
A NodeList that contains all children of this node. |
String |
getFetchid()
Retrieve the fetchid attribute. |
String |
getMaxage()
Retrieve the maxage attribute. |
String |
getMaxstale()
Retrieve the maxstale attribute. |
String |
getSrc()
Retrieve the src attribute. |
String |
getTagName()
Get the name of the tag for the derived node. |
String |
getTimeout()
Retrieve the timeout attribute. |
XmlNode |
newInstance(Node n)
Create a new instance for the given node. |
void |
setCharset(String charset)
Set the charset attribute. |
void |
setFetchid(String fetchid)
Set the fetchid attribute. |
void |
setMaxage(String maxage)
Set the maxage attribute. |
void |
setMaxstale(String maxstale)
Set the maxstale attribute. |
void |
setSrc(String src)
Set the src attribute. |
void |
setTimeout(String timeout)
Set the timeout 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_CHARSET
public static final String ATTRIBUTE_FETCHID
public static final String ATTRIBUTE_MAXAGE
public static final String ATTRIBUTE_MAXSTALE
public static final String ATTRIBUTE_SRC
public static final String ATTRIBUTE_TIMEOUT
protected static final ArrayList<String> ATTRIBUTE_NAMES
| Constructor Detail |
|---|
public Script()
This is necessary for the node factory.
VoiceXmlNodeFactory| Method Detail |
|---|
public String getTagName()
public XmlNode newInstance(Node n)
n - The node to encapsulate.
XmlNodeFactorypublic String getCharset()
ATTRIBUTE_CHARSETpublic void setCharset(String charset)
charset - Value of the charset attribute.ATTRIBUTE_CHARSETpublic String getFetchid()
ATTRIBUTE_FETCHIDpublic void setFetchid(String fetchid)
fetchid - Value of the fetchid attribute.ATTRIBUTE_FETCHIDpublic 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_MAXSTALEpublic String getSrc()
ATTRIBUTE_SRCpublic void setSrc(String src)
src - Value of the src attribute.ATTRIBUTE_SRCpublic String getTimeout()
ATTRIBUTE_TIMEOUTpublic void setTimeout(String timeout)
timeout - Value of the timeout attribute.ATTRIBUTE_TIMEOUTpublic Text addText(String text)
text - The text to be added.
protected 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 | |||||||||