Examples of appendLiteral()


Examples of com.volantis.mcs.protocols.DOMOutputBuffer.appendLiteral()

            element.setAttribute ("language", "JavaScript");
            element.setAttribute ("src", validateURL);
            dom = getScriptBuffer ();
           
            String formFunction = attributes.getFormData().getName();
            dom.appendLiteral ("function validateForm")
                .appendLiteral (formFunction)
                .appendLiteral ("(form) {")
                .appendLiteral ("var errMsg = \"\";")
                .appendLiteral (sb.toString())
                .appendLiteral ("if(errMsg != \"\")")
View Full Code Here

Examples of com.volantis.mcs.protocols.DOMOutputBuffer.appendLiteral()

        object = attributes.getHelp();
        if (object != null) {
            String help =
                    getTextFromReference(object, TextEncoding.VOICE_XML_HELP);
            if (help != null) {
                dom.appendLiteral(help);
            }
        }

        // Add the help markup
        object = attributes.getErrmsg();
View Full Code Here

Examples of com.volantis.mcs.protocols.DOMOutputBuffer.appendLiteral()

        object = attributes.getErrmsg();
        if (object != null) {
            String error =
                    getTextFromReference(object, TextEncoding.VOICE_XML_ERROR);
            if (error != null) {
                dom.appendLiteral(error);
            }
        }

        // close the element.
        dom.closeElement(menu);
View Full Code Here

Examples of com.volantis.mcs.protocols.DOMOutputBuffer.appendLiteral()

        // Add the prompt which should already be properly quoted as it contains
        // VoiceXML markup.
        if ((value = getTextFromReference(attributes.getPrompt(),
                                       TextEncoding.VOICE_XML_PROMPT)) != null) {
            dom.openElement("block");
            dom.appendLiteral(value);
            dom.closeElement("block");
        }

        // Add the help which should already be properly quoted as it contains
        // VoiceXML markup.
View Full Code Here

Examples of com.volantis.mcs.protocols.DOMOutputBuffer.appendLiteral()

        // Add the help which should already be properly quoted as it contains
        // VoiceXML markup.
        if ((value = getTextFromReference(attributes.getHelp(),
                                       TextEncoding.VOICE_XML_HELP)) != null) {
            dom.appendLiteral(value);
        }

        // Initialise a variable which contains the form specifier.
        element = dom.addElement("var");
        element.setAttribute("name", URLConstants.FORM_PARAMETER);
View Full Code Here

Examples of org.joda.time.format.DateTimeFormatterBuilder.appendLiteral()

    for(int i=0;i<patterns.length();++i) {
      if(patterns.charAt(i)=='%' && i+1 < patterns.length()) {
        char specifier = patterns.charAt(++i);
        switch(specifier) {
        case '%':
          builder.appendLiteral("%");
          break;
        case 'a':
          // Abbreviated weekday name in the current locale. (Also matches
          // full name on input.)
          builder.appendDayOfWeekShortText();
View Full Code Here

Examples of org.joda.time.format.DateTimeFormatterBuilder.appendLiteral()

          // and *not* with ‘%H’.  An empty string in some locales.
          builder.appendHalfdayOfDayText();
          break;
        case 'O':
          if(i+1>=patterns.length()) {
            builder.appendLiteral("%O");
          } else {
            switch(patterns.charAt(++i)) {
            case 'S':
              // Specific to R is ‘%OSn’, which for output gives the seconds to ‘0
              // <= n <= 6’ decimal places (and if ‘%OS’ is not followed by a
View Full Code Here

Examples of org.joda.time.format.DateTimeFormatterBuilder.appendLiteral()

          break;
        default:
          throw new EvalException("%" + specifier + " not yet implemented. (Implement me!)");
        }
      } else {
        builder.appendLiteral(patterns.substring(i,i+1));
      }
    }
    if(useTz) {
      builder.appendLiteral(" ");
      builder.appendTimeZoneShortName();
View Full Code Here

Examples of org.joda.time.format.DateTimeFormatterBuilder.appendLiteral()

      } else {
        builder.appendLiteral(patterns.substring(i,i+1));
      }
    }
    if(useTz) {
      builder.appendLiteral(" ");
      builder.appendTimeZoneShortName();
    }
    return builder.toFormatter();
  }
 
View Full Code Here

Examples of org.joda.time.format.DateTimeFormatterBuilder.appendLiteral()

      boolean hasDate = appendDateFormats(builder, flags);
      if (poy != null) {
        if (!JodaTimeUtils.hasField(base, DateTimeFieldType.monthOfYear())) {
          // Assume poy is compatible with whatever was built and
          // poy.toISOString() does the correct thing
          builder.appendLiteral("-");
          builder.appendLiteral(poy.toISOString());
          hasDate = true;
        }
      }
      if (dow != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.