Package xdoclet

Examples of xdoclet.XDocletException


    public void validateOptions() throws XDocletException
    {
        super.validateOptions();

        if (getShortname() == null || getShortname().trim().equals("")) {
            throw new XDocletException(Translator.getString(XDocletMessages.class, XDocletMessages.PARAMETER_MISSING_OR_EMPTY, new String[]{"shortName"}));
        }
    }
View Full Code Here


        while (currentAliases.hasMoreTokens()) {
            String token = currentAliases.nextToken();
            int idx = token.indexOf('=');

            if (idx == -1) {
                throw new XDocletException(Translator.getString(XDocletModulesMvcsoftEjbMessages.class, XDocletModulesMvcsoftEjbMessages.ALIAS_FORM));
            }
            currentFieldName = token.substring(0, idx).trim();
            currentColName = token.substring(idx + 1).trim();
            generate(template);
        }
View Full Code Here

    private void doForExtendedRole(String token, String template) throws XDocletException
    {
        int idx = token.indexOf(':');

        if (idx == -1) {
            throw new XDocletException(Translator.getString(XDocletModulesMvcsoftEjbMessages.class, XDocletModulesMvcsoftEjbMessages.KEY_ALIAS_FORM));
        }

        currentRoleName = token.substring(0, idx);
        currentAliases = new StringTokenizer(token.substring(idx + 1), ",", false);
        generate(template);
View Full Code Here

        while (tokenizer.hasMoreTokens()) {
            String token = tokenizer.nextToken();
            int idx = token.indexOf(":");

            if (idx == -1) {
                throw new XDocletException(Translator.getString(XDocletModulesMvcsoftEjbMessages.class, XDocletModulesMvcsoftEjbMessages.NESTED_FAULT_GROUP_FORM));
            }

            String cmrPath = token.substring(0, idx);
            StringTokenizer cmpFields = new StringTokenizer(token.substring(idx + 1), ",", false);
            Map subMap = getSubMap(mapNested, cmrPath);
View Full Code Here

    public void validateOptions() throws XDocletException
    {
        super.validateOptions();

        if (getServiceEndpointClassPattern() == null || getServiceEndpointClassPattern().trim().equals("")) {
            throw new XDocletException(Translator.getString(XDocletMessages.class, XDocletMessages.PARAMETER_MISSING_OR_EMPTY, new String[]{"pattern"}));
        }

        if (getServiceEndpointClassPattern().indexOf("{0}") == -1) {
            throw new XDocletException(Translator.getString(XDocletModulesWebMessages.class, XDocletModulesWebMessages.PATTERN_HAS_NO_PLACEHOLDER));
        }
    }
View Full Code Here

    protected final String getSubTemplateVariable(SubTemplateEngine subengine, Properties attributes) throws XDocletException
    {
        String vname = attributes.getProperty("name");

        if (vname == null) {
            throw new XDocletException("Missing name property the name of the Velocity variable!");
        }

        Object value = subengine.getVariable(vname);

        if (value == null) {
View Full Code Here

            templateEngine.setVariable("currentFieldTag", getCurrentFieldTag());
            templateEngine.setVariable("currentMethodTag", getCurrentMethodTag());
        }
        catch (Exception ex) {
            log.error("Exception when setting variables", ex);
            throw new XDocletException(ex, "Exception when setting variables");
        }
    }
View Full Code Here

        if (getVersion().equals(SunONEVersionTypes.VERSION_6_5)
            && getTransactionManagerType() != null) {
            if (!getTransactionManagerType().equals("local")
                && !getTransactionManagerType().equals("global")) {
                throw new XDocletException(Translator.getString(XDocletModulesSunONEEjbMessages.class,
                    XDocletModulesSunONEEjbMessages.INVALID_TRANSACTION_MANAGER_TYPE));
            }
        }
    }
View Full Code Here

    public void validateOptions() throws XDocletException
    {
        super.validateOptions();

        if (getUtilClassPattern() == null || getUtilClassPattern().trim().equals("")) {
            throw new XDocletException(Translator.getString(XDocletMessages.class, XDocletMessages.PARAMETER_MISSING_OR_EMPTY, new String[]{"pattern"}));
        }

        if (getUtilClassPattern().indexOf("{0}") == -1) {
            throw new XDocletException(Translator.getString(XDocletModulesEjbMessages.class, XDocletModulesEjbMessages.PATTERN_HAS_NO_PLACEHOLDER));
        }
    }
View Full Code Here

            if (e instanceof XDocletException) {
                throw (XDocletException) e;
            }
            else {
                log.debug("generateForClass()");
                throw new XDocletException(e, Translator.getString(XDocletMessages.class, XDocletMessages.RUNNING_FAILED));
            }
        }
    }
View Full Code Here

TOP

Related Classes of xdoclet.XDocletException

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.