KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > mvc > validator > test > TestValidator1


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.verge.mvc.validator.test;
8
9
10 import java.util.Map JavaDoc;
11
12 import com.inversoft.verge.mvc.controller.Action;
13 import com.inversoft.verge.mvc.validator.Validator;
14 import com.inversoft.verge.util.WebBeanProperty;
15
16
17 /**
18  * <p>
19  * This class is a test validator
20  * </p>
21  *
22  * @author Brian Pontarelli
23  * @since 2.0
24  * @version 2.0
25  */

26 public class TestValidator1 implements Validator {
27     
28     public static boolean validated;
29
30     /**
31      * Constructor for TestValidator1.
32      */

33     public TestValidator1() {
34         super();
35     }
36
37
38     /**
39      *
40      */

41     public boolean validate(Map JavaDoc modelObjects, Action action) {
42         validated = true;
43         return false;
44     }
45
46     /**
47      *
48      */

49     public void handleConversion(Object JavaDoc model, WebBeanProperty property,
50             Action action) {
51     }
52 }
53
Popular Tags