public static final class ObjectCall.Parameter extends Object implements JsonSerializable
ObjectCall parameter, can be created with a string value, a
JsonValue or an expression.| Modifier and Type | Method and Description |
|---|---|
javax.json.JsonValue |
asJson() |
static ObjectCall.Parameter |
createWithExpression(String name,
String expression) |
static ObjectCall.Parameter |
createWithJson(String name,
javax.json.JsonValue json) |
static ObjectCall.Parameter |
createWithValue(String name,
String value) |
String |
getExpression() |
String |
getName() |
String |
getType() |
String |
getValue() |
ObjectCall.ParameterValueType |
getValueType() |
void |
setType(String type) |
void |
setValueType(ObjectCall.ParameterValueType valueType) |
public static ObjectCall.Parameter createWithValue(String name, String value)
name - The name of the parameter. Not empty.value - The string value of the parameter. Not null.public static ObjectCall.Parameter createWithExpression(String name, String expression)
name - The name of the parameter. Not empty.expression - The ECMAScript expression of the parameter. Not
null.public static ObjectCall.Parameter createWithJson(String name, javax.json.JsonValue json)
name - The name of the parameter. Not empty.json - The JSON value of the parameter. Not null.public void setValueType(ObjectCall.ParameterValueType valueType)
valueType - One of ObjectCall.ParameterValueType.data or
ObjectCall.ParameterValueType.ref. Indicates to an object if
the value associated with name is data or a URI.
null to use the VoiceXML platform default.public void setType(String type)
type - The media type of the result provided by a URI if the
value type is ObjectCall.ParameterValueType.ref.
null to use the VoiceXML platform defaultpublic String getExpression()
public ObjectCall.ParameterValueType getValueType()
public javax.json.JsonValue asJson()
asJson in interface JsonSerializableCopyright © 2019 Nu Echo Inc..