001: package org.andromda.cartridges.bpm4struts;
002:
003: import org.andromda.core.profile.Profile;
004:
005: /**
006: * Contains the BPM4Struts profile.
007: *
008: * @author Wouter Zoons
009: */
010: public class Bpm4StrutsProfile {
011: /**
012: * The Profile instance from which we retrieve the mapped profile names.
013: */
014: private static final Profile profile = Profile.instance();
015:
016: /* ----------------- Stereotypes -------------------- */
017: public static final String STEREOTYPE_EXCEPTION = profile
018: .get("FRONT_END_EXCEPTION");
019:
020: /* ----------------- Tagged Values -------------------- */
021: public static final String TAGGEDVALUE_ACTION_TYPE = profile
022: .get("ACTION_TYPE");
023: public static final String TAGGEDVALUE_ACTION_RESETTABLE = profile
024: .get("ACTION_RESETTABLE");
025: public static final String TAGGEDVALUE_ACTION_SUCCESS_MESSAGE = profile
026: .get("ACTION_SUCCESS_MESSAGE");
027: public static final String TAGGEDVALUE_ACTION_WARNING_MESSAGE = profile
028: .get("ACTION_WARNING_MESSAGE");
029: public static final String TAGGEDVALUE_ACTION_FORM_SCOPE = profile
030: .get("ACTION_FORM_SCOPE");
031: public static final String TAGGEDVALUE_ACTION_FORM_KEY = profile
032: .get("ACTION_FORM_KEY");
033: public static final String TAGGEDVALUE_ACTION_TABLELINK = profile
034: .get("ACTION_TABLELINK");
035: public static final String TAGGEDVALUE_INPUT_COLUMN_COUNT = profile
036: .get("INPUT_COLUMN_COUNT");
037: public static final String TAGGEDVALUE_INPUT_ROW_COUNT = profile
038: .get("INPUT_ROW_COUNT");
039: public static final String TAGGEDVALUE_INPUT_REQUIRED = profile
040: .get("INPUT_REQUIRED");
041: public static final String TAGGEDVALUE_INPUT_READONLY = profile
042: .get("INPUT_READONLY");
043: public static final String TAGGEDVALUE_INPUT_FORMAT = profile
044: .get("INPUT_FORMAT");
045: public static final String TAGGEDVALUE_INPUT_TYPE = profile
046: .get("INPUT_TYPE");
047: public static final String TAGGEDVALUE_INPUT_MULTIBOX = profile
048: .get("INPUT_MULTIBOX");
049: public static final String TAGGEDVALUE_INPUT_RADIO = profile
050: .get("INPUT_RADIO");
051: public static final String TAGGEDVALUE_INPUT_VALIDWHEN = profile
052: .get("INPUT_VALIDWHEN");
053: public static final String TAGGEDVALUE_INPUT_VALIDATORS = profile
054: .get("INPUT_VALIDATORS");
055: public static final String TAGGEDVALUE_INPUT_CALENDAR = profile
056: .get("INPUT_CALENDAR");
057: public static final String TAGGEDVALUE_INPUT_RESET = profile
058: .get("INPUT_RESET");
059: public static final String TAGGEDVALUE_TABLE_COLUMNS = profile
060: .get("TABLE_COLUMNS");
061: public static final String TAGGEDVALUE_TABLE_MAXROWS = profile
062: .get("TABLE_MAXROWS");
063: public static final String TAGGEDVALUE_TABLE_EXPORT = profile
064: .get("TABLE_EXPORT");
065: public static final String TAGGEDVALUE_TABLE_SORTABLE = profile
066: .get("TABLE_SORTABLE");
067: public static final String TAGGEDVALUE_TABLE_DECORATOR = profile
068: .get("TABLE_DECORATOR");
069: public static final String TAGGEDVALUE_EXCEPTION_TYPE = profile
070: .get("EXCEPTION_TYPE");
071: public static final String TAGGEDVALUE_ACTION_REDIRECT = profile
072: .get("ACTION_REDIRECT");
073:
074: /* ----------------- Data Types -------------------- */
075: public static final String CHARACTER_TYPE_NAME = profile
076: .get("CHARACTER_TYPE");
077: public static final String BYTE_TYPE_NAME = profile
078: .get("BYTE_TYPE");
079: public static final String SHORT_TYPE_NAME = profile
080: .get("SHORT_TYPE");
081: public static final String INTEGER_TYPE_NAME = profile
082: .get("INTEGER_TYPE");
083: public static final String LONG_TYPE_NAME = profile
084: .get("LONG_TYPE");
085: public static final String FLOAT_TYPE_NAME = profile
086: .get("FLOAT_TYPE");
087: public static final String DOUBLE_TYPE_NAME = profile
088: .get("DOUBLE_TYPE");
089: public static final String URL_TYPE_NAME = profile.get("URL_TYPE");
090: public static final String TIME_TYPE_NAME = profile
091: .get("TIME_TYPE");
092:
093: /* ----------------- Default Values ------------------- */
094: public static final String TAGGEDVALUE_INPUT_DEFAULT_REQUIRED = "true";
095: public static final String TAGGEDVALUE_EXCEPTION_DEFAULT_TYPE = "java.lang.Exception";
096: public static final String TAGGEDVALUE_ACTION_FORM_DEFAULT_KEY = "form";
097: public static final String TAGGEDVALUE_ACTION_TYPE_HYPERLINK = "hyperlink";
098: public static final String TAGGEDVALUE_ACTION_TYPE_FORM = "form";
099: public static final String TAGGEDVALUE_ACTION_TYPE_IMAGE = "image";
100: public static final String TAGGEDVALUE_ACTION_TYPE_TABLE = "table";
101: public static final String TAGGEDVALUE_ACTION_DEFAULT_TYPE = TAGGEDVALUE_ACTION_TYPE_FORM;
102: public static final String TAGGEDVALUE_INPUT_TYPE_TEXT = "text";
103: public static final String TAGGEDVALUE_INPUT_TYPE_PLAINTEXT = "plaintext";
104: public static final String TAGGEDVALUE_INPUT_TYPE_TEXTAREA = "textarea";
105: public static final String TAGGEDVALUE_INPUT_TYPE_RADIO = "radio";
106: public static final String TAGGEDVALUE_INPUT_TYPE_CHECKBOX = "checkbox";
107: public static final String TAGGEDVALUE_INPUT_TYPE_HIDDEN = "hidden";
108: public static final String TAGGEDVALUE_INPUT_TYPE_SELECT = "select";
109: public static final String TAGGEDVALUE_INPUT_TYPE_PASSWORD = "password";
110: public static final String TAGGEDVALUE_INPUT_TYPE_MULTIBOX = "multibox";
111: public static final String TAGGEDVALUE_INPUT_TYPE_LINK = "link";
112: public static final String TAGGEDVALUE_INPUT_TYPE_FILE = "file";
113: public static final int TAGGEDVALUE_INPUT_TYPE_OPTION_DEFAULT_COUNT = 3;
114: public static final int TAGGEDVALUE_TABLE_MAXROWS_DEFAULT_COUNT = 15;
115: public static final boolean TAGGEDVALUE_TABLE_SORTABLE_DEFAULT_VALUE = true;
116: public static final boolean TAGGEDVALUE_TABLE_EXPORTABLE_DEFAULT_VALUE = true;
117:
118: private Bpm4StrutsProfile() {
119: }
120: }
|