001package org.andromda.cartridges.jsf2; 002 003import org.andromda.core.profile.Profile; 004 005/** 006 * Contains the AndroMDA JSF profile. 007 * 008 * @author Chad Brandon 009 */ 010public class JSFProfile 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_REGISTRATION */ 019 public static final String STEREOTYPE_FRONT_END_REGISTRATION = PROFILE.get("FRONT_END_REGISTRATION"); 020 /** FRONT_END_NAVIGATION */ 021 public static final String STEREOTYPE_FRONT_END_NAVIGATION = PROFILE.get("FRONT_END_NAVIGATION"); 022 /** MANAGEABLE_ATTRIBUTE */ 023 public static final String STEREOTYPE_MANAGEABLE_ATTRIBUTE = PROFILE.get("MANAGEABLE_ATTRIBUTE"); 024 025 /* ----------------- Tagged Values -------------------- */ 026 /** ACTION_FORM_SCOPE */ 027 public static final String TAGGEDVALUE_ACTION_FORM_SCOPE = PROFILE.get("ACTION_FORM_SCOPE"); 028 /** ACTION_FORM_KEY */ 029 public static final String TAGGEDVALUE_ACTION_FORM_KEY = PROFILE.get("ACTION_FORM_KEY"); 030 /** ACTION_TABLELINK */ 031 public static final String TAGGEDVALUE_ACTION_TABLELINK = PROFILE.get("ACTION_TABLELINK"); 032 /** ACTION_TYPE */ 033 public static final String TAGGEDVALUE_ACTION_TYPE = PROFILE.get("ACTION_TYPE"); 034 /** ACTION_RESETTABLE */ 035 public static final String TAGGEDVALUE_ACTION_RESETTABLE = PROFILE.get("ACTION_RESETTABLE"); 036 /** INPUT_TYPE */ 037 public static final String TAGGEDVALUE_INPUT_TYPE = PROFILE.get("INPUT_TYPE"); 038 /** INPUT_TABLELINK */ 039 public static final String TAGGEDVALUE_INPUT_TABLELINK = PROFILE.get("INPUT_TABLELINK"); 040 /** EXCEPTION_TYPE */ 041 public static final String TAGGEDVALUE_EXCEPTION_TYPE = PROFILE.get("EXCEPTION_TYPE"); 042 /** ACTION_REDIRECT */ 043 public static final String TAGGEDVALUE_ACTION_REDIRECT = PROFILE.get("ACTION_REDIRECT"); 044 /** INPUT_REQUIRED */ 045 public static final String TAGGEDVALUE_INPUT_REQUIRED = PROFILE.get("INPUT_REQUIRED"); 046 /** INPUT_READONLY */ 047 public static final String TAGGEDVALUE_INPUT_READONLY = PROFILE.get("INPUT_READONLY"); 048 /** INPUT_VALIDWHEN */ 049 public static final String TAGGEDVALUE_INPUT_VALIDWHEN = PROFILE.get("INPUT_VALIDWHEN"); 050 /** INPUT_EQUAL */ 051 public static final String TAGGEDVALUE_INPUT_EQUAL = PROFILE.get("INPUT_EQUAL"); 052 /** INPUT_TABLE_IDENTIFIER_COLUMNS */ 053 public static final String TAGGEDVALUE_INPUT_TABLE_IDENTIFIER_COLUMNS 054 = PROFILE.get("INPUT_TABLE_IDENTIFIER_COLUMNS"); 055 /** INPUT_VALIDATORS */ 056 public static final String TAGGEDVALUE_INPUT_VALIDATORS = PROFILE.get("INPUT_VALIDATORS"); 057 /** INPUT_FORMAT */ 058 public static final String TAGGEDVALUE_INPUT_FORMAT = PROFILE.get("INPUT_FORMAT"); 059 /** INPUT_RESET */ 060 public static final String TAGGEDVALUE_INPUT_RESET = PROFILE.get("INPUT_RESET"); 061 /** TABLE_PAGEABLE */ 062 public static final String TAGGEDVALUE_TABLE_PAGEABLE = PROFILE.get("TABLE_PAGEABLE"); 063 /** VIEW_TYPE */ 064 public static final String TAGGEDVALUE_VIEW_TYPE = PROFILE.get("VIEW_TYPE"); 065 /** ACTION_FORM_RESET */ 066 public static final String TAGGEDVALUE_ACTION_FORM_RESET = PROFILE.get("ACTION_FORM_RESET"); 067 /** ACTION_SUCCESS_MESSAGE */ 068 public static final String TAGGEDVALUE_ACTION_SUCCESS_MESSAGE = PROFILE.get("ACTION_SUCCESS_MESSAGE"); 069 /** ACTION_WARNING_MESSAGE */ 070 public static final String TAGGEDVALUE_ACTION_WARNING_MESSAGE = PROFILE.get("ACTION_WARNING_MESSAGE"); 071 /** INPUT_COLUMN_COUNT */ 072 public static final String TAGGEDVALUE_INPUT_COLUMN_COUNT = PROFILE.get("INPUT_COLUMN_COUNT"); 073 /** INPUT_ROW_COUNT */ 074 public static final String TAGGEDVALUE_INPUT_ROW_COUNT = PROFILE.get("INPUT_ROW_COUNT"); 075 /** TABLE_COLUMNS */ 076 public static final String TAGGEDVALUE_TABLE_COLUMNS = PROFILE.get("TABLE_COLUMNS"); 077 /** TABLE_MAXROWS */ 078 public static final String TAGGEDVALUE_TABLE_MAXROWS = PROFILE.get("TABLE_MAXROWS"); 079 /** TABLE_EXPORT */ 080 public static final String TAGGEDVALUE_TABLE_EXPORT = PROFILE.get("TABLE_EXPORT"); 081 /** TABLE_SORTABLE */ 082 public static final String TAGGEDVALUE_TABLE_SORTABLE = PROFILE.get("TABLE_SORTABLE"); 083 084 /** Implementation */ 085 public static final String ANDROMDA_MANAGEABLE_IMPLEMENTATION = PROFILE.get("MANAGEABLE_IMPLEMENTATION"); 086 /** SEARCHABLE */ 087 public static final String ANDROMDA_MANAGEABLE_ATTRIBUTE_SEARCHABLE = PROFILE.get("ATTRIBUTE_SEARCHABLE"); 088 /** EDITABLE */ 089 public static final String ANDROMDA_MANAGEABLE_ATTRIBUTE_IGNORE = PROFILE.get("ATTRIBUTE_IGNORE"); 090 /** DISPLAY */ 091 public static final String ANDROMDA_MANAGEABLE_ATTRIBUTE_DISPLAY = PROFILE.get("ATTRIBUTE_DISPLAY"); 092 093 /* ----------------- Data Types -------------------- */ 094 /** CHARACTER_TYPE */ 095 public static final String CHARACTER_TYPE_NAME = PROFILE.get("CHARACTER_TYPE"); 096 /** BYTE_TYPE */ 097 public static final String BYTE_TYPE_NAME = PROFILE.get("BYTE_TYPE"); 098 /** SHORT_TYPE */ 099 public static final String SHORT_TYPE_NAME = PROFILE.get("SHORT_TYPE"); 100 /** INTEGER_TYPE */ 101 public static final String INTEGER_TYPE_NAME = PROFILE.get("INTEGER_TYPE"); 102 /** LONG_TYPE */ 103 public static final String LONG_TYPE_NAME = PROFILE.get("LONG_TYPE"); 104 /** FLOAT_TYPE */ 105 public static final String FLOAT_TYPE_NAME = PROFILE.get("FLOAT_TYPE"); 106 /** DOUBLE_TYPE */ 107 public static final String DOUBLE_TYPE_NAME = PROFILE.get("DOUBLE_TYPE"); 108 /** URL_TYPE */ 109 public static final String URL_TYPE_NAME = PROFILE.get("URL_TYPE"); 110 /** TIME_TYPE */ 111 public static final String TIME_TYPE_NAME = PROFILE.get("TIME_TYPE"); 112 113 /* ----------------- Default Values ----------------- */ 114 /** hidden */ 115 public static final String TAGGEDVALUE_INPUT_TYPE_HIDDEN = "hidden"; 116 /** text */ 117 public static final String TAGGEDVALUE_INPUT_TYPE_TEXT = "text"; 118 /** false */ 119 public static final boolean TAGGEDVALUE_MANAGEABLE_IMPLEMENTATION_DEFAULT_VALUE = false; 120 /** true */ 121 public static final boolean TAGGEDVALUE_TABLE_SORTABLE_DEFAULT_VALUE = true; 122 /** true */ 123 public static final boolean TAGGEDVALUE_TABLE_EXPORTABLE_DEFAULT_VALUE = true; 124 /** 15 */ 125 public static final int TAGGEDVALUE_TABLE_MAXROWS_DEFAULT_COUNT = 15; 126}