View Javadoc
1   package org.andromda.cartridges.jsf;
2   
3   import org.andromda.core.profile.Profile;
4   
5   /**
6    * Contains the AndroMDA JSF profile.
7    *
8    * @author Chad Brandon
9    */
10  public class JSFProfile
11  {
12      /**
13       * The Profile instance from which we retrieve the mapped profile names.
14       */
15      private static final Profile PROFILE = Profile.instance();
16  
17      /* ----------------- Stereotypes -------------------- */
18      /** FRONT_END_REGISTRATION */
19      public static final String STEREOTYPE_FRONT_END_REGISTRATION = PROFILE.get("FRONT_END_REGISTRATION");
20      /** FRONT_END_NAVIGATION */
21      public static final String STEREOTYPE_FRONT_END_NAVIGATION = PROFILE.get("FRONT_END_NAVIGATION");
22  
23      /* ----------------- Tagged Values -------------------- */
24      /** ACTION_FORM_SCOPE */
25      public static final String TAGGEDVALUE_ACTION_FORM_SCOPE = PROFILE.get("ACTION_FORM_SCOPE");
26      /** ACTION_FORM_KEY */
27      public static final String TAGGEDVALUE_ACTION_FORM_KEY = PROFILE.get("ACTION_FORM_KEY");
28      /** ACTION_TABLELINK */
29      public static final String TAGGEDVALUE_ACTION_TABLELINK = PROFILE.get("ACTION_TABLELINK");
30      /** ACTION_TYPE */
31      public static final String TAGGEDVALUE_ACTION_TYPE = PROFILE.get("ACTION_TYPE");
32      /** ACTION_RESETTABLE */
33      public static final String TAGGEDVALUE_ACTION_RESETTABLE = PROFILE.get("ACTION_RESETTABLE");
34      /** INPUT_TYPE */
35      public static final String TAGGEDVALUE_INPUT_TYPE = PROFILE.get("INPUT_TYPE");
36      /** INPUT_TABLELINK */
37      public static final String TAGGEDVALUE_INPUT_TABLELINK = PROFILE.get("INPUT_TABLELINK");
38      /** EXCEPTION_TYPE */
39      public static final String TAGGEDVALUE_EXCEPTION_TYPE = PROFILE.get("EXCEPTION_TYPE");
40      /** ACTION_REDIRECT */
41      public static final String TAGGEDVALUE_ACTION_REDIRECT = PROFILE.get("ACTION_REDIRECT");
42      /** INPUT_REQUIRED */
43      public static final String TAGGEDVALUE_INPUT_REQUIRED = PROFILE.get("INPUT_REQUIRED");
44      /** INPUT_READONLY */
45      public static final String TAGGEDVALUE_INPUT_READONLY = PROFILE.get("INPUT_READONLY");
46      /** INPUT_VALIDWHEN */
47      public static final String TAGGEDVALUE_INPUT_VALIDWHEN = PROFILE.get("INPUT_VALIDWHEN");
48      /** INPUT_EQUAL */
49      public static final String TAGGEDVALUE_INPUT_EQUAL = PROFILE.get("INPUT_EQUAL");
50      /** INPUT_TABLE_IDENTIFIER_COLUMNS */
51      public static final String TAGGEDVALUE_INPUT_TABLE_IDENTIFIER_COLUMNS
52          = PROFILE.get("INPUT_TABLE_IDENTIFIER_COLUMNS");
53      /** INPUT_VALIDATORS */
54      public static final String TAGGEDVALUE_INPUT_VALIDATORS = PROFILE.get("INPUT_VALIDATORS");
55      /** INPUT_FORMAT */
56      public static final String TAGGEDVALUE_INPUT_FORMAT = PROFILE.get("INPUT_FORMAT");
57      /** INPUT_RESET */
58      public static final String TAGGEDVALUE_INPUT_RESET = PROFILE.get("INPUT_RESET");
59      /** TABLE_PAGEABLE */
60      public static final String TAGGEDVALUE_TABLE_PAGEABLE = PROFILE.get("TABLE_PAGEABLE");
61      /** VIEW_TYPE */
62      public static final String TAGGEDVALUE_VIEW_TYPE = PROFILE.get("VIEW_TYPE");
63      /** ACTION_FORM_RESET */
64      public static final String TAGGEDVALUE_ACTION_FORM_RESET = PROFILE.get("ACTION_FORM_RESET");
65      /** ACTION_SUCCESS_MESSAGE */
66      public static final String TAGGEDVALUE_ACTION_SUCCESS_MESSAGE = PROFILE.get("ACTION_SUCCESS_MESSAGE");
67      /** ACTION_WARNING_MESSAGE */
68      public static final String TAGGEDVALUE_ACTION_WARNING_MESSAGE = PROFILE.get("ACTION_WARNING_MESSAGE");
69      /** INPUT_COLUMN_COUNT */
70      public static final String TAGGEDVALUE_INPUT_COLUMN_COUNT = PROFILE.get("INPUT_COLUMN_COUNT");
71      /** INPUT_ROW_COUNT */
72      public static final String TAGGEDVALUE_INPUT_ROW_COUNT = PROFILE.get("INPUT_ROW_COUNT");
73      /** TABLE_COLUMNS */
74      public static final String TAGGEDVALUE_TABLE_COLUMNS = PROFILE.get("TABLE_COLUMNS");
75      /** TABLE_MAXROWS */
76      public static final String TAGGEDVALUE_TABLE_MAXROWS = PROFILE.get("TABLE_MAXROWS");
77      /** TABLE_EXPORT */
78      public static final String TAGGEDVALUE_TABLE_EXPORT = PROFILE.get("TABLE_EXPORT");
79      /** TABLE_SORTABLE */
80      public static final String TAGGEDVALUE_TABLE_SORTABLE = PROFILE.get("TABLE_SORTABLE");
81  
82      /* ----------------- Data Types -------------------- */
83      /** CHARACTER_TYPE */
84      public static final String CHARACTER_TYPE_NAME = PROFILE.get("CHARACTER_TYPE");
85      /** BYTE_TYPE */
86      public static final String BYTE_TYPE_NAME = PROFILE.get("BYTE_TYPE");
87      /** SHORT_TYPE */
88      public static final String SHORT_TYPE_NAME = PROFILE.get("SHORT_TYPE");
89      /** INTEGER_TYPE */
90      public static final String INTEGER_TYPE_NAME = PROFILE.get("INTEGER_TYPE");
91      /** LONG_TYPE */
92      public static final String LONG_TYPE_NAME = PROFILE.get("LONG_TYPE");
93      /** FLOAT_TYPE */
94      public static final String FLOAT_TYPE_NAME = PROFILE.get("FLOAT_TYPE");
95      /** DOUBLE_TYPE */
96      public static final String DOUBLE_TYPE_NAME = PROFILE.get("DOUBLE_TYPE");
97      /** URL_TYPE */
98      public static final String URL_TYPE_NAME = PROFILE.get("URL_TYPE");
99      /** 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 }