public Builder uri(String uri) { Assert.notEmpty(uri, "uri"); mUri = uri; return this; }
/** * @param text The synthesis text. Not empty. */ public SpeechSynthesis(String text) { Assert.notEmpty(text, "text"); mText = text; mDocumentFragment = null; }
public VoiceXmlEvent(String name, String message) { Assert.notEmpty(name, NAME_PROPERTY); mName = name; mMessage = message; }
/** * @param name The name of this turn. Not empty. * @param uri The URI of the subdialogue. Not empty. */ public SubdialogueCall(String name, String uri) { super(name); Assert.notEmpty(uri, "uri"); mUri = uri; }
/** * @param name The name of this turn. Not empty. * @param destination The URI of the destination (telephone, IP telephony * address). Not empty. */ public Transfer(String name, String destination) { super(name); Assert.notEmpty(destination, "destination"); mDestination = destination; }
public MarkInfo(String name, Duration time) { Assert.notEmpty(name, NAME_PROPERTY); mName = name; mTime = time; }
/** * @param uri The URI of the external grammar. Not empty. */ public GrammarReference(String uri) { Assert.notEmpty(uri, "uri"); mUri = uri; }
public VoiceXmlDocumentTurn(String name) { Assert.notEmpty(name, "name"); mName = name; }
private Parameter(String name) { Assert.notEmpty(name, "name"); mName = name; }
/** * @param name The name of this turn. Not empty. * @param audioItems The sequence of {@link AudioItem} to play. Not empty. */ public Message(String name, List<AudioItem> audioItems) { super(name); Assert.notEmpty(audioItems, "audioItems"); mAudioItems = new ArrayList<AudioItem>(audioItems); }
public static AudioFile fromExpression(String expression) { Assert.notEmpty(expression, "expression"); AudioFile audioFile = new AudioFile(); audioFile.mExpression = expression; return audioFile; }
public Builder addSubmitParameterExpression(String name, String expression) { Assert.notEmpty(name, "name"); mSubmitParameters.addWithExpression(name, expression); return this; }
public Builder addSubmitParameterString(String name, String string) { Assert.notEmpty(name, "name"); mSubmitParameters.addWithString(name, string); return this; }
public static AudioFile fromLocation(String location) { Assert.notEmpty(location, "location"); AudioFile audioFile = new AudioFile(); audioFile.mLocation = location; return audioFile; }
/** * Adds a property to the enclosing form * * @param propertyName The name of the property. Not empty. * @param propertyValue The value of the property. Not null. * @see <a * href="https://www.w3.org/TR/voicexml20/#dml6.3">https://www.w3.org/TR/voicexml20/#dml6.3</a> */ public void addProperty(String propertyName, String propertyValue) { Assert.notEmpty(propertyName, "propertyName"); Assert.notNull(propertyValue, "propertyValue"); mProperties.put(propertyName, propertyValue); }
/** * @param name The name of the parameter. Not empty. * @param value The string value of the parameter. Not null. * @return The newly created object parameter */ public static Parameter createWithValue(String name, String value) { Assert.notEmpty(name, "name"); Assert.notNull(value, "value"); Parameter parameter = new Parameter(name); parameter.mValue = value; return parameter; }
/** * @param name The name of the parameter. Not empty. * @param expression The ECMAScript expression of the parameter. Not * null. * @return The newly created object parameter */ public static Parameter createWithExpression(String name, String expression) { Assert.notEmpty(name, "name"); Assert.notNull(expression, "expression"); Parameter parameter = new Parameter(name); parameter.mExpression = expression; return parameter; }
/** * @param name The name of the parameter. Not empty. * @param json The JSON value of the parameter. Not null. * @return The newly created object parameter */ public static Parameter createWithJson(String name, JsonValue json) { Assert.notEmpty(name, "name"); Assert.notNull(json, "json"); return createWithExpression(name, json.toString()); }