Package com.volantis.mcs.protocols.menu.builder

Examples of com.volantis.mcs.protocols.menu.builder.BuilderException


            builder.endMenu();
           
            return builder.getCompletedMenuModel();
        } catch (MissingResourceException e) {
            // work around bug in junit?
            throw new BuilderException(e);
        }
    }
View Full Code Here


     * @param clazz the class of item that cannot be a child of the current
     *              entity
     * @throws BuilderException the exception required
     */
    private void reportBadParent(Class clazz) throws BuilderException {
        throw new BuilderException(exceptionLocalizer.format(
                    "menu-entity-child-invalid",
                    new Object[] {
                        clazz.getName(),
                        (currentEntity != null ?
                            currentEntity.getClass().getName() :
View Full Code Here

     * @param name the name of attribute that cannot be set on the current
     *             entity
     * @throws BuilderException the exception required
     */
    private void reportBadParent(String name) throws BuilderException {
        throw new BuilderException(exceptionLocalizer.format(
                    "attribute-not-settable",
                    new Object[] {
                        name,
                        (currentEntity != null ?
                            currentEntity.getClass().getName() :
View Full Code Here

     * message when unbalanced calls to start/end methods are detected.
     *
     * @throws BuilderException the exception required
     */
    private void reportUnbalancedStartEnd() throws BuilderException {
        throw new BuilderException(
                    exceptionLocalizer.format("menu-model-builder-unbalanced"));
    }
View Full Code Here

     *
     * @param clazz the type of entity that is not allowed
     * @throws BuilderException the exception required
     */
    private void reportTypeNotAllowed(Class clazz) throws BuilderException {
        throw new BuilderException(
                    exceptionLocalizer.format("menu-model-entity-invalid",
                                              clazz.getName()));
    }
View Full Code Here

     * @param cause an optional causitive exception
     * @throws BuilderException the exception required
     */
    private void reportBadValue(String name,
                                Throwable cause) throws BuilderException {
        throw new BuilderException(exceptionLocalizer.format(
                    "menu-model-missing-attribute",
                    new Object[] {
                        name,
                        (currentEntity != null ?
                            currentEntity.getClass().getName() :null)}),
View Full Code Here

     *
     * @param clazz the class of item missing
     * @throws BuilderException the exception required
     */
    private void reportMissing(Class clazz) throws BuilderException {
        throw new BuilderException(
                    exceptionLocalizer.format("menu-model-error",
                                              clazz.getName()));
    }
View Full Code Here

     */
    private void checkGroup(MenuItemGroup group) throws BuilderException {
        if (group != null) {
            if (group.getSize() == 0) {
                // Must have at least one menu item
                throw new BuilderException(
                            exceptionLocalizer.format("menu-item-required"));
            }
        }
    }
View Full Code Here

                    reportBadValue("href", null);
                }
            } catch (BuilderException e) {
                throw e;
            } catch (Exception e) {
                throw new BuilderException(e);
            }

            checkLabel(item.getLabel(), true);
        }
    }
View Full Code Here

        if (entry != null) {
            try {
                checkNestedPanes(pane);
                entry.setPane(pane);
            } catch (Exception e) {
                throw new BuilderException(e);
            }
        } else {
            reportBadParent("pane");
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.menu.builder.BuilderException

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.