Пример #1
0
    /**
     * @param name The name of the parameter. Not empty.
     * @param expression The ECMAScript expression of the parameter. Not null.
     * @return The newly created subdialogue parameter
     */
    public static Parameter createWithExpression(String name, String expression) {
      Assert.notNull(expression, "expression");

      Parameter parameter = new Parameter(name);
      parameter.mExpression = expression;
      return parameter;
    }
Пример #2
0
    /**
     * @param name The name of the parameter. Not empty.
     * @param value The string value of the parameter. Not null.
     * @return The newly created subdialogue parameter
     */
    public static Parameter createWithValue(String name, String value) {
      Assert.notNull(value, "value");

      Parameter parameter = new Parameter(name);
      parameter.mValue = value;
      return parameter;
    }
Пример #3
0
 /** @param submitParameters A list of variable to submit when invoking the URI. Not null. */
 public final void setSubmitParameters(VariableList submitParameters) {
   Assert.notNull(submitParameters, "submitParameters");
   mSubmitParameters = submitParameters;
 }
Пример #4
0
 public Builder setMethod(SubmitMethod method) {
   Assert.notNull(method, "method");
   mMethod = method;
   return this;
 }
Пример #5
0
 public Builder addVoiceXmlParameter(Parameter parameter) {
   Assert.notNull(parameter, "parameter");
   mParameters.add(parameter);
   return this;
 }
Пример #6
0
 /**
  * @param name The name of the parameter. Not empty.
  * @param json The JSON value of the parameter. Not null.
  * @return The newly created subdialogue parameter
  */
 public static Parameter createWithJson(String name, JsonValue json) {
   Assert.notNull(json, "json");
   return createWithExpression(name, json.toString());
 }