Package net.sf.jmd.exception

Examples of net.sf.jmd.exception.MoDiException


    // transform________________________________________________________________
    public void transformArchitectsModel(MoDi.Language language)
            throws MoDiException {
        if (amFiles == null) {
            throw new MoDiException("We have no model files, call "
                    + "findArchitectsModelFiles(...) first.");
        }

        IModel amModel = new Model();
        amModel.setType(Model.Type.AM);
View Full Code Here


    }

    public void transformDevelopersModel(MoDi.Language language)
            throws MoDiException {
        if (dmFiles == null) {
            throw new MoDiException("We have no model files, call "
                    + "findDevelopersModelFiles(...) first.");
        }

        IModel dmModel = new Model();
        dmModel.setType(Model.Type.DM);
View Full Code Here

        try {
       
            return  PROPERTIES.getProperty(key);
    
        } catch (NullPointerException e) {
            throw new MoDiException("The key (" + key + " was null!\n"
                    + e.getMessage());
        }
    }
View Full Code Here

    }

    public List<File> findFiles(File rootDir, String pattern)
            throws MoDiException {
        if (rootDir == null || pattern == null) {
            throw new MoDiException("Neither \"rootDir\" nor \"pattern\" are"
                    + "allowed to be null!");
        }
        List<File> results = new ArrayList<File>();
        List<File> workdirs = new ArrayList<File>();
        filenameFilter = new FileFinderFilter(pattern);

        // we can work on a single file too
        if (rootDir.isFile() && rootDir.getAbsolutePath().endsWith(pattern)) {
            results.add(rootDir);
            return results;
        }
        // we only work on directories
        if (rootDir.isDirectory()) {
            this.dir = rootDir;
        } else {
            throw new MoDiException("Please specify a root directory. I "
                    + "found: \"" + rootDir.getAbsolutePath() + "\" not to " + "be a directory.");
        }

        workdirs.add(dir);// setup for workdir
View Full Code Here

            if (filename != null) {
                fileLocation = filename;
            }
            File file = new File(fileLocation);
            if (!file.isDirectory()) {
                throw new MoDiException("the directory configured for the "
                        + "report does not exist.");
            }

            writer = new FileWriter(fileLocation + "/" + fileName);
            writer.write(reportResult.toString());
View Full Code Here

    }

    public List<File> findFiles(File rootDir, String pattern)
            throws MoDiException {
        if (rootDir == null || pattern == null) {
            throw new MoDiException("Neither \"rootDir\" nor \"pattern\" are"
                    + "allowed to be null!");
        }
        List<File> results = new ArrayList<File>();
        List<File> workdirs = new ArrayList<File>();
        filenameFilter = new FileFinderFilter(pattern);

        // we can work on a single file too
        if (rootDir.isFile() && rootDir.getAbsolutePath().endsWith(pattern)) {
            results.add(rootDir);
            return results;
        }
        // we only work on directories
        if (rootDir.isDirectory()) {
            this.dir = rootDir;
        } else {
            throw new MoDiException("Please specify a root directory. I "
                    + "found: \"" + rootDir.getAbsolutePath() + "\" not to " + "be a directory.");
        }

        workdirs.add(dir);// setup for workdir
View Full Code Here

        try {
       
            return  PROPERTIES.getProperty(key);
    
        } catch (NullPointerException e) {
            throw new MoDiException("The key (" + key + " was null!\n"
                    + e.getMessage());
        }
    }
View Full Code Here

            if (filename != null) {
                fileLocation = filename;
            }
            File file = new File(fileLocation);
            if (!file.isDirectory()) {
                throw new MoDiException("the directory configured for the "
                        + "report does not exist.");
            }

            writer = new FileWriter(fileLocation + "/" + fileName);
            writer.write(reportResult.toString());
View Full Code Here

    // transform________________________________________________________________
    public void transformArchitectsModel(MoDi.Language language)
            throws MoDiException {
        if (amFiles == null) {
            throw new MoDiException("We have no model files, call "
                    + "findArchitectsModelFiles(...) first.");
        }

        IModel amModel = new Model();
        amModel.setType(Model.Type.AM);
View Full Code Here

    }

    public void transformDevelopersModel(MoDi.Language language)
            throws MoDiException {
        if (dmFiles == null) {
            throw new MoDiException("We have no model files, call "
                    + "findDevelopersModelFiles(...) first.");
        }

        IModel dmModel = new Model();
        dmModel.setType(Model.Type.DM);
View Full Code Here

TOP

Related Classes of net.sf.jmd.exception.MoDiException

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.