public abstract class GrammarItem extends Object implements JsonSerializable
Modifier and Type | Field and Description |
---|---|
static String |
TYPE_PROPERTY |
Constructor and Description |
---|
GrammarItem() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addJsonProperties(javax.json.JsonObjectBuilder builder) |
javax.json.JsonValue |
asJson() |
boolean |
equals(Object obj) |
abstract String |
getElementType() |
String |
getMediaType() |
Double |
getWeight() |
int |
hashCode() |
void |
setMediaType(String mediaType) |
void |
setWeight(Double weight) |
String |
toString() |
public static final String TYPE_PROPERTY
public GrammarItem()
public final void setWeight(Double weight)
weight
- The relative weight of this grammar. null
to
use the VoiceXML platform defaultpublic final void setMediaType(String mediaType)
mediaType
- The preferred media type for this grammar.
null
to use the VoiceXML platform defaultpublic final String getMediaType()
public abstract String getElementType()
protected abstract void addJsonProperties(javax.json.JsonObjectBuilder builder)
public final javax.json.JsonValue asJson()
asJson
in interface JsonSerializable
Copyright © 2019 Nu Echo Inc..