001: package org.andromda.cartridges.bpm4struts;
002:
003: /**
004: * Stores the BPM4Struts Global variables.
005: *
006: * @author Wouter Zoons
007: * @author Chad Brandon
008: */
009: public class Bpm4StrutsGlobals {
010: /**
011: * The default number of columns to render for input fields.
012: */
013: public static final String PROPERTY_DEFAULT_INPUT_COLUMN_COUNT = "defaultInputColumnCount";
014:
015: /**
016: * The default number of rows to render for textarea fields.
017: */
018: public static final String PROPERTY_DEFAULT_INPUT_ROW_COUNT = "defaultInputRowCount";
019:
020: /**
021: * Stores the default date format when dates are formatted.
022: */
023: public static final String PROPERTY_DEFAULT_DATEFORMAT = "defaultDateFormat";
024:
025: /**
026: * Stores the default time format when times are formatted.
027: */
028: public static final String PROPERTY_DEFAULT_TIMEFORMAT = "defaultTimeFormat";
029:
030: /**
031: * Are date and time format to be strictly applied to the entered input ?
032: */
033: public static final String PROPERTY_STRICT_DATETIMEFORMAT = "strictDateTimeFormat";
034:
035: /**
036: * Contains the default value for whether or not all forwards should perform a HTTP redirect or not.
037: */
038: public static final String PROPERTY_DEFAULT_ACTION_REDIRECT = "defaultActionRedirect";
039:
040: /**
041: * The namespace property used to identify the action path prefix, which may very well be empty.
042: */
043: public static final String PROPERTY_ACTION_PATH_PREFIX = "actionPathPrefix";
044:
045: /**
046: * The namespace property used to toggle the automatic generation of table decorators for displaytag.
047: */
048: public static final String PROPERTY_GENERATE_TABLE_DECORATORS = "generateTableDecorators";
049:
050: /**
051: * The suffix used to append to decorator class names.
052: */
053: public static final String PROPERTY_TABLE_DECORATOR_SUFFIX = "tableDecoratorSuffix";
054:
055: /**
056: * A space-separated list of types to which displaytag table are to be exported by default.
057: */
058: public static final String PROPERTY_DEFAULT_TABLE_EXPORT_TYPES = "defaultTableExportTypes";
059:
060: /**
061: * Stores the scope of the "form" attribute when executing an action.
062: */
063: public static final String PROPERTY_ACTION_FORM_SCOPE = "actionFormScope";
064:
065: /**
066: * Denotes the way application resource messages ought to be generated.
067: * When messages are normalized it means that elements with the same name
068: * will reuse the same label, even if they are located in entirely different
069: * use-cases or pages.
070: * <p/>
071: * This results in resource bundles that are not only smaller in size but
072: * also more straightforward to translate. The downside is that it will be
073: * less evident to customize labels for certain fields (which is rarely the
074: * case anyway).
075: * <p/>
076: * For backward compatibility reasons this flag is disabled by default.
077: */
078: public static final String PROPERTY_NORMALIZE_MESSAGES = "normalizeMessages";
079:
080: /**
081: * Instructs the cartridge not to include hidden fields in the validation process.
082: */
083: public static final String DISABLE_VALIDATION_FOR_HIDDEN_FORM_FIELDS = "disableValidationForHiddenFormFields";
084:
085: /**
086: * The suffix for form names.
087: */
088: public static final String FORM_SUFFIX = "Form";
089:
090: /**
091: * The suffix for form implementation names.
092: */
093: public static final String FORM_IMPLEMENTATION_SUFFIX = FORM_SUFFIX
094: + "Impl";
095:
096: /**
097: * The namespace property used to identify the pattern used to construct the backend service's package name.
098: */
099: 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: }
|