public abstract class Recognition extends Object implements JsonSerializable
DtmfRecognition
,
SpeechRecognition
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addJsonProperties(javax.json.JsonObjectBuilder builder) |
void |
addProperty(String propertyName,
String propertyValue)
Adds a property to the enclosing form
|
javax.json.JsonValue |
asJson() |
protected void |
copyPropertiesTo(Recognition copy) |
boolean |
equals(Object obj) |
List<GrammarItem> |
getGrammarItems() |
String |
getProperty(String propertyName) |
Set<String> |
getPropertyNames() |
int |
hashCode() |
boolean |
hasProperty(String propertyName) |
void |
removeProperty(String propertyName) |
void |
setGrammarItems(GrammarItem... grammarItems) |
void |
setGrammarItems(List<? extends GrammarItem> grammarItems) |
String |
toString() |
public void addProperty(String propertyName, String propertyValue)
propertyName
- The name of the property. Not empty.propertyValue
- The value of the property. Not null.public void removeProperty(String propertyName)
public List<GrammarItem> getGrammarItems()
public boolean hasProperty(String propertyName)
public Set<String> getPropertyNames()
public String getProperty(String propertyName)
protected final void copyPropertiesTo(Recognition copy)
public void setGrammarItems(GrammarItem... grammarItems)
public void setGrammarItems(List<? extends GrammarItem> grammarItems)
public javax.json.JsonValue asJson()
asJson
in interface JsonSerializable
protected abstract void addJsonProperties(javax.json.JsonObjectBuilder builder)
Copyright © 2019 Nu Echo Inc..