Package com.volantis.mcs.protocols

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


        String value;
        // 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
View Full Code Here


        element.setAttribute("name", name);

        appendVoiceXMLLiteral(dom, attributes);

        // Generate the grammar.
        element = dom.openElement("grammar");
        grammar.generateBooleanGrammar(
                dom, name, attributes.getFalseValues(),
                attributes.getTrueValues());
        dom.closeElement("grammar");
        dom.closeElement("field");
View Full Code Here

        appendVoiceXMLLiteral(dom, attributes);

        // Generate the grammar.
        Collection options = attributes.getOptions();

        dom.openElement("grammar");
        grammar.generateSingleSelectGrammar(dom, this, name, options);
        dom.closeElement("grammar");
        dom.closeElement("field");
    }
View Full Code Here

        // set any attribute values that should be applied for all form fields.
        addFormFieldAttributes(element, attributes);
        element.setAttribute("name", name);
        element.setAttribute("src", "#" + subId);

        element = dom.openElement("filled");
        element = dom.addElement("assign");
        element.setAttribute("name", name);
        element.setAttribute("expr", name + ".result");
        dom.closeElement("filled");
View Full Code Here

        element = dom.openStyledElement("form", attributes);
        element.setAttribute("id", subId);

        // Generate the grammar.
        Collection options = attributes.getOptions();
        dom.openElement("grammar");
        grammar.generateMultipleSelectGrammar(dom, name, options);
        dom.closeElement("grammar");

        dom.openElement("initial");
        appendVoiceXMLLiteral(dom, attributes);
View Full Code Here

        Collection options = attributes.getOptions();
        dom.openElement("grammar");
        grammar.generateMultipleSelectGrammar(dom, name, options);
        dom.closeElement("grammar");

        dom.openElement("initial");
        appendVoiceXMLLiteral(dom, attributes);
        dom.closeElement("initial");


        // Add the fields, one for each option.
View Full Code Here

        int o = 0;
        handleOptionFields(options, dom, o);

        // When the user input has been processed return a semi-colon separated
        // list of those options which have been selected.
        element = dom.openElement("filled");
        element.setAttribute("mode", "any");

        element = dom.openElement("script");
        dom.appendEncoded("var separator = \"\";var result = \"\";");
        element = dom.closeElement("script");
View Full Code Here

        // When the user input has been processed return a semi-colon separated
        // list of those options which have been selected.
        element = dom.openElement("filled");
        element.setAttribute("mode", "any");

        element = dom.openElement("script");
        dom.appendEncoded("var separator = \"\";var result = \"\";");
        element = dom.closeElement("script");

        element = dom.addElement("return");
        element.setAttribute("namelist", "result");
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.