001package org.andromda.cartridges.jsf;
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
023    /* ----------------- Tagged Values -------------------- */
024    /** ACTION_FORM_SCOPE */
025    public static final String TAGGEDVALUE_ACTION_FORM_SCOPE = PROFILE.get("ACTION_FORM_SCOPE");
026    /** ACTION_FORM_KEY */
027    public static final String TAGGEDVALUE_ACTION_FORM_KEY = PROFILE.get("ACTION_FORM_KEY");
028    /** ACTION_TABLELINK */
029    public static final String TAGGEDVALUE_ACTION_TABLELINK = PROFILE.get("ACTION_TABLELINK");
030    /** ACTION_TYPE */
031    public static final String TAGGEDVALUE_ACTION_TYPE = PROFILE.get("ACTION_TYPE");
032    /** ACTION_RESETTABLE */
033    public static final String TAGGEDVALUE_ACTION_RESETTABLE = PROFILE.get("ACTION_RESETTABLE");
034    /** INPUT_TYPE */
035    public static final String TAGGEDVALUE_INPUT_TYPE = PROFILE.get("INPUT_TYPE");
036    /** INPUT_TABLELINK */
037    public static final String TAGGEDVALUE_INPUT_TABLELINK = PROFILE.get("INPUT_TABLELINK");
038    /** EXCEPTION_TYPE */
039    public static final String TAGGEDVALUE_EXCEPTION_TYPE = PROFILE.get("EXCEPTION_TYPE");
040    /** ACTION_REDIRECT */
041    public static final String TAGGEDVALUE_ACTION_REDIRECT = PROFILE.get("ACTION_REDIRECT");
042    /** INPUT_REQUIRED */
043    public static final String TAGGEDVALUE_INPUT_REQUIRED = PROFILE.get("INPUT_REQUIRED");
044    /** INPUT_READONLY */
045    public static final String TAGGEDVALUE_INPUT_READONLY = PROFILE.get("INPUT_READONLY");
046    /** INPUT_VALIDWHEN */
047    public static final String TAGGEDVALUE_INPUT_VALIDWHEN = PROFILE.get("INPUT_VALIDWHEN");
048    /** INPUT_EQUAL */
049    public static final String TAGGEDVALUE_INPUT_EQUAL = PROFILE.get("INPUT_EQUAL");
050    /** INPUT_TABLE_IDENTIFIER_COLUMNS */
051    public static final String TAGGEDVALUE_INPUT_TABLE_IDENTIFIER_COLUMNS
052        = PROFILE.get("INPUT_TABLE_IDENTIFIER_COLUMNS");
053    /** INPUT_VALIDATORS */
054    public static final String TAGGEDVALUE_INPUT_VALIDATORS = PROFILE.get("INPUT_VALIDATORS");
055    /** INPUT_FORMAT */
056    public static final String TAGGEDVALUE_INPUT_FORMAT = PROFILE.get("INPUT_FORMAT");
057    /** INPUT_RESET */
058    public static final String TAGGEDVALUE_INPUT_RESET = PROFILE.get("INPUT_RESET");
059    /** TABLE_PAGEABLE */
060    public static final String TAGGEDVALUE_TABLE_PAGEABLE = PROFILE.get("TABLE_PAGEABLE");
061    /** VIEW_TYPE */
062    public static final String TAGGEDVALUE_VIEW_TYPE = PROFILE.get("VIEW_TYPE");
063    /** ACTION_FORM_RESET */
064    public static final String TAGGEDVALUE_ACTION_FORM_RESET = PROFILE.get("ACTION_FORM_RESET");
065    /** ACTION_SUCCESS_MESSAGE */
066    public static final String TAGGEDVALUE_ACTION_SUCCESS_MESSAGE = PROFILE.get("ACTION_SUCCESS_MESSAGE");
067    /** ACTION_WARNING_MESSAGE */
068    public static final String TAGGEDVALUE_ACTION_WARNING_MESSAGE = PROFILE.get("ACTION_WARNING_MESSAGE");
069    /** INPUT_COLUMN_COUNT */
070    public static final String TAGGEDVALUE_INPUT_COLUMN_COUNT = PROFILE.get("INPUT_COLUMN_COUNT");
071    /** INPUT_ROW_COUNT */
072    public static final String TAGGEDVALUE_INPUT_ROW_COUNT = PROFILE.get("INPUT_ROW_COUNT");
073    /** TABLE_COLUMNS */
074    public static final String TAGGEDVALUE_TABLE_COLUMNS = PROFILE.get("TABLE_COLUMNS");
075    /** TABLE_MAXROWS */
076    public static final String TAGGEDVALUE_TABLE_MAXROWS = PROFILE.get("TABLE_MAXROWS");
077    /** TABLE_EXPORT */
078    public static final String TAGGEDVALUE_TABLE_EXPORT = PROFILE.get("TABLE_EXPORT");
079    /** TABLE_SORTABLE */
080    public static final String TAGGEDVALUE_TABLE_SORTABLE = PROFILE.get("TABLE_SORTABLE");
081
082    /* ----------------- Data Types -------------------- */
083    /** CHARACTER_TYPE */
084    public static final String CHARACTER_TYPE_NAME = PROFILE.get("CHARACTER_TYPE");
085    /** BYTE_TYPE */
086    public static final String BYTE_TYPE_NAME = PROFILE.get("BYTE_TYPE");
087    /** SHORT_TYPE */
088    public static final String SHORT_TYPE_NAME = PROFILE.get("SHORT_TYPE");
089    /** INTEGER_TYPE */
090    public static final String INTEGER_TYPE_NAME = PROFILE.get("INTEGER_TYPE");
091    /** LONG_TYPE */
092    public static final String LONG_TYPE_NAME = PROFILE.get("LONG_TYPE");
093    /** FLOAT_TYPE */
094    public static final String FLOAT_TYPE_NAME = PROFILE.get("FLOAT_TYPE");
095    /** DOUBLE_TYPE */
096    public static final String DOUBLE_TYPE_NAME = PROFILE.get("DOUBLE_TYPE");
097    /** URL_TYPE */
098    public static final String URL_TYPE_NAME = PROFILE.get("URL_TYPE");
099    /** TIME_TYPE */
100    public static final String TIME_TYPE_NAME = PROFILE.get("TIME_TYPE");
101
102    /* ----------------- Default Values ----------------- */
103    /** hidden */
104    public static final String TAGGEDVALUE_INPUT_TYPE_HIDDEN = "hidden";
105    /** text */
106    public static final String TAGGEDVALUE_INPUT_TYPE_TEXT = "text";
107    /** true */
108    public static final boolean TAGGEDVALUE_TABLE_SORTABLE_DEFAULT_VALUE = true;
109    /** true */
110    public static final boolean TAGGEDVALUE_TABLE_EXPORTABLE_DEFAULT_VALUE = true;
111    /** 15 */
112    public static final int TAGGEDVALUE_TABLE_MAXROWS_DEFAULT_COUNT = 15;
113}