public final class Data extends AbstractXmlNode
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_ENCTYPE
The media encoding type of the submitted document.
|
static java.lang.String |
ATTRIBUTE_FETCHAUDIO
This defaults to the fetchaudio property.
|
static java.lang.String |
ATTRIBUTE_FETCHHINT
This defaults to the datafetchhint property.
|
static java.lang.String |
ATTRIBUTE_FETCHTIMEOUT
This defaults to the fetchtimeout property.
|
static java.lang.String |
ATTRIBUTE_MAXAGE
This defaults to the datamaxage property.
|
static java.lang.String |
ATTRIBUTE_MAXSTALE
This defaults to the datamaxstale property.
|
static java.lang.String |
ATTRIBUTE_METHOD
The request method: get (the default) or post.
|
static java.lang.String |
ATTRIBUTE_NAME
The name of the variable that exposes the DOM.
|
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 specifying the location of the XML data to retrieve.
|
static java.lang.String |
ATTRIBUTE_SRCEXPR
Like src, except that the URI is dynamically determined by evaluating the
given ECMAScript expression when the data needs to be fetched.
|
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 |
|---|
Data()
Construct a new data 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 |
getEnctype()
Retrieve the enctype attribute.
|
java.lang.String |
getFetchaudio()
Retrieve the fetchaudio attribute.
|
java.lang.String |
getFetchint()
Retrieve the fetchint 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.
|
RequestMethod |
getMethod()
Retrieve the method attribute.
|
java.lang.String |
getMethodName()
Retrieve the method attribute.
|
java.lang.String |
getName()
Retrieve the name attribute.
|
java.lang.String |
getNamelist()
Retrieve the namelist attribute.
|
TokenList |
getNameListObject()
Retrieve the namelist attribute as a list object.
|
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 |
setEnctype(java.lang.String enctype)
Set the enctype attribute.
|
void |
setFetchaudio(java.lang.String fetchaudio)
Set the fetchaudio attribute.
|
void |
setFetchint(java.lang.String fetchint)
Set the fetchint 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(RequestMethod method)
Set the method attribute.
|
void |
setMethodName(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 |
setNameList(TokenList list)
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
public static final java.lang.String ATTRIBUTE_SRC
public static final java.lang.String ATTRIBUTE_SRCEXPR
public static final java.lang.String ATTRIBUTE_FETCHAUDIO
public static final java.lang.String ATTRIBUTE_METHOD
public static final java.lang.String ATTRIBUTE_ENCTYPE
public static final java.lang.String ATTRIBUTE_NAMELIST
public static final java.lang.String ATTRIBUTE_FETCHHINT
public static final java.lang.String ATTRIBUTE_FETCHTIMEOUT
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 Data()
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 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 - URI 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 getFetchaudio()
ATTRIBUTE_FETCHAUDIOpublic void setFetchaudio(java.lang.String fetchaudio)
fetchaudio - Value of the fetchaudio attribute.ATTRIBUTE_FETCHAUDIOpublic java.lang.String getMethodName()
ATTRIBUTE_METHODpublic RequestMethod getMethod()
ATTRIBUTE_METHODpublic void setMethodName(java.lang.String method)
method - Value of the method attribute.ATTRIBUTE_METHODpublic void setMethod(RequestMethod 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 getNamelist()
ATTRIBUTE_NAMELISTpublic void setNamelist(java.lang.String namelist)
namelist - Value of the namelist attribute.ATTRIBUTE_NAMELISTpublic TokenList getNameListObject()
getNamelist()public void setNameList(TokenList list)
list - Value of the namelist attribute.ATTRIBUTE_NAMELIST,
setNamelist(String)public java.lang.String getFetchint()
ATTRIBUTE_FETCHHINTpublic void setFetchint(java.lang.String fetchint)
fetchint - Value of the fetchint 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