KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > mvc > config > Constants


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.config;
8
9
10 /**
11  * This interface contains all the constants used in build
12  * and accessing configuration. Most of the constants are
13  * used when reading the XML file (such as element names
14  * and attribute names)
15  *
16  * @author Brian Pontarelli
17  * @since 1.0
18  * @version 2.0
19  */

20 public interface Constants {
21
22     /**
23      * The name of the form element in the XML file
24      */

25     String JavaDoc FORM_ELEMENT = "form";
26
27     /**
28      * The name of the form bean element of the form element
29      */

30     String JavaDoc FORM_BEAN_ELEMENT = "formBean";
31
32     /**
33      * The name of the validator element in the XML file
34      */

35     String JavaDoc VALIDATOR_ELEMENT = "validator";
36
37     /**
38      * The property element of the validator
39      */

40     String JavaDoc PROPERTY_ELEMENT = "property";
41
42
43     /**
44      * The name attribute (generic)
45      */

46     String JavaDoc NAME_ATTRIBUTE = "name";
47
48     /**
49      * The class attribute of the form bean elements
50      */

51     String JavaDoc CLASS_ATTRIBUTE = "class";
52
53     /**
54      * The name of the failure definition attribute of the validator element
55      */

56     String JavaDoc FAILURE_ATTRIBUTE = "failureDef";
57
58     /**
59      * The type attribute of the property validation element
60      */

61     String JavaDoc TYPE_ATTRIBUTE = "type";
62
63     /**
64      * The key attribute of the property validation element
65      */

66     String JavaDoc KEY_ATTRIBUTE = "key";
67
68     /**
69      * The bundle attribute of the property validation element
70      */

71     String JavaDoc BUNDLE_NAME_ATTRIBUTE = "bundleName";
72
73     /**
74      * The errorMsg attribute of the property validation element
75      */

76     String JavaDoc ERROR_MSG_ATTRIBUTE = "errorMsg";
77
78     /**
79      * The scope attribute of the form bean
80      */

81     String JavaDoc SCOPE_ATTRIBUTE = "scope";
82
83     /**
84      * The name of the boolean attribute which determines if the handler is a
85      * repository item or not
86      */

87     String JavaDoc IS_REPOSITORY_ATTRIBUTE = "isRepository";
88
89     /**
90      * The name of the FormConfigBuilder as it is stored in the
91      * ComponentConfigBuilderRegistry
92      */

93     String JavaDoc FORM_BUILDER_NAME = FORM_ELEMENT;
94
95     /**
96      * The name of the ValidatorConfigBuilder as it is stored in the
97      * ComponentConfigBuilderRegistry
98      */

99     String JavaDoc VALIDATOR_BUILDER_NAME = VALIDATOR_ELEMENT;
100 }
101
Popular Tags