KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > compiler > JpfLanguageConstants


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * $Header:$
17  */

18 package org.apache.beehive.netui.compiler;
19
20 import java.io.File JavaDoc;
21
22 public interface JpfLanguageConstants
23 {
24     public static final String JavaDoc BEEHIVE_PACKAGE = "org.apache.beehive";
25     public static final String JavaDoc NETUI_PACKAGE = BEEHIVE_PACKAGE + ".netui";
26     public static final String JavaDoc PAGEFLOW_PACKAGE = NETUI_PACKAGE + ".pageflow";
27     public static final String JavaDoc PAGEFLOW_INTERNAL_PACKAGE = PAGEFLOW_PACKAGE + ".internal";
28     public static final String JavaDoc ANNOTATIONS_CLASSNAME = PAGEFLOW_PACKAGE + ".annotations.Jpf";
29     
30     public static final String JavaDoc ACTION_TAG_NAME = "Action";
31     public static final String JavaDoc SIMPLE_ACTION_TAG_NAME = "SimpleAction";
32     public static final String JavaDoc EXCEPTION_HANDLER_TAG_NAME = "ExceptionHandler";
33     public static final String JavaDoc FORWARD_TAG_NAME = "Forward";
34     public static final String JavaDoc CATCH_TAG_NAME = "Catch";
35     public static final String JavaDoc CONTROLLER_TAG_NAME = "Controller";
36     public static final String JavaDoc MESSAGE_BUNDLE_TAG_NAME = "MessageBundle";
37     public static final String JavaDoc VIEW_PROPERTIES_TAG_NAME = "ViewProperties";
38     public static final String JavaDoc VALIDATION_LOCALE_RULES_TAG_NAME = "ValidationLocaleRules";
39     public static final String JavaDoc VALIDATION_BEAN_TAG_NAME = "ValidationBean";
40     public static final String JavaDoc VALIDATABLE_PROPERTY_TAG_NAME = "ValidatableProperty";
41     public static final String JavaDoc VALIDATABLE_BEAN_TAG_NAME = "ValidatableBean";
42     public static final String JavaDoc FORM_BEAN_TAG_NAME = "FormBean";
43     public static final String JavaDoc ACTION_OUTPUT_TAG_NAME = "ActionOutput";
44     public static final String JavaDoc CONDITIONAL_FORWARD_TAG_NAME = "ConditionalForward";
45     public static final String JavaDoc FACES_BACKING_TAG_NAME = "FacesBacking";
46     public static final String JavaDoc COMMAND_HANDLER_TAG_NAME = "CommandHandler";
47     public static final String JavaDoc RAISE_ACTION_TAG_NAME = "RaiseAction";
48     public static final String JavaDoc SHARED_FLOW_REF_TAG_NAME = "SharedFlowRef";
49     public static final String JavaDoc SHARED_FLOW_FIELD_TAG_NAME = "SharedFlowField";
50     public static final String JavaDoc PAGE_FLOW_FIELD_TAG_NAME = "PageFlowField";
51     
52     public static final String JavaDoc VALIDATE_REQUIRED_TAG_NAME = "ValidateRequired";
53     public static final String JavaDoc VALIDATE_RANGE_TAG_NAME = "ValidateRange";
54     public static final String JavaDoc VALIDATE_MIN_LENGTH_TAG_NAME = "ValidateMinLength";
55     public static final String JavaDoc VALIDATE_MAX_LENGTH_TAG_NAME = "ValidateMaxLength";
56     public static final String JavaDoc VALIDATE_CREDIT_CARD_TAG_NAME = "ValidateCreditCard";
57     public static final String JavaDoc VALIDATE_EMAIL_TAG_NAME = "ValidateEmail";
58     public static final String JavaDoc VALIDATE_MASK_TAG_NAME = "ValidateMask";
59     public static final String JavaDoc VALIDATE_DATE_TAG_NAME = "ValidateDate";
60     public static final String JavaDoc VALIDATE_TYPE_TAG_NAME = "ValidateType";
61     public static final String JavaDoc VALIDATE_VALID_WHEN_TAG_NAME = "ValidateValidWhen";
62     public static final String JavaDoc VALIDATE_CUSTOM_RULE_TAG_NAME = "ValidateCustomRule";
63     public static final String JavaDoc MESSAGE_ARG_TAG_NAME = "MessageArg";
64     public static final String JavaDoc VALIDATE_CUSTOM_VARIABLE_TAG_NAME = "ValidateCustomVariable";
65
66     public static final String JavaDoc BEGIN_ACTION_NAME = "begin";
67     public static final String JavaDoc JPF_FILE_EXTENSION = "jpf";
68     public static final String JavaDoc FACES_BACKING_FILE_EXTENSION = "jsfb";
69     public static final String JavaDoc JAVA_FILE_EXTENSION = "java";
70     public static final String JavaDoc JSP_FILE_EXTENSION = "jsp";
71     public static final String JavaDoc XJSP_FILE_EXTENSION = "jspx";
72     public static final String JavaDoc ACTION_EXTENSION = "do";
73     public static final String JavaDoc JPF_FILE_EXTENSION_DOT = '.' + JPF_FILE_EXTENSION;
74     public static final String JavaDoc ACTION_EXTENSION_DOT = '.' + ACTION_EXTENSION;
75     public static final String JavaDoc JAVA_FILE_EXTENSION_DOT = '.' + JAVA_FILE_EXTENSION;
76     public static final String JavaDoc FACES_BACKING_FILE_EXTENSION_DOT = '.' + FACES_BACKING_FILE_EXTENSION;
77     public static final String JavaDoc SHARED_FLOW_FILE_EXTENSION = "jpfs";
78     public static final String JavaDoc GLOBALAPP_FILE_EXTENSION = "app";
79     public static final String JavaDoc GLOBALAPP_FILE_EXTENSION_DOT = '.' + GLOBALAPP_FILE_EXTENSION;
80     public static final String JavaDoc SHARED_FLOW_FILE_EXTENSION_DOT = '.' + SHARED_FLOW_FILE_EXTENSION;
81     public static final String JavaDoc SHARED_FLOW_CLASSNAME = "SharedFlowController";
82     public static final String JavaDoc FLOWCONTROLLER_BASE_CLASS = PAGEFLOW_PACKAGE + ".FlowController";
83     public static final String JavaDoc JPF_BASE_CLASS = PAGEFLOW_PACKAGE + ".PageFlowController";
84     public static final String JavaDoc SHARED_FLOW_BASE_CLASS = PAGEFLOW_PACKAGE + ".SharedFlowController";
85     public static final String JavaDoc FACES_BACKING_BEAN_CLASS = PAGEFLOW_PACKAGE + ".FacesBackingBean";
86     public static final String JavaDoc FLOW_CONTROLLER_ACTION_CLASS = PAGEFLOW_INTERNAL_PACKAGE + ".FlowControllerAction";
87     public static final String JavaDoc GLOBALAPP_BASE_CLASS = PAGEFLOW_PACKAGE + ".GlobalApp";
88     public static final String JavaDoc GLOBALAPP_PACKAGE = "global";
89     public static final String JavaDoc GLOBALAPP_CLASSNAME = "Global";
90     public static final String JavaDoc GLOBALAPP_SHARED_FLOW_NAME = "__global";
91     public static final String JavaDoc GLOBALAPP_FULL_CLASSNAME = GLOBALAPP_PACKAGE + '.' + GLOBALAPP_CLASSNAME;
92     public static final String JavaDoc WEBINF_DIR_NAME = "WEB-INF";
93     public static final String JavaDoc WEBINF_SRC_PATH = '/' + WEBINF_DIR_NAME + "/src";
94     public static final String JavaDoc WEBINF_SRC_DIR = WEBINF_DIR_NAME + File.separatorChar + "src";
95     public static final String JavaDoc GLOBALAPP_PARENT_PATH = WEBINF_SRC_PATH + '/' + GLOBALAPP_PACKAGE;
96     public static final String JavaDoc GLOBALAPP_SOURCE_NAME = GLOBALAPP_CLASSNAME + GLOBALAPP_FILE_EXTENSION_DOT;
97     public static final String JavaDoc GLOBALAPP_URI = GLOBALAPP_PARENT_PATH + '/' + GLOBALAPP_SOURCE_NAME;
98     public static final String JavaDoc ANNOTATION_QUALIFIER = PAGEFLOW_PACKAGE + ".annotations.Jpf.";
99     public static final String JavaDoc ANNOTATION_INTERFACE_PREFIX = "Jpf.";
100     public static final String JavaDoc NAVIGATE_TO_ENUM = "NavigateTo";
101     public static final String JavaDoc DEFAULT_VALIDATION_MESSAGE_BUNDLE = PAGEFLOW_PACKAGE + ".validation.defaultMessages";
102     public static final String JavaDoc DEFAULT_VALIDATION_MESSAGE_BUNDLE_NAME = "_defaultValidationMessages";
103     public static final String JavaDoc DEFAULT_SIMPLE_ACTION_FORWARD_NAME = "_defaultForward";
104
105     public static final String JavaDoc NESTED_ATTR = "nested";
106     public static final String JavaDoc LONGLIVED_ATTR = "longLived";
107     public static final String JavaDoc STRUTSMERGE_ATTR = "strutsMerge";
108     public static final String JavaDoc VALIDATOR_VERSION_ATTR = "validatorVersion";
109     public static final String JavaDoc VALIDATOR_MERGE_ATTR = "validatorMerge";
110     public static final String JavaDoc CUSTOM_VALIDATOR_CONFIGS_ATTR = "customValidatorConfigs";
111     public static final String JavaDoc TILES_DEFINITIONS_CONFIGS_ATTR = "tilesDefinitionsConfigs";
112     public static final String JavaDoc LOGIN_REQUIRED_ATTR = "loginRequired";
113     public static final String JavaDoc ROLES_ALLOWED_ATTR = "rolesAllowed";
114     public static final String JavaDoc NAME_ATTR = "name";
115     public static final String JavaDoc PATH_ATTR = "path";
116     public static final String JavaDoc TILES_DEFINITION_ATTR = "tilesDefinition";
117     public static final String JavaDoc OUTPUT_FORM_BEAN_TYPE_ATTR = "outputFormBeanType";
118     public static final String JavaDoc OUTPUT_FORM_BEAN_ATTR = "outputFormBean";
119     public static final String JavaDoc NAVIGATE_TO_ATTR = "navigateTo";
120     public static final String JavaDoc RETURN_ACTION_ATTR = "returnAction";
121     public static final String JavaDoc MESSAGE_ATTR = "message";
122     public static final String JavaDoc MESSAGE_KEY_ATTR = "messageKey";
123     public static final String JavaDoc MESSAGE_ARGS_ATTR = "messageArgs";
124     public static final String JavaDoc ARG_ATTR = "arg";
125     public static final String JavaDoc ARG_KEY_ATTR = "argKey";
126     public static final String JavaDoc POSITION_ATTR = "position";
127     public static final String JavaDoc DISPLAY_NAME_ATTR = "displayName";
128     public static final String JavaDoc DISPLAY_NAME_KEY_ATTR = "displayNameKey";
129     public static final String JavaDoc METHOD_ATTR = "method";
130     public static final String JavaDoc TYPE_ATTR = "type";
131     public static final String JavaDoc REDIRECT_ATTR = "redirect";
132     public static final String JavaDoc EXTERNAL_REDIRECT_ATTR = "externalRedirect";
133     public static final String JavaDoc BUNDLE_PATH_ATTR = "bundlePath";
134     public static final String JavaDoc BUNDLE_NAME_ATTR = "bundleName";
135     public static final String JavaDoc ACTION_OUTPUTS_ATTR = "actionOutputs";
136     public static final String JavaDoc REQUIRED_ATTR = "required";
137     public static final String JavaDoc USE_FORM_BEAN_ATTR = "useFormBean";
138     public static final String JavaDoc USE_FORM_BEAN_TYPE_ATTR = "useFormBeanType";
139     public static final String JavaDoc READONLY_ATTR = "readOnly";
140     public static final String JavaDoc RESTORE_QUERY_STRING_ATTR = "restoreQueryString";
141     public static final String JavaDoc VALUE_ATTR = "value";
142     public static final String JavaDoc MESSAGE_BUNDLES_ATTR = "messageBundles";
143     public static final String JavaDoc FORWARDS_ATTR = "forwards";
144     public static final String JavaDoc CATCHES_ATTR = "catches";
145     public static final String JavaDoc VALIDATION_ERROR_FORWARD_ATTR = "validationErrorForward";
146     public static final String JavaDoc DO_VALIDATION_ATTR = "doValidation";
147     public static final String JavaDoc LANGUAGE_ATTR = "language";
148     public static final String JavaDoc COUNTRY_ATTR = "country";
149     public static final String JavaDoc VARIANT_ATTR = "variant";
150     public static final String JavaDoc VALIDATE_REQUIRED_ATTR = "validateRequired";
151     public static final String JavaDoc VALIDATE_RANGE_ATTR = "validateRange";
152     public static final String JavaDoc VALIDATE_MIN_LENGTH_ATTR = "validateMinLength";
153     public static final String JavaDoc VALIDATE_MAX_LENGTH_ATTR = "validateMaxLength";
154     public static final String JavaDoc VALIDATE_CREDIT_CARD_ATTR = "validateCreditCard";
155     public static final String JavaDoc VALIDATE_EMAIL_ATTR = "validateEmail";
156     public static final String JavaDoc VALIDATE_MASK_ATTR = "validateMask";
157     public static final String JavaDoc VALIDATE_DATE_ATTR = "validateDate";
158     public static final String JavaDoc VALIDATE_TYPE_ATTR = "validateType";
159     public static final String JavaDoc VALIDATE_VALID_WHEN_ATTR = "validateValidWhen";
160     public static final String JavaDoc VALIDATE_CUSTOM_ATTR = "validateCustomRules";
161     public static final String JavaDoc VALIDATABLE_PROPERTIES_ATTR = "validatableProperties";
162     public static final String JavaDoc MESSAGE_BUNDLE_ATTR = "messageBundle";
163     public static final String JavaDoc APPLY_TO_UNHANDLED_LOCALES_ATTR = "applyToUnhandledLocales";
164     public static final String JavaDoc VALIDATION_BEANS_ATTR = "validationBeans";
165     public static final String JavaDoc ACTION_ATTR = "action";
166     public static final String JavaDoc RAISE_ACTIONS_ATTR = "raiseActions";
167     public static final String JavaDoc MULTIPART_HANDLER_ATTR = "multipartHandler";
168     public static final String JavaDoc SHARED_FLOW_REFS_ATTR = "sharedFlowRefs";
169     public static final String JavaDoc PREVENT_DOUBLE_SUBMIT_ATTR = "preventDoubleSubmit";
170     public static final String JavaDoc FORWARD_REF_ATTR = "forwardRef";
171     
172     public static final String JavaDoc MIN_INT_ATTR = "minInt";
173     public static final String JavaDoc MAX_INT_ATTR = "maxInt";
174     public static final String JavaDoc MIN_FLOAT_ATTR = "minFloat";
175     public static final String JavaDoc MAX_FLOAT_ATTR = "maxFloat";
176     public static final String JavaDoc CHARS_ATTR = "chars";
177     public static final String JavaDoc STRICT_ATTR = "strict";
178     public static final String JavaDoc REGEX_ATTR = "regex";
179     public static final String JavaDoc PATTERN_ATTR = "pattern";
180     public static final String JavaDoc PROPERTY_NAME_ATTR = "propertyName";
181     public static final String JavaDoc LOCALE_RULES_ATTR = "localeRules";
182     public static final String JavaDoc VALIDATABLE_BEANS_ATTR = "validatableBeans";
183     public static final String JavaDoc KEY_ATTR = "key";
184     public static final String JavaDoc SIMPLE_ACTIONS_ATTR = "simpleActions";
185     public static final String JavaDoc CONDITION_ATTR = "condition";
186     public static final String JavaDoc CONDITIONAL_FORWARDS_ATTR = "conditionalForwards";
187     public static final String JavaDoc RULE_ATTR = "rule";
188     public static final String JavaDoc VARIABLES_ATTR = "variables";
189     
190     public static final String JavaDoc STRUTS_PACKAGE = "org.apache.struts";
191     public static final String JavaDoc FORWARD_CLASS_NAME = PAGEFLOW_PACKAGE + ".Forward";
192     public static final String JavaDoc STRUTS_FORM_CLASS_NAME = STRUTS_PACKAGE + ".action.ActionForm";
193     public static final String JavaDoc PAGEFLOW_FORM_CLASS_NAME = PAGEFLOW_PACKAGE + ".FormData";
194     public static final String JavaDoc BEA_XMLOBJECT_CLASS_NAME = "com.bea.xml.XmlObject";
195     public static final String JavaDoc APACHE_XMLOBJECT_CLASS_NAME = "org.apache.xmlbeans.XmlObject";
196     public static final String JavaDoc XML_FORM_CLASS_NAME = PAGEFLOW_PACKAGE + ".internal.XmlBeanActionForm";
197     public static final String JavaDoc ANY_FORM_CLASS_NAME = PAGEFLOW_PACKAGE + ".internal.AnyBeanActionForm";
198     public static final String JavaDoc STRING_CLASS_NAME = String JavaDoc.class.getName();
199     public static final String JavaDoc THROWABLE_CLASS_NAME = Throwable JavaDoc.class.getName();
200     public static final String JavaDoc OBJECT_CLASS_NAME = Object JavaDoc.class.getName();
201     public static final String JavaDoc SERIALIZABLE_CLASS_NAME = "java.io.Serializable";
202     
203     public static final String JavaDoc NAVIGATE_TO_CURRENT_PAGE_STR = "currentPage";
204     public static final String JavaDoc NAVIGATE_TO_PREVIOUS_PAGE_STR = "previousPage";
205     public static final String JavaDoc NAVIGATE_TO_PAGE_LEGACY_STR = "page";
206     public static final String JavaDoc NAVIGATE_TO_PREVIOUS_ACTION_STR = "previousAction";
207     
208     public static final String JavaDoc MULTIPART_HANDLER_DISABLED_STR = "disabled";
209     public static final String JavaDoc MULTIPART_HANDLER_MEMORY_STR = "memory";
210     public static final String JavaDoc MULTIPART_HANDLER_DISK_STR = "disk";
211     
212     public static final String JavaDoc MULTIPART_HANDLER_MEMORY_CLASSNAME = STRUTS_PACKAGE + ".upload.CommonsMultipartRequestHandler";
213     public static final String JavaDoc MULTIPART_HANDLER_DISK_CLASSNAME = STRUTS_PACKAGE + ".upload.DiskMultipartRequestHandler";
214     
215     public static final String JavaDoc VALIDATOR_VERSION_ONE_ZERO_STR = "oneZero";
216     public static final String JavaDoc VALIDATOR_VERSION_ONE_ONE_STR = "oneOne";
217
218     public static final String JavaDoc ARRAY_TYPE_SUFFIX = "[]";
219     public static final String JavaDoc GETTER_PREFIX = "get";
220     public static final String JavaDoc BOOLEAN_GETTER_PREFIX = "is";
221     
222     public static final String JavaDoc PAGEFLOW_RUNTIME_JAR = '/' + WEBINF_DIR_NAME + "/lib/beehive-netui-pageflow.jar";
223     public static final String JavaDoc RUNTIME_VERSION_ATTRIBUTE = "PageFlow-Runtime-Version";
224     
225     public static final String JavaDoc VERSION_8_SP2_STRING = "2";
226     public static final String JavaDoc VERSION_9_0_STRING = "3";
227     
228     public static class ExtraInfoKeys
229     {
230         public static final Integer JavaDoc flowControllerInfo = new Integer JavaDoc( 0 );
231         public static final Integer JavaDoc facesBackingInfo = new Integer JavaDoc( 1 );
232         public static final Integer JavaDoc overlappingPageFlowFiles = new Integer JavaDoc( 2 );
233         
234         private Integer JavaDoc _val;
235         
236         public ExtraInfoKeys( Integer JavaDoc val )
237         {
238             _val = val;
239         }
240         
241         public boolean equals( Object JavaDoc val )
242         {
243             return _val.equals( val );
244         }
245         
246         public Integer JavaDoc getVal()
247         {
248             return _val;
249         }
250     }
251
252     /**
253      * When this APT option is set, the logic that warns about missing files looks here for web files, like .jsps.
254      */

255     public static final String JavaDoc ALTERNATE_WEB_ROOT_DIR_OPTION = "-AalternateWebRootDir";
256 }
257
Popular Tags