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