Tabnine Logo
DomUtils.appendNewText
Code IndexAdd Tabnine to your IDE (free)

How to use
appendNewText
method
in
com.nuecho.rivr.core.util.DomUtils

Best Java code snippets using com.nuecho.rivr.core.util.DomUtils.appendNewText (Showing top 3 results out of 315)

origin: nuecho/rivr

public static void createScript(Element parent, String script) {
  Element scriptElement = DomUtils.appendNewElement(parent, SCRIPT_ELEMENT);
  DomUtils.appendNewText(scriptElement, script);
}
origin: nuecho/rivr

@Override
protected void fillVoiceXmlDocument(Document document, Element formElement, VoiceXmlDialogueContext dialogueContext)
    throws VoiceXmlDocumentRenderingException {
  addVariables(formElement, mVariables);
  Element blockElement = DomUtils.appendNewElement(formElement, BLOCK_ELEMENT);
  if (mCode != null) {
    Element scriptElement = DomUtils.appendNewElement(blockElement, SCRIPT_ELEMENT);
    DomUtils.appendNewText(scriptElement, mCode);
  }
  StringBuffer scriptBuffer = new StringBuffer();
  scriptBuffer.append(RIVR_SCOPE_OBJECT + ".addValueResult({");
  boolean first = true;
  for (Entry<String, String> entry : mVariables) {
    if (!first) {
      scriptBuffer.append(", ");
    } else {
      first = false;
    }
    scriptBuffer.append("\"");
    scriptBuffer.append(entry.getKey());
    scriptBuffer.append("\": ");
    scriptBuffer.append("dialog.");
    scriptBuffer.append(entry.getKey());
  }
  scriptBuffer.append("});");
  createScript(blockElement, scriptBuffer.toString());
  createGotoSubmit(blockElement);
}
origin: nuecho/rivr

    lastItemWasText = false;
  } else {
    DomUtils.appendNewText(audioElement, alternate.getText());
    lastItemWasText = true;
} else {
  String spaceIfRequired = lastItemWasText ? " " : "";
  DomUtils.appendNewText(promptElement, spaceIfRequired + speechSynthesis.getText());
  lastItemWasText = true;
com.nuecho.rivr.core.utilDomUtilsappendNewText

Popular methods of DomUtils

  • createDocument
  • appendNewCData
  • appendNewElement
  • getSerializer
  • writeToOutputStream
  • writeToString

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now