001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: *
017: * $Header:$
018: */
019: package org.apache.beehive.netui.compiler;
020:
021: public interface JpfLanguageConstants {
022: public static final String BEEHIVE_PACKAGE = "org.apache.beehive";
023: public static final String NETUI_PACKAGE = BEEHIVE_PACKAGE
024: + ".netui";
025: public static final String PAGEFLOW_PACKAGE = NETUI_PACKAGE
026: + ".pageflow";
027: public static final String PAGEFLOW_INTERNAL_PACKAGE = PAGEFLOW_PACKAGE
028: + ".internal";
029: public static final String ANNOTATIONS_CLASSNAME = PAGEFLOW_PACKAGE
030: + ".annotations.Jpf";
031:
032: public static final String ANNOTATION_PROCESSOR_OPTION_PHASE = "phase";
033:
034: public static final String ACTION_TAG_NAME = "Action";
035: public static final String SIMPLE_ACTION_TAG_NAME = "SimpleAction";
036: public static final String EXCEPTION_HANDLER_TAG_NAME = "ExceptionHandler";
037: public static final String FORWARD_TAG_NAME = "Forward";
038: public static final String CATCH_TAG_NAME = "Catch";
039: public static final String CONTROLLER_TAG_NAME = "Controller";
040: public static final String MESSAGE_BUNDLE_TAG_NAME = "MessageBundle";
041: public static final String VIEW_PROPERTIES_TAG_NAME = "ViewProperties";
042: public static final String VALIDATION_LOCALE_RULES_TAG_NAME = "ValidationLocaleRules";
043: public static final String VALIDATION_BEAN_TAG_NAME = "ValidationBean";
044: public static final String VALIDATABLE_PROPERTY_TAG_NAME = "ValidatableProperty";
045: public static final String VALIDATABLE_BEAN_TAG_NAME = "ValidatableBean";
046: public static final String FORM_BEAN_TAG_NAME = "FormBean";
047: public static final String ACTION_OUTPUT_TAG_NAME = "ActionOutput";
048: public static final String CONDITIONAL_FORWARD_TAG_NAME = "ConditionalForward";
049: public static final String FACES_BACKING_TAG_NAME = "FacesBacking";
050: public static final String COMMAND_HANDLER_TAG_NAME = "CommandHandler";
051: public static final String RAISE_ACTION_TAG_NAME = "RaiseAction";
052: public static final String SHARED_FLOW_REF_TAG_NAME = "SharedFlowRef";
053: public static final String SHARED_FLOW_FIELD_TAG_NAME = "SharedFlowField";
054: public static final String PAGE_FLOW_FIELD_TAG_NAME = "PageFlowField";
055:
056: public static final String VALIDATE_REQUIRED_TAG_NAME = "ValidateRequired";
057: public static final String VALIDATE_RANGE_TAG_NAME = "ValidateRange";
058: public static final String VALIDATE_MIN_LENGTH_TAG_NAME = "ValidateMinLength";
059: public static final String VALIDATE_MAX_LENGTH_TAG_NAME = "ValidateMaxLength";
060: public static final String VALIDATE_CREDIT_CARD_TAG_NAME = "ValidateCreditCard";
061: public static final String VALIDATE_EMAIL_TAG_NAME = "ValidateEmail";
062: public static final String VALIDATE_MASK_TAG_NAME = "ValidateMask";
063: public static final String VALIDATE_DATE_TAG_NAME = "ValidateDate";
064: public static final String VALIDATE_TYPE_TAG_NAME = "ValidateType";
065: public static final String VALIDATE_VALID_WHEN_TAG_NAME = "ValidateValidWhen";
066: public static final String VALIDATE_URL_TAG_NAME = "ValidateURL";
067: public static final String VALIDATE_CUSTOM_RULE_TAG_NAME = "ValidateCustomRule";
068: public static final String MESSAGE_ARG_TAG_NAME = "MessageArg";
069: public static final String VALIDATE_CUSTOM_VARIABLE_TAG_NAME = "ValidateCustomVariable";
070:
071: public static final String BEGIN_ACTION_NAME = "begin";
072: public static final String JPF_FILE_EXTENSION = "jpf";
073: public static final String FACES_BACKING_FILE_EXTENSION = "jsfb";
074: public static final String JAVA_FILE_EXTENSION = "java";
075: public static final String JSP_FILE_EXTENSION = "jsp";
076: public static final String XJSP_FILE_EXTENSION = "jspx";
077: public static final String ACTION_EXTENSION = "do";
078: public static final String JPF_FILE_EXTENSION_DOT = '.' + JPF_FILE_EXTENSION;
079: public static final String ACTION_EXTENSION_DOT = '.' + ACTION_EXTENSION;
080: public static final String JAVA_FILE_EXTENSION_DOT = '.' + JAVA_FILE_EXTENSION;
081: public static final String FACES_BACKING_FILE_EXTENSION_DOT = '.' + FACES_BACKING_FILE_EXTENSION;
082: public static final String SHARED_FLOW_FILE_EXTENSION = "jpfs";
083: public static final String GLOBALAPP_FILE_EXTENSION = "app";
084: public static final String GLOBALAPP_FILE_EXTENSION_DOT = '.' + GLOBALAPP_FILE_EXTENSION;
085: public static final String SHARED_FLOW_FILE_EXTENSION_DOT = '.' + SHARED_FLOW_FILE_EXTENSION;
086: public static final String SHARED_FLOW_CLASSNAME = "SharedFlowController";
087: public static final String FLOWCONTROLLER_BASE_CLASS = PAGEFLOW_PACKAGE
088: + ".FlowController";
089: public static final String JPF_BASE_CLASS = PAGEFLOW_PACKAGE
090: + ".PageFlowController";
091: public static final String SHARED_FLOW_BASE_CLASS = PAGEFLOW_PACKAGE
092: + ".SharedFlowController";
093: public static final String FACES_BACKING_BEAN_CLASS = PAGEFLOW_PACKAGE
094: + ".FacesBackingBean";
095: public static final String FLOW_CONTROLLER_ACTION_CLASS = PAGEFLOW_INTERNAL_PACKAGE
096: + ".FlowControllerAction";
097: public static final String GLOBALAPP_BASE_CLASS = PAGEFLOW_PACKAGE
098: + ".GlobalApp";
099: public static final String GLOBALAPP_PACKAGE = "global";
100: public static final String GLOBALAPP_CLASSNAME = "Global";
101: public static final String GLOBALAPP_SHARED_FLOW_NAME = "__global";
102: public static final String GLOBALAPP_FULL_CLASSNAME = GLOBALAPP_PACKAGE
103: + '.' + GLOBALAPP_CLASSNAME;
104: public static final String WEBINF_DIR_NAME = "WEB-INF";
105: public static final String WEBINF_SRC_PATH = '/' + WEBINF_DIR_NAME
106: + "/src";
107: public static final String GLOBALAPP_PARENT_PATH = WEBINF_SRC_PATH
108: + '/' + GLOBALAPP_PACKAGE;
109: public static final String GLOBALAPP_SOURCE_NAME = GLOBALAPP_CLASSNAME
110: + GLOBALAPP_FILE_EXTENSION_DOT;
111: public static final String GLOBALAPP_URI = GLOBALAPP_PARENT_PATH
112: + '/' + GLOBALAPP_SOURCE_NAME;
113: public static final String ANNOTATION_QUALIFIER = PAGEFLOW_PACKAGE
114: + ".annotations.Jpf.";
115: public static final String ANNOTATION_INTERFACE_PREFIX = "Jpf.";
116: public static final String NAVIGATE_TO_ENUM = "NavigateTo";
117: public static final String DEFAULT_VALIDATION_MESSAGE_BUNDLE = PAGEFLOW_PACKAGE
118: + ".validation.defaultMessages";
119: public static final String DEFAULT_VALIDATION_MESSAGE_BUNDLE_NAME = "_defaultMsgs";
120: public static final String DEFAULT_SIMPLE_ACTION_FORWARD_NAME = "_defaultForward";
121:
122: public static final String NESTED_ATTR = "nested";
123: public static final String LONGLIVED_ATTR = "longLived";
124: public static final String STRUTSMERGE_ATTR = "strutsMerge";
125: public static final String VALIDATOR_VERSION_ATTR = "validatorVersion";
126: public static final String VALIDATOR_MERGE_ATTR = "validatorMerge";
127: public static final String CUSTOM_VALIDATOR_CONFIGS_ATTR = "customValidatorConfigs";
128: public static final String TILES_DEFINITIONS_CONFIGS_ATTR = "tilesDefinitionsConfigs";
129: public static final String LOGIN_REQUIRED_ATTR = "loginRequired";
130: public static final String ROLES_ALLOWED_ATTR = "rolesAllowed";
131: public static final String NAME_ATTR = "name";
132: public static final String PATH_ATTR = "path";
133: public static final String TILES_DEFINITION_ATTR = "tilesDefinition";
134: public static final String OUTPUT_FORM_BEAN_TYPE_ATTR = "outputFormBeanType";
135: public static final String OUTPUT_FORM_BEAN_ATTR = "outputFormBean";
136: public static final String NAVIGATE_TO_ATTR = "navigateTo";
137: public static final String RETURN_ACTION_ATTR = "returnAction";
138: public static final String MESSAGE_ATTR = "message";
139: public static final String MESSAGE_KEY_ATTR = "messageKey";
140: public static final String MESSAGE_ARGS_ATTR = "messageArgs";
141: public static final String ARG_ATTR = "arg";
142: public static final String ARG_KEY_ATTR = "argKey";
143: public static final String POSITION_ATTR = "position";
144: public static final String DISPLAY_NAME_ATTR = "displayName";
145: public static final String DISPLAY_NAME_KEY_ATTR = "displayNameKey";
146: public static final String METHOD_ATTR = "method";
147: public static final String TYPE_ATTR = "type";
148: public static final String REDIRECT_ATTR = "redirect";
149: public static final String EXTERNAL_REDIRECT_ATTR = "externalRedirect";
150: public static final String BUNDLE_PATH_ATTR = "bundlePath";
151: public static final String BUNDLE_NAME_ATTR = "bundleName";
152: public static final String ACTION_OUTPUTS_ATTR = "actionOutputs";
153: public static final String REQUIRED_ATTR = "required";
154: public static final String USE_FORM_BEAN_ATTR = "useFormBean";
155: public static final String USE_FORM_BEAN_TYPE_ATTR = "useFormBeanType";
156: public static final String READONLY_ATTR = "readOnly";
157: public static final String INHERIT_LOCAL_PATHS_ATTR = "inheritLocalPaths";
158: public static final String RESTORE_QUERY_STRING_ATTR = "restoreQueryString";
159: public static final String VALUE_ATTR = "value";
160: public static final String MESSAGE_BUNDLES_ATTR = "messageBundles";
161: public static final String FORWARDS_ATTR = "forwards";
162: public static final String CATCHES_ATTR = "catches";
163: public static final String VALIDATION_ERROR_FORWARD_ATTR = "validationErrorForward";
164: public static final String DO_VALIDATION_ATTR = "doValidation";
165: public static final String LANGUAGE_ATTR = "language";
166: public static final String COUNTRY_ATTR = "country";
167: public static final String VARIANT_ATTR = "variant";
168: public static final String VALIDATE_REQUIRED_ATTR = "validateRequired";
169: public static final String VALIDATE_RANGE_ATTR = "validateRange";
170: public static final String VALIDATE_MIN_LENGTH_ATTR = "validateMinLength";
171: public static final String VALIDATE_MAX_LENGTH_ATTR = "validateMaxLength";
172: public static final String VALIDATE_CREDIT_CARD_ATTR = "validateCreditCard";
173: public static final String VALIDATE_EMAIL_ATTR = "validateEmail";
174: public static final String VALIDATE_MASK_ATTR = "validateMask";
175: public static final String VALIDATE_DATE_ATTR = "validateDate";
176: public static final String VALIDATE_TYPE_ATTR = "validateType";
177: public static final String VALIDATE_VALID_WHEN_ATTR = "validateValidWhen";
178: public static final String VALIDATE_URL_ATTR = "validateURL";
179: public static final String VALIDATE_CUSTOM_ATTR = "validateCustomRules";
180: public static final String VALIDATABLE_PROPERTIES_ATTR = "validatableProperties";
181: public static final String MESSAGE_BUNDLE_ATTR = "messageBundle";
182: public static final String APPLY_TO_UNHANDLED_LOCALES_ATTR = "applyToUnhandledLocales";
183: public static final String VALIDATION_BEANS_ATTR = "validationBeans";
184: public static final String ACTION_ATTR = "action";
185: public static final String RAISE_ACTIONS_ATTR = "raiseActions";
186: public static final String MULTIPART_HANDLER_ATTR = "multipartHandler";
187: public static final String SHARED_FLOW_REFS_ATTR = "sharedFlowRefs";
188: public static final String PREVENT_DOUBLE_SUBMIT_ATTR = "preventDoubleSubmit";
189: public static final String FORWARD_REF_ATTR = "forwardRef";
190: public static final String TYPE_HINT_ATTR = "typeHint";
191: public static final String ALLOW_ALL_SCHEMES_ATTR = "allowAllSchemes";
192: public static final String ALLOW_TWO_SLASHES_ATTR = "allowTwoSlashes";
193: public static final String DISALLOW_FRAGMENTS = "disallowFragments";
194: public static final String SCHEMES_ATTR = "schemes";
195:
196: public static final String MIN_INT_ATTR = "minInt";
197: public static final String MAX_INT_ATTR = "maxInt";
198: public static final String MIN_FLOAT_ATTR = "minFloat";
199: public static final String MAX_FLOAT_ATTR = "maxFloat";
200: public static final String CHARS_ATTR = "chars";
201: public static final String STRICT_ATTR = "strict";
202: public static final String REGEX_ATTR = "regex";
203: public static final String PATTERN_ATTR = "pattern";
204: public static final String PROPERTY_NAME_ATTR = "propertyName";
205: public static final String LOCALE_RULES_ATTR = "localeRules";
206: public static final String VALIDATABLE_BEANS_ATTR = "validatableBeans";
207: public static final String KEY_ATTR = "key";
208: public static final String SIMPLE_ACTIONS_ATTR = "simpleActions";
209: public static final String CONDITION_ATTR = "condition";
210: public static final String CONDITIONAL_FORWARDS_ATTR = "conditionalForwards";
211: public static final String RULE_ATTR = "rule";
212: public static final String VARIABLES_ATTR = "variables";
213:
214: public static final String STRUTS_PACKAGE = "org.apache.struts";
215: public static final String FORWARD_CLASS_NAME = PAGEFLOW_PACKAGE
216: + ".Forward";
217: public static final String STRUTS_FORM_CLASS_NAME = STRUTS_PACKAGE
218: + ".action.ActionForm";
219: public static final String STRUTS_ACTION_MAPPING_CLASS_NAME = STRUTS_PACKAGE
220: + ".action.ActionMapping";
221: public static final String PAGEFLOW_FORM_CLASS_NAME = PAGEFLOW_PACKAGE
222: + ".FormData";
223: public static final String PAGEFLOW_VALIDATABLE_INTERFACE_NAME = PAGEFLOW_PACKAGE
224: + ".Validatable";
225: public static final String BEA_XMLOBJECT_CLASS_NAME = "com.bea.xml.XmlObject";
226: public static final String APACHE_XMLOBJECT_CLASS_NAME = "org.apache.xmlbeans.XmlObject";
227: public static final String XML_FORM_CLASS_NAME = PAGEFLOW_PACKAGE
228: + ".internal.XmlBeanActionForm";
229: public static final String ANY_FORM_CLASS_NAME = PAGEFLOW_PACKAGE
230: + ".internal.AnyBeanActionForm";
231: public static final String STRING_CLASS_NAME = String.class
232: .getName();
233: public static final String THROWABLE_CLASS_NAME = Throwable.class
234: .getName();
235: public static final String OBJECT_CLASS_NAME = Object.class
236: .getName();
237: public static final String SERIALIZABLE_CLASS_NAME = "java.io.Serializable";
238: public static final String HTTP_REQUEST_CLASS_NAME = "javax.servlet.http.HttpServletRequest";
239:
240: public static final String NAVIGATE_TO_CURRENT_PAGE_STR = "currentPage";
241: public static final String NAVIGATE_TO_PREVIOUS_PAGE_STR = "previousPage";
242: public static final String NAVIGATE_TO_PAGE_LEGACY_STR = "page";
243: public static final String NAVIGATE_TO_PREVIOUS_ACTION_STR = "previousAction";
244:
245: public static final String MULTIPART_HANDLER_DISABLED_STR = "disabled";
246: public static final String MULTIPART_HANDLER_MEMORY_STR = "memory";
247: public static final String MULTIPART_HANDLER_DISK_STR = "disk";
248:
249: public static final String COMMONS_MULTIPART_HANDLER_CLASSNAME = STRUTS_PACKAGE
250: + ".upload.CommonsMultipartRequestHandler";
251:
252: public static final String VALIDATOR_VERSION_ONE_ZERO_STR = "oneZero";
253: public static final String VALIDATOR_VERSION_ONE_ONE_STR = "oneOne";
254:
255: public static final String ARRAY_TYPE_SUFFIX = "[]";
256: public static final String GETTER_PREFIX = "get";
257: public static final String BOOLEAN_GETTER_PREFIX = "is";
258:
259: public static final String PAGEFLOW_RUNTIME_JAR = '/'
260: + WEBINF_DIR_NAME + "/lib/beehive-netui-core.jar";
261: public static final String RUNTIME_VERSION_ATTRIBUTE = "PageFlow-Runtime-Version";
262:
263: public static final String VERSION_8_SP2_STRING = "2";
264: public static final String VERSION_9_0_STRING = "3";
265:
266: public static class ExtraInfoKeys {
267: public static final Integer flowControllerInfo = new Integer(0);
268: public static final Integer facesBackingInfo = new Integer(1);
269: public static final Integer overlappingPageFlowFiles = new Integer(
270: 2);
271:
272: private Integer _val;
273:
274: public ExtraInfoKeys(Integer val) {
275: _val = val;
276: }
277:
278: public boolean equals(Object val) {
279: return _val.equals(val);
280: }
281:
282: public Integer getVal() {
283: return _val;
284: }
285: }
286: }
|