KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > firstpartners > nounit > ui > common > LightWeightValueChecker


1 package net.firstpartners.nounit.ui.common;
2
3 import java.util.HashMap JavaDoc;
4 import java.util.Map JavaDoc;
5
6 import net.firstpartners.nounit.utility.NoUnitException;
7
8 /**
9  * Title: NoUnit - Identify Classes that are not being unit Tested
10  *
11  * Copyright (C) 2001 Paul Browne , FirstPartners.net
12  *
13  *
14  * This program is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU General Public License
16  * as published by the Free Software Foundation; either version 2
17  * of the License, or (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with this program; if not, write to the Free Software
26  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27  *
28  * @author Andrew Glover
29  * @since Jul 4, 2003
30  *
31  * Class only checks for valid directories for input and output.
32  */

33 public class LightWeightValueChecker extends AbstractValueChecker {
34
35     /* (non-Javadoc)
36      * @see net.firstpartners.nounit.ui.common.AbstractValueChecker#checkValues(net.firstpartners.nounit.ui.common.AbstractPackage)
37      */

38     public boolean checkValues(AbstractPackage inValues) throws NoUnitException{
39           
40         //Make sure that the Directories Actually Exist
41
Map JavaDoc checkDirs = new HashMap JavaDoc();
42         checkDirs.put(CommandPackage.START_DIR,CommandPackage.START_DIR);
43         checkDirs.put(CommandPackage.OUTPUT_DIR,CommandPackage.OUTPUT_DIR);
44
45         this.checkForDirsExist(inValues,checkDirs);
46         
47         return true;
48         
49     }
50
51 }
52
Popular Tags