public final class Ruleref extends AbstractXmlNode implements VoiceXmlNode
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.ArrayList<java.lang.String> |
ATTRIBUTE_NAMES
Supported attribute names for this node.
|
static java.lang.String |
ATTRIBUTE_SPECIAL
Identifies the rule as being a special rule which is defined to
have specific interpretation and processing by a speech recogniser.
|
static java.lang.String |
ATTRIBUTE_TYPE
The optional type attribute specifies the media type of the grammar
containing the reference.
|
static java.lang.String |
ATTRIBUTE_URI
URI of grammar where the rule is defined.
|
static java.lang.String |
SPECIAL_VALUE_GARBAGE
special rule - GARBAGE.
|
static java.lang.String |
SPECIAL_VALUE_NULL
special rule - NULL.
|
static java.lang.String |
SPECIAL_VALUE_VOID
special rule - VOID.
|
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 |
|---|
Ruleref()
Construct a new ruleref 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 |
getSpecial()
Retrieve the special attribute.
|
java.lang.String |
getTagName()
Get the name of the tag for the derived node.
|
java.lang.String |
getType()
Retrieve the type attribute.
|
java.lang.String |
getUri()
Retrieves the URI attribute.
|
java.net.URI |
getUriObject()
Retrieves the URI attribute.
|
boolean |
isSpecialGarbage()
Tests if this RuleRef is a special GARBAGE rule.
|
boolean |
isSpecialNull()
Tests if this RuleRef is a special NULL rule.
|
boolean |
isSpecialVoid()
Tests if this RuleRef is a special VOID rule.
|
XmlNode |
newInstance(org.w3c.dom.Node n,
XmlNodeFactory<? extends XmlNode> factory)
Create a new instance for the given node.
|
void |
setSpecial(java.lang.String special)
Set the special attribute.
|
void |
setType(java.lang.String type)
Set the type attribute.
|
void |
setUri(Rule rule)
Sets the URI attribute to the rule in the same document.
|
void |
setUri(java.lang.String uri)
Sets the URI attribute.
|
void |
setUri(java.net.URI uri)
Sets the URI 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_URI
public static final java.lang.String ATTRIBUTE_TYPE
public static final java.lang.String ATTRIBUTE_SPECIAL
public static final java.lang.String SPECIAL_VALUE_GARBAGE
public static final java.lang.String SPECIAL_VALUE_NULL
public static final java.lang.String SPECIAL_VALUE_VOID
protected static final java.util.ArrayList<java.lang.String> ATTRIBUTE_NAMES
public Ruleref()
This is necessary for the node factory.
SrgsNodeFactorypublic java.lang.String getTagName()
getTagName in interface XmlNodepublic 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.
newInstance in interface XmlNoden - The node to encapsulate.factory - the factroy that calls this method.XmlNodeFactorypublic java.lang.String getUri()
ATTRIBUTE_URIpublic java.net.URI getUriObject()
throws java.net.URISyntaxException
java.net.URISyntaxException - Value is not a valid URI.ATTRIBUTE_URIpublic void setUri(java.lang.String uri)
uri - Value of the URI attribute.ATTRIBUTE_URIpublic void setUri(java.net.URI uri)
uri - Value of the URI attribute.ATTRIBUTE_URIpublic void setUri(Rule rule)
rule - the rule to referenceATTRIBUTE_URIpublic java.lang.String getType()
ATTRIBUTE_TYPEpublic void setType(java.lang.String type)
type - Value of the type attribute.ATTRIBUTE_TYPEpublic java.lang.String getSpecial()
ATTRIBUTE_SPECIALpublic void setSpecial(java.lang.String special)
special - Value of the special attribute.ATTRIBUTE_SPECIALpublic boolean isSpecialGarbage()
true if this is a GARBAGE rulepublic boolean isSpecialVoid()
true if this is a VOID rulepublic boolean isSpecialNull()
true if this is a NULL ruleprotected 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