Package com.volantis.mcs.protocols.assets

Examples of com.volantis.mcs.protocols.assets.TextAssetReference


        element.setAttribute("name", attributes.getName());

        appendVoiceXMLLiteral(dom, attributes);

        TextAssetReference reference = getTextReferenceFromStyleValue(
                attributes.getStyles(), StylePropertyDetails.MCS_INPUT_FORMAT);

        // Add the grammar which should already be properly quoted as it
        // contains VoiceXML markup.
        grammar.generateGrammarFromObject(dom, reference);
View Full Code Here


      String value = attributes.getSrc();

      String altText = null;

      if (context != null) {
          TextAssetReference reference = attributes.getAltText();
          altText = getPlainText(reference);
      }

      if (value != null) {
        Element element = dom.addStyledElement ("img", attributes);
View Full Code Here

            // We only want to map fields that have an initial value, otherwise
            // we should default to caption (this is the default behaviour for
            // all protocols).
            //
            if (fieldDescriptor.getInitialValue()!=null) {
                TextAssetReference caption = fieldAttributes.getCaption();
                String captionString = getPlainText(caption);
                fieldDescriptor.setFieldTag(captionString);
              fieldAttributes.setFieldDescriptor(fieldDescriptor);
            }
          }
View Full Code Here

    // Inherit Javadoc.
    public void doImage(DOMOutputBuffer dom, ImageAttributes attributes) {
        // can't call writeAltText as ImageAttributes and
        // GenericMediaAttributes are in different parts of hierarchy. Common
        // super VolantisAttribute does not contain a getAltText method.
        TextAssetReference reference = attributes.getAltText();
        String altText = getPlainText(reference);

        if ((altText != null) && !altText.equals(""))
        {
            writeLogicalContent(altText);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.assets.TextAssetReference

Copyright © 2018 www.massapicom. 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.