public final class InlineStringGrammar extends GrammarItem
InlineStringGrammar represents a text source grammar inlined in
the VoiceXML document.TYPE_PROPERTY| Constructor and Description |
|---|
InlineStringGrammar(String source) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addJsonProperties(javax.json.JsonObjectBuilder builder) |
boolean |
equals(Object obj) |
String |
getBase() |
String |
getElementType() |
String |
getLanguage() |
String |
getRoot() |
String |
getSource() |
String |
getTagFormat() |
String |
getVersion() |
int |
hashCode() |
void |
setBase(String base) |
void |
setLanguage(String language) |
void |
setRoot(String root) |
void |
setTagFormat(String tagFormat) |
void |
setVersion(String version) |
asJson, getMediaType, getWeight, setMediaType, setWeight, toStringpublic InlineStringGrammar(String source)
source - The text source of the grammar. Not null.public void setVersion(String version)
version - The version of the grammar.null to use the
VoiceXML platform default.public void setLanguage(String language)
language - The language identifier of the grammar. For example,
"fr-CA" for Canadian French. null to use the
VoiceXML platform default.public void setRoot(String root)
root - The name of the rule that will act as the root rule.
null to use the VoiceXML platform default.public void setTagFormat(String tagFormat)
tagFormat - The tag content format for all tags within the grammar.
null to use the VoiceXML platform defaultpublic void setBase(String base)
base - The base URI from which relative URIs in the grammar are
resolved. null to use the VoiceXML platform
defaultpublic String getElementType()
getElementType in class GrammarItempublic String getVersion()
public String getLanguage()
public String getTagFormat()
protected void addJsonProperties(javax.json.JsonObjectBuilder builder)
addJsonProperties in class GrammarItempublic int hashCode()
hashCode in class GrammarItempublic boolean equals(Object obj)
equals in class GrammarItemCopyright © 2019 Nu Echo Inc..