View Javadoc
1   package org.andromda.cartridges.jsf2;
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      /** MANAGEABLE_ATTRIBUTE */
23      public static final String STEREOTYPE_MANAGEABLE_ATTRIBUTE = PROFILE.get("MANAGEABLE_ATTRIBUTE");
24  
25      /* ----------------- Tagged Values -------------------- */
26      /** ACTION_FORM_SCOPE */
27      public static final String TAGGEDVALUE_ACTION_FORM_SCOPE = PROFILE.get("ACTION_FORM_SCOPE");
28      /** ACTION_FORM_KEY */
29      public static final String TAGGEDVALUE_ACTION_FORM_KEY = PROFILE.get("ACTION_FORM_KEY");
30      /** ACTION_TABLELINK */
31      public static final String TAGGEDVALUE_ACTION_TABLELINK = PROFILE.get("ACTION_TABLELINK");
32      /** ACTION_TYPE */
33      public static final String TAGGEDVALUE_ACTION_TYPE = PROFILE.get("ACTION_TYPE");
34      /** ACTION_RESETTABLE */
35      public static final String TAGGEDVALUE_ACTION_RESETTABLE = PROFILE.get("ACTION_RESETTABLE");
36      /** INPUT_TYPE */
37      public static final String TAGGEDVALUE_INPUT_TYPE = PROFILE.get("INPUT_TYPE");
38      /** INPUT_TABLELINK */
39      public static final String TAGGEDVALUE_INPUT_TABLELINK = PROFILE.get("INPUT_TABLELINK");
40      /** EXCEPTION_TYPE */
41      public static final String TAGGEDVALUE_EXCEPTION_TYPE = PROFILE.get("EXCEPTION_TYPE");
42      /** ACTION_REDIRECT */
43      public static final String TAGGEDVALUE_ACTION_REDIRECT = PROFILE.get("ACTION_REDIRECT");
44      /** INPUT_REQUIRED */
45      public static final String TAGGEDVALUE_INPUT_REQUIRED = PROFILE.get("INPUT_REQUIRED");
46      /** INPUT_READONLY */
47      public static final String TAGGEDVALUE_INPUT_READONLY = PROFILE.get("INPUT_READONLY");
48      /** INPUT_VALIDWHEN */
49      public static final String TAGGEDVALUE_INPUT_VALIDWHEN = PROFILE.get("INPUT_VALIDWHEN");
50      /** INPUT_EQUAL */
51      public static final String TAGGEDVALUE_INPUT_EQUAL = PROFILE.get("INPUT_EQUAL");
52      /** INPUT_TABLE_IDENTIFIER_COLUMNS */
53      public static final String TAGGEDVALUE_INPUT_TABLE_IDENTIFIER_COLUMNS
54          = PROFILE.get("INPUT_TABLE_IDENTIFIER_COLUMNS");
55      /** INPUT_VALIDATORS */
56      public static final String TAGGEDVALUE_INPUT_VALIDATORS = PROFILE.get("INPUT_VALIDATORS");
57      /** INPUT_FORMAT */
58      public static final String TAGGEDVALUE_INPUT_FORMAT = PROFILE.get("INPUT_FORMAT");
59      /** INPUT_RESET */
60      public static final String TAGGEDVALUE_INPUT_RESET = PROFILE.get("INPUT_RESET");
61      /** TABLE_PAGEABLE */
62      public static final String TAGGEDVALUE_TABLE_PAGEABLE = PROFILE.get("TABLE_PAGEABLE");
63      /** VIEW_TYPE */
64      public static final String TAGGEDVALUE_VIEW_TYPE = PROFILE.get("VIEW_TYPE");
65      /** ACTION_FORM_RESET */
66      public static final String TAGGEDVALUE_ACTION_FORM_RESET = PROFILE.get("ACTION_FORM_RESET");
67      /** ACTION_SUCCESS_MESSAGE */
68      public static final String TAGGEDVALUE_ACTION_SUCCESS_MESSAGE = PROFILE.get("ACTION_SUCCESS_MESSAGE");
69      /** ACTION_WARNING_MESSAGE */
70      public static final String TAGGEDVALUE_ACTION_WARNING_MESSAGE = PROFILE.get("ACTION_WARNING_MESSAGE");
71      /** INPUT_COLUMN_COUNT */
72      public static final String TAGGEDVALUE_INPUT_COLUMN_COUNT = PROFILE.get("INPUT_COLUMN_COUNT");
73      /** INPUT_ROW_COUNT */
74      public static final String TAGGEDVALUE_INPUT_ROW_COUNT = PROFILE.get("INPUT_ROW_COUNT");
75      /** TABLE_COLUMNS */
76      public static final String TAGGEDVALUE_TABLE_COLUMNS = PROFILE.get("TABLE_COLUMNS");
77      /** TABLE_MAXROWS */
78      public static final String TAGGEDVALUE_TABLE_MAXROWS = PROFILE.get("TABLE_MAXROWS");
79      /** TABLE_EXPORT */
80      public static final String TAGGEDVALUE_TABLE_EXPORT = PROFILE.get("TABLE_EXPORT");
81      /** TABLE_SORTABLE */
82      public static final String TAGGEDVALUE_TABLE_SORTABLE = PROFILE.get("TABLE_SORTABLE");
83      
84      /** Implementation */
85      public static final String ANDROMDA_MANAGEABLE_IMPLEMENTATION = PROFILE.get("MANAGEABLE_IMPLEMENTATION");
86      /** SEARCHABLE */
87      public static final String ANDROMDA_MANAGEABLE_ATTRIBUTE_SEARCHABLE = PROFILE.get("ATTRIBUTE_SEARCHABLE");
88      /** EDITABLE */
89      public static final String ANDROMDA_MANAGEABLE_ATTRIBUTE_IGNORE = PROFILE.get("ATTRIBUTE_IGNORE");
90      /** DISPLAY */
91      public static final String ANDROMDA_MANAGEABLE_ATTRIBUTE_DISPLAY = PROFILE.get("ATTRIBUTE_DISPLAY");
92  
93      /* ----------------- Data Types -------------------- */
94      /** CHARACTER_TYPE */
95      public static final String CHARACTER_TYPE_NAME = PROFILE.get("CHARACTER_TYPE");
96      /** BYTE_TYPE */
97      public static final String BYTE_TYPE_NAME = PROFILE.get("BYTE_TYPE");
98      /** SHORT_TYPE */
99      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 }