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