Package com.volantis.mcs.xdime

Examples of com.volantis.mcs.xdime.XDIMEException


            if (initialValues != null) {
                if (initialValues.length > 1 &&
                        !((XFSelectAttributes) protocolAttributes).isMultiple()) {
                    // multiple values are only expected by multiple select
                    // elements so throw exception in any other case
                    throw new XDIMEException(exceptionLocalizer.format(
                            "xforms-invalid-initial-value",
                            this.getClass().getName()));
                }
            }
            // store the defined initial values until they can be compared with
View Full Code Here


            int numValues = initialValues.length;

            if (numValues > 1 && !(this instanceof XFSelectElementImpl)) {
                // multiple values are only allowed for multiple select elements
                throw new XDIMEException(exceptionLocalizer.format(
                        "xforms-invalid-initial-value",
                        this.getClass().getName()));
            }

            int numOptions = options.size();
View Full Code Here

        try {
            protocol.writeOpenCite((CiteAttributes)protocolAttributes);
        } catch (ProtocolException e) {
            logger.error("rendering-error", getTagName(), e);

            throw new XDIMEException(exceptionLocalizer.format(
                "rendering-error", getTagName()), e);
        }
        return XDIMEResult.PROCESS_ELEMENT_BODY;
    }
View Full Code Here

            protocol.getContentWriter().write(scriptWriter.toString());

            protocol.writeCloseScript(scriptAttributes);
        } catch (IOException e) {
            throw new XDIMEException(e);
        }
    }
View Full Code Here

            protocol.writeOpenSpan(contentSpanAttributes);

        } catch (ProtocolException e) {
            logger.error("rendering-error", getTagName(), e);

            throw new XDIMEException(exceptionLocalizer.format(
                "rendering-error", getTagName()), e);
        }

        // Store this element in parent, so that it
        // can be accessed when parent is ended.
View Full Code Here

        try {
            protocol.writeOpenDiv((DivAttributes)protocolAttributes);
        } catch (ProtocolException e) {
            logger.error("rendering-error", getTagName(), e);

            throw new XDIMEException(exceptionLocalizer.format(
                "rendering-error", getTagName()), e);
        }
        return XDIMEResult.PROCESS_ELEMENT_BODY;       
    }
View Full Code Here

                protocol.writeOpenUnorderedList((UnorderedListAttributes) protocolAttributes);
            }
        } catch (ProtocolException e) {
            logger.error("rendering-error", getTagName(), e);

            throw new XDIMEException(exceptionLocalizer.format(
                    "rendering-error", getTagName()), e);
        }
        return XDIMEResult.PROCESS_ELEMENT_BODY;

    }
View Full Code Here

                // render nl as menu's submenu
                dynamicMenuRenderer.renderNlClose(getProtocol(context),
                        (NavigationListAttributes) protocolAttributes);
            } catch (ProtocolException e) {
                logger.error("rendering-error", getTagName(), e);
                throw new XDIMEException(exceptionLocalizer.format(
                        "rendering-error", getTagName()), e);
            }
        } else {
            protocol.writeCloseUnorderedList((UnorderedListAttributes) protocolAttributes);
        }
View Full Code Here

        try {
            protocol.writeOpenTableBody((TableBodyAttributes)protocolAttributes);
        } catch (ProtocolException e) {
            logger.error("rendering-error", getTagName(), e);

            throw new XDIMEException(exceptionLocalizer.format(
                "rendering-error", getTagName()), e);
        }
        return XDIMEResult.PROCESS_ELEMENT_BODY;       
    }
View Full Code Here

                XDIMESchemata.XML_EVENTS_NAMESPACE, "event");
        if (!event.equals(DOM_ACTIVATE_EVENT)) {
            String localized = EXCEPTION_LOCALIZER.format(
                    "xforms-invalid-event-type",
                    new Object[]{"setvalue", event});
            throw new XDIMEException(localized);
        }

        // Capture the value with which the referenced element should
        // be populated.
        value = attributes.getValue("", XDIMEAttribute.VALUE.toString());
View Full Code Here

TOP

Related Classes of com.volantis.mcs.xdime.XDIMEException

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.