|
||||||||||
| 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.Record
public final class Record
The <record> element is an input item that collects a
recording from the user.
Audio,
Form| Field Summary | |
|---|---|
static String |
ATTRIBUTE_BEEP
If true, a tone is emitted just prior to recording. |
static String |
ATTRIBUTE_COND
An expression that must evaluate to true after conversion to boolean in order for the form item to be visited. |
static String |
ATTRIBUTE_DTMFTERM
If true, any DTMF keypress not matched by an active grammar will be treated as a match of an active (anonymous) local DTMF grammar. |
static String |
ATTRIBUTE_EXPR
The initial value of the form item variable; default is ECMAScript undefined. |
static String |
ATTRIBUTE_FINALSILENCE
The interval of silence that indicates end of speech. |
static String |
ATTRIBUTE_MAXTIME
The maximum duration to record. |
static String |
ATTRIBUTE_MODAL
If this is true (the default) all non-local speech and DTMF grammars are not active while making the recording. |
static String |
ATTRIBUTE_NAME
The input item variable that will hold the recording. |
protected static ArrayList<String> |
ATTRIBUTE_NAMES
Supported attribute names for this node. |
static String |
ATTRIBUTE_TYPE
The media format of the resulting recording. |
static String |
TAG_NAME
Name of the tag. |
| Constructor Summary | |
|---|---|
Record()
Construct a new record 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 |
getBeep()
Retrieve the beep attribute. |
String |
getCond()
Retrieve the cond attribute. |
String |
getDtmfterm()
Retrieve the dtmfterm attribute. |
String |
getExpr()
Retrieve the expr attribute. |
String |
getFinalsilence()
Retrieve the finalsilence attribute. |
String |
getMaxtime()
Retrieve the maxtime attribute. |
long |
getMaxtimeAsMsec()
Retrieves the maxtime attribute as msec. |
String |
getModal()
Retrieve the modal attribute. |
String |
getName()
Retrieve the name attribute. |
String |
getTagName()
Get the name of the tag for the derived node. |
String |
getType()
Retrieve the type attribute. |
boolean |
isModal()
Checks if this record is modal. |
XmlNode |
newInstance(Node n,
XmlNodeFactory<? extends XmlNode> factory)
Create a new instance for the given node. |
void |
setBeep(String beep)
Set the beep attribute. |
void |
setCond(String cond)
Set the cond attribute. |
void |
setDtmfterm(String dtmfterm)
Set the dtmfterm attribute. |
void |
setExpr(String expr)
Set the expr attribute. |
void |
setFinalsilence(String finalsilence)
Set the finalsilence attribute. |
void |
setMaxtime(String maxtime)
Set the maxtime attribute. |
void |
setModal(boolean modal)
Set the modal attribute. |
void |
setModal(String modal)
Set the modal attribute. |
void |
setName(String name)
Set the name attribute. |
void |
setType(String type)
Set the type attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jvoicexml.xml.XmlNode |
|---|
addChild, getAttribute, getChildNodes, getChildren, getNode, setAttribute |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, 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, setUserData |
| Field Detail |
|---|
public static final String TAG_NAME
public static final String ATTRIBUTE_NAME
public static final String ATTRIBUTE_EXPR
public static final String ATTRIBUTE_COND
public static final String ATTRIBUTE_MODAL
public static final String ATTRIBUTE_BEEP
public static final String ATTRIBUTE_MAXTIME
public static final String ATTRIBUTE_FINALSILENCE
public static final String ATTRIBUTE_DTMFTERM
public static final String ATTRIBUTE_TYPE
protected static final ArrayList<String> ATTRIBUTE_NAMES
| Constructor Detail |
|---|
public Record()
This is necessary for the node factory.
VoiceXmlNodeFactory| Method Detail |
|---|
public String getTagName()
public XmlNode newInstance(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 String getName()
ATTRIBUTE_NAMEpublic void setName(String name)
name - Value of the name attribute.ATTRIBUTE_NAMEpublic String getExpr()
ATTRIBUTE_EXPRpublic void setExpr(String expr)
expr - Value of the expr attribute.ATTRIBUTE_EXPRpublic String getCond()
ATTRIBUTE_CONDpublic void setCond(String cond)
cond - Value of the cond attribute.ATTRIBUTE_CONDpublic String getModal()
ATTRIBUTE_MODALpublic boolean isModal()
true if the record is modal.public void setModal(String modal)
modal - Value of the modal attribute.ATTRIBUTE_MODALpublic void setModal(boolean modal)
modal - Value of the modal attribute.ATTRIBUTE_MODALpublic String getBeep()
ATTRIBUTE_BEEPpublic void setBeep(String beep)
beep - Value of the beep attribute.ATTRIBUTE_BEEPpublic String getMaxtime()
ATTRIBUTE_MAXTIMEpublic long getMaxtimeAsMsec()
-1 if the value can not
be converted to a number.public void setMaxtime(String maxtime)
maxtime - Value of the maxtime attribute.ATTRIBUTE_MAXTIMEpublic String getFinalsilence()
ATTRIBUTE_FINALSILENCEpublic void setFinalsilence(String finalsilence)
finalsilence - Value of the finalsilence attribute.ATTRIBUTE_FINALSILENCEpublic String getDtmfterm()
ATTRIBUTE_DTMFTERMpublic void setDtmfterm(String dtmfterm)
dtmfterm - Value of the dtmfterm attribute.ATTRIBUTE_DTMFTERMpublic String getType()
ATTRIBUTE_TYPEpublic void setType(String type)
type - Value of the type attribute.ATTRIBUTE_TYPEpublic 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 AbstractXmlNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||