View Javadoc
1   package org.andromda.cartridges.bpm4struts;
2   
3   /**
4    * Stores the BPM4Struts Global variables.
5    *
6    * @author Wouter Zoons
7    * @author Chad Brandon
8    */
9   public class Bpm4StrutsGlobals
10  {
11      /**
12       * The default number of columns to render for input fields.
13       */
14      public static final String PROPERTY_DEFAULT_INPUT_COLUMN_COUNT = "defaultInputColumnCount";
15  
16      /**
17       * The default number of rows to render for textarea fields.
18       */
19      public static final String PROPERTY_DEFAULT_INPUT_ROW_COUNT = "defaultInputRowCount";
20  
21      /**
22       * Stores the default date format when dates are formatted.
23       */
24      public static final String PROPERTY_DEFAULT_DATEFORMAT = "defaultDateFormat";
25  
26      /**
27       * Stores the default time format when times are formatted.
28       */
29      public static final String PROPERTY_DEFAULT_TIMEFORMAT = "defaultTimeFormat";
30  
31      /**
32       * Are date and time format to be strictly applied to the entered input ?
33       */
34      public static final String PROPERTY_STRICT_DATETIMEFORMAT = "strictDateTimeFormat";
35  
36      /**
37       * Contains the default value for whether or not all forwards should perform a HTTP redirect or not.
38       */
39      public static final String PROPERTY_DEFAULT_ACTION_REDIRECT = "defaultActionRedirect";
40  
41      /**
42       * The namespace property used to identify the action path prefix, which may very well be empty.
43       */
44      public static final String PROPERTY_ACTION_PATH_PREFIX = "actionPathPrefix";
45  
46      /**
47       * The namespace property used to toggle the automatic generation of table decorators for displaytag.
48       */
49      public static final String PROPERTY_GENERATE_TABLE_DECORATORS = "generateTableDecorators";
50  
51      /**
52       * The suffix used to append to decorator class names.
53       */
54      public static final String PROPERTY_TABLE_DECORATOR_SUFFIX = "tableDecoratorSuffix";
55  
56      /**
57       * A space-separated list of types to which displaytag table are to be exported by default.
58       */
59      public static final String PROPERTY_DEFAULT_TABLE_EXPORT_TYPES = "defaultTableExportTypes";
60  
61      /**
62       * Stores the scope of the "form" attribute when executing an action.
63       */
64      public static final String PROPERTY_ACTION_FORM_SCOPE = "actionFormScope";
65  
66      /**
67       * Denotes the way application resource messages ought to be generated.
68       * When messages are normalized it means that elements with the same name
69       * will reuse the same label, even if they are located in entirely different
70       * use-cases or pages.
71       * <p>
72       * This results in resource bundles that are not only smaller in size but
73       * also more straightforward to translate. The downside is that it will be
74       * less evident to customize labels for certain fields (which is rarely the
75       * case anyway).
76       * <p>
77       * For backward compatibility reasons this flag is disabled by default.
78       */
79      public static final String PROPERTY_NORMALIZE_MESSAGES = "normalizeMessages";
80  
81      /**
82       * Instructs the cartridge not to include hidden fields in the validation process.
83       */
84      public static final String DISABLE_VALIDATION_FOR_HIDDEN_FORM_FIELDS = "disableValidationForHiddenFormFields";
85  
86      /**
87       * The suffix for form names.
88       */
89      public static final String FORM_SUFFIX = "Form";
90  
91      /**
92       * The suffix for form implementation names.
93       */
94      public static final String FORM_IMPLEMENTATION_SUFFIX = FORM_SUFFIX + "Impl";
95  
96      /**
97       * The namespace property used to identify the pattern used to construct the backend service's package name.
98       */
99      public static final String SERVICE_PACKAGE_NAME_PATTERN = "servicePackageNamePattern";
100 
101     /**
102      * The namespace property used to identify the pattern used to construct the backend service's accessor.
103      */
104     public static final String SERVICE_ACCESSOR_PATTERN = "serviceAccessorPattern";
105 }