KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > mvc > controller > form > 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.controller.form.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 action element in the XML file
24      */

25     String JavaDoc ACTION_ELEMENT = "action";
26
27     /**
28      * The name of the mapping element in the XML file
29      */

30     String JavaDoc MAPPING_ELEMENT = "mapping";
31     
32
33     /**
34      * The name attribute (generic)
35      */

36     String JavaDoc NAME_ATTRIBUTE = "name";
37
38     /**
39      * The class attribute of the form bean and action handler elements
40      */

41     String JavaDoc CLASS_ATTRIBUTE = "class";
42     
43     /**
44      * The name of the failure mapping attribute of the validator element
45      */

46     String JavaDoc FAILURE_MAPPING_ATTRIBUTE = "failureMapping";
47     
48     /**
49      * The handler attribute of the action handler elements
50      */

51     String JavaDoc HANDLER_ATTRIBUTE = "handler";
52
53     /**
54      * The name of the boolean attribute which determines if the handler is a
55      * repository item or not
56      */

57     String JavaDoc IS_REPOSITORY_ATTRIBUTE = "isRepository";
58
59     /**
60      * The name of the boolean attribute which determines if the model is enabled
61      * for the request
62      */

63     String JavaDoc MODEL_ENABLED_ATTRIBUTE = "modelEnabled";
64     
65     /**
66      * The name of the boolean attribute which determines if the model validation
67      * is enabled for the request
68      */

69     String JavaDoc VALIDATION_ENABLED_ATTRIBUTE = "validationEnabled";
70     
71     /**
72      * The name of the boolean attribute which determines if the action long
73      * transaction support is enabled
74      */

75     String JavaDoc LONG_TXN_ENABLED_ATTRIBUTE = "longTxnEnabled";
76
77     /**
78      * The name of the String attribute which is the start URL of the long
79      * transaction support
80      */

81     String JavaDoc LONG_TXN_START_URL_ATTRIBUTE = "longTxnStartURL";
82
83     /**
84      * The name of the String attribute which is the end URL of the long
85      * transaction support
86      */

87     String JavaDoc LONG_TXN_END_URL_ATTRIBUTE = "longTxnEndURL";
88
89     /**
90      * The name of the String attribute which is the category to use for the
91      * long transaction support
92      */

93     String JavaDoc LONG_TXN_CATEGORY_ATTRIBUTE = "longTxnCategory";
94
95     /**
96      * The name of the String attribute which is the LongTxnSetup class to use
97      * for the long transaction support
98      */

99     String JavaDoc LONG_TXN_SETUP_ATTRIBUTE = "longTxnSetup";
100
101     /**
102      * The name of the URL attribute of the mapping element
103      */

104     String JavaDoc URL_ATTRIBUTE = "url";
105
106     /**
107      * The name of the forward attribute of the mapping element
108      */

109     String JavaDoc FORWARD_ATTRIBUTE = "forward";
110
111     /**
112      * The name of the category attribute of the mapping element
113      */

114     String JavaDoc CATEGORY_ATTRIBUTE = "category";
115
116
117     /**
118      * The name of the ActionConfigBuilder as it is stored in the
119      * ComponentConfigBuilderRegistry
120      */

121     String JavaDoc ACTION_BUILDER_NAME = ACTION_ELEMENT;
122
123     /**
124      * The name of the FormConfigBuilder as it is stored in the
125      * ComponentConfigBuilderRegistry
126      */

127     String JavaDoc FORM_BUILDER_NAME = "form";
128
129     /**
130      * The name of the MappingConfigBuilder as it is stored in the
131      * ComponentConfigBuilderRegistry
132      */

133     String JavaDoc MAPPING_BUILDER_NAME = MAPPING_ELEMENT;
134 }
135
Popular Tags