Package xdoclet

Examples of xdoclet.XDocletException


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

        if (getTagName() == null) {
            throw new XDocletException("tagName parameter is missing.");
        }
        if (getValueParamName() == null) {
            throw new XDocletException("valueParamName parameter is missing.");
        }
    }
View Full Code Here


    {
        if (DocletContext.getInstance().isSubTaskDefined(DocletTask.getSubTaskName(ExternalizerSubTask.class))) {
            return ((ExternalizerSubTask) DocletContext.getInstance().getSubTaskBy(DocletTask.getSubTaskName(ExternalizerSubTask.class))).getBundleKey(getCurrentClass());
        }
        else {
            throw new XDocletException(Translator.getString("xdoclet.modules.externalizer.ExternalizerSubtaskMessages",
                ExternalizerSubtaskMessages.TRANSLATOR_DEPENDS_ON_EXTERNALIZER));
        }
    }
View Full Code Here

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

        if (getJndiName() == null) {
            throw new XDocletException(Translator.getString(XDocletModulesHibernateMessages.class,
                XDocletModulesHibernateMessages.JNDI_NAME_REQUIRED));
        }

        if (getServiceName() == null) {
            throw new XDocletException(Translator.getString(XDocletModulesHibernateMessages.class,
                XDocletModulesHibernateMessages.SERVICE_NAME_REQUIRED));
        }
    }
View Full Code Here

     *      used for finding the corresponding \@websphere.resource-ref tag"
     */
    public void forAllResourceRefs(String template, Properties attributes) throws XDocletException
    {
        if (currentTag == null) {
            throw new XDocletException("XDtWebSphere.forAllResourceRefs can only be used inside XDtWebSphere.forAllTags");
        }

        String nameParam = attributes.getProperty("nameParam", "res-ref-name");
        String resRefName = currentTag.getAttributeValue(nameParam);

View Full Code Here

        // Return the jndi-name on the ejb-bean depending on the view-type
        else {
            String refed_ejb_name = currentTag.getAttributeValue("ejb-name");

            if (refed_ejb_name == null) {
                throw new XDocletException("No ejb-name attribute found in ejb-ref specified in bean " + getCurrentClass());
            }

            XClass refed_clazz = findEjb(refed_ejb_name);
            String ejb_type = null;
View Full Code Here

        try {
            mavenPluginTagsHandler = (MavenpluginTagsHandler) TemplateEngine.getEngineInstance().getTagHandlerFor("Mavenplugin");
        }
        catch (TemplateException e) {
            throw new XDocletException(e.getMessage());
        }

        mavenPluginTagsHandler.setTasks(getTasks());

        super.startProcessForAll();
View Full Code Here

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

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

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

            // the getter might be in a superclass, so check those as well
            //
            XMethod method = PropertyTagsHandler.getXMethodForMethodName(getter, true);

            if (method == null) {
                throw new XDocletException("Could not find method " + getter + " that is supposed to return the PrimKeyField.");
            }

            return method.getReturnType().getType().getQualifiedName();
        }
View Full Code Here

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

        if (getFactoryClass() == null) {
            throw new XDocletException(Translator.getString(XDocletModulesHibernateMessages.class,
                XDocletModulesHibernateMessages.FACTORY_NAME_REQUIRED));
        }
    }
View Full Code Here

        try {
            pth = (PropertyTagsHandler) ((TemplateSubTask) getDocletContext().getActiveSubTask()).getEngine().getTagHandlerFor("Property");
        }
        catch (TemplateException te) {
            throw new XDocletException(te, "there's some funky shiat going on!");
        }

        // get the normal type
        //
        String type = pth.propertyTypeWithTag(attributes);
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.