Package xdoclet

Examples of xdoclet.XDocletException


    }
   
    /** Return the right null value according to type of property*/
    public String attributeNullValue() throws XDocletException {
        String type = attributeType();
        if (type == null) throw new XDocletException("Missing(or wrong) attribute 'type' in property declaration.");
        if (type.equals("boolean")) return("false");
        if (type.equals("byte")) return("0");
        if (type.equals("short")) return("0");
        if (type.equals("int")) return("0");
        if (type.equals("long")) return("0");
View Full Code Here


    }
   
   
    private boolean isAttributePrimitive() throws XDocletException {
        String type = attributeType();
        if (type == null) throw new XDocletException("Missing(or wrong) attribute 'type' in property declaration.");
        if (type.equals("boolean") || type.equals("byte") || type.equals("short") ||
        type.equals("int") || type.equals("long") || type.equals("float") ||
        type.equals("double") || type.equals("char"))
            return (true);
       
View Full Code Here

                    return (firstLetterToUpperCase(type));
            }
            return (type);
           
        } catch (Exception ex){
            throw new XDocletException(ex.getMessage());
        }
    }
View Full Code Here

        String name = attributeName();
       
        try {
            return (getterPrefix() + firstLetterToUpperCase(name));
        } catch (Exception ex){
            throw new XDocletException(ex.getMessage());
        }
    }
View Full Code Here

        String name = attributeName();
       
        try {
            return (firstLetterToUpperCase(name));
        } catch (Exception ex){
            throw new XDocletException(ex.getMessage());
        }
    }
View Full Code Here

    public String setterMethodName() throws XDocletException {
        String name = attributeName();
        try {
            return ("set" + firstLetterToUpperCase(name));
        } catch (Exception ex){
            throw new XDocletException(ex.getMessage());
        }
    }
View Full Code Here

    public void setIterator(Properties prop) throws XDocletException {
        String value = prop.getProperty("value");
        try {
            iter = Integer.parseInt(value);
        } catch (NumberFormatException ex) {
            throw new XDocletException("You have to set property 'value' in method setIterator. 'Value' is a integer number.");
        }
    }
View Full Code Here

    }
   
    public void validateOptions() throws XDocletException {
        super.validateOptions();
        if (getDestinationFile() == null) {
            throw new XDocletException("Ant Doclet Subtaksk FacesConfigSubTaks: You have to set attribute 'destinationFile'.");           
        }
    }
View Full Code Here

    }
   
    public void validateOptions() throws XDocletException {
        super.validateOptions();
        if (getDestinationFile() == null) {
            throw new XDocletException("Ant Doclet Subtaksk ComponentSubTaks: You have to set attribute 'destinationFile'.");           
        }
    }
View Full Code Here

    }
   
    public void validateOptions() throws XDocletException {
        super.validateOptions();
        if (getDestinationFile() == null) {
            throw new XDocletException("Ant Doclet Subtaksk TagSubTaks: You have to set attribute 'destinationFile'.");           
        }
    }
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.