|
Lines 1-6
Link Here
|
| 1 |
/** |
1 |
/** |
| 2 |
************************************************************************* |
2 |
************************************************************************* |
| 3 |
* Copyright (c) 2005, 2007 Actuate Corporation. |
3 |
* Copyright (c) 2005, 2009 Actuate Corporation. |
| 4 |
* All rights reserved. This program and the accompanying materials |
4 |
* All rights reserved. This program and the accompanying materials |
| 5 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 6 |
* which accompanies this distribution, and is available at |
6 |
* which accompanies this distribution, and is available at |
|
Lines 19-25
Link Here
|
| 19 |
import java.util.Collections; |
19 |
import java.util.Collections; |
| 20 |
import java.util.List; |
20 |
import java.util.List; |
| 21 |
|
21 |
|
| 22 |
import org.eclipse.emf.common.util.AbstractEnumerator; |
22 |
import org.eclipse.emf.common.util.Enumerator; |
| 23 |
|
23 |
|
| 24 |
/** |
24 |
/** |
| 25 |
* <!-- begin-user-doc --> |
25 |
* <!-- begin-user-doc --> |
|
Lines 30-157
Link Here
|
| 30 |
* The style of UI control for prompting user to input a value. |
30 |
* The style of UI control for prompting user to input a value. |
| 31 |
* <!-- end-model-doc --> |
31 |
* <!-- end-model-doc --> |
| 32 |
* @see org.eclipse.datatools.connectivity.oda.design.DesignPackage#getInputPromptControlStyle() |
32 |
* @see org.eclipse.datatools.connectivity.oda.design.DesignPackage#getInputPromptControlStyle() |
| 33 |
* @model |
33 |
* @model extendedMetaData="name='InputPromptControlStyle'" |
| 34 |
* @generated |
34 |
* @generated |
| 35 |
*/ |
35 |
*/ |
| 36 |
public final class InputPromptControlStyle extends AbstractEnumerator |
36 |
public enum InputPromptControlStyle implements Enumerator { |
| 37 |
{ |
|
|
| 38 |
/** |
37 |
/** |
|
|
38 |
* The '<em><b>Text Field</b></em>' literal object. |
| 39 |
* <!-- begin-user-doc --> |
39 |
* <!-- begin-user-doc --> |
| 40 |
* <!-- end-user-doc --> |
40 |
* <!-- end-user-doc --> |
|
|
41 |
* @see #TEXT_FIELD |
| 41 |
* @generated |
42 |
* @generated |
|
|
43 |
* @ordered |
| 42 |
*/ |
44 |
*/ |
| 43 |
public static final String copyright = "Copyright (c) 2005, 2007 Actuate Corporation"; //$NON-NLS-1$ |
45 |
TEXT_FIELD_LITERAL(0, "TextField", "TextField"), //$NON-NLS-1$ //$NON-NLS-2$ |
| 44 |
|
|
|
| 45 |
/** |
46 |
/** |
| 46 |
* The '<em><b>Text Field</b></em>' literal value. |
47 |
* The '<em><b>Selectable List</b></em>' literal object. |
| 47 |
* <!-- begin-user-doc --> |
48 |
* <!-- begin-user-doc --> |
| 48 |
* <!-- end-user-doc --> |
49 |
* <!-- end-user-doc --> |
| 49 |
* @see #TEXT_FIELD_LITERAL |
50 |
* @see #SELECTABLE_LIST |
| 50 |
* @model name="TextField" |
|
|
| 51 |
* @generated |
51 |
* @generated |
| 52 |
* @ordered |
52 |
* @ordered |
| 53 |
*/ |
53 |
*/ |
| 54 |
public static final int TEXT_FIELD = 0; |
54 |
SELECTABLE_LIST_LITERAL(1, "SelectableList", "SelectableList"), //$NON-NLS-1$ //$NON-NLS-2$ |
| 55 |
|
|
|
| 56 |
/** |
55 |
/** |
| 57 |
* The '<em><b>Selectable List</b></em>' literal value. |
56 |
* The '<em><b>Selectable List With Text Field</b></em>' literal object. |
| 58 |
* <!-- begin-user-doc --> |
57 |
* <!-- begin-user-doc --> |
| 59 |
* <!-- end-user-doc --> |
58 |
* <!-- end-user-doc --> |
| 60 |
* @see #SELECTABLE_LIST_LITERAL |
59 |
* @see #SELECTABLE_LIST_WITH_TEXT_FIELD |
| 61 |
* @model name="SelectableList" |
|
|
| 62 |
* @generated |
60 |
* @generated |
| 63 |
* @ordered |
61 |
* @ordered |
| 64 |
*/ |
62 |
*/ |
| 65 |
public static final int SELECTABLE_LIST = 1; |
63 |
SELECTABLE_LIST_WITH_TEXT_FIELD_LITERAL(2, "SelectableListWithTextField", //$NON-NLS-1$ |
| 66 |
|
64 |
"SelectableListWithTextField"), //$NON-NLS-1$ |
| 67 |
/** |
65 |
/** |
| 68 |
* The '<em><b>Selectable List With Text Field</b></em>' literal value. |
66 |
* The '<em><b>Check Box</b></em>' literal object. |
| 69 |
* <!-- begin-user-doc --> |
67 |
* <!-- begin-user-doc --> |
| 70 |
* <!-- end-user-doc --> |
68 |
* <!-- end-user-doc --> |
| 71 |
* @see #SELECTABLE_LIST_WITH_TEXT_FIELD_LITERAL |
69 |
* @see #CHECK_BOX |
| 72 |
* @model name="SelectableListWithTextField" |
|
|
| 73 |
* @generated |
70 |
* @generated |
| 74 |
* @ordered |
71 |
* @ordered |
| 75 |
*/ |
72 |
*/ |
| 76 |
public static final int SELECTABLE_LIST_WITH_TEXT_FIELD = 2; |
73 |
CHECK_BOX_LITERAL(3, "CheckBox", "CheckBox"), //$NON-NLS-1$ //$NON-NLS-2$ |
| 77 |
|
|
|
| 78 |
/** |
74 |
/** |
| 79 |
* The '<em><b>Check Box</b></em>' literal value. |
75 |
* The '<em><b>Radio Button</b></em>' literal object. |
| 80 |
* <!-- begin-user-doc --> |
76 |
* <!-- begin-user-doc --> |
| 81 |
* <!-- end-user-doc --> |
77 |
* <!-- end-user-doc --> |
| 82 |
* @see #CHECK_BOX_LITERAL |
78 |
* @see #RADIO_BUTTON |
| 83 |
* @model name="CheckBox" |
|
|
| 84 |
* @generated |
79 |
* @generated |
| 85 |
* @ordered |
80 |
* @ordered |
| 86 |
*/ |
81 |
*/ |
| 87 |
public static final int CHECK_BOX = 3; |
82 |
RADIO_BUTTON_LITERAL(4, "RadioButton", "RadioButton"); //$NON-NLS-1$ //$NON-NLS-2$ |
| 88 |
|
|
|
| 89 |
/** |
83 |
/** |
| 90 |
* The '<em><b>Radio Button</b></em>' literal value. |
|
|
| 91 |
* <!-- begin-user-doc --> |
84 |
* <!-- begin-user-doc --> |
| 92 |
* <!-- end-user-doc --> |
85 |
* <!-- end-user-doc --> |
| 93 |
* @see #RADIO_BUTTON_LITERAL |
|
|
| 94 |
* @model name="RadioButton" |
| 95 |
* @generated |
86 |
* @generated |
| 96 |
* @ordered |
|
|
| 97 |
*/ |
87 |
*/ |
| 98 |
public static final int RADIO_BUTTON = 4; |
88 |
public static final String copyright = "Copyright (c) 2005, 2009 Actuate Corporation"; //$NON-NLS-1$ |
| 99 |
|
89 |
|
| 100 |
/** |
90 |
/** |
| 101 |
* The '<em><b>Text Field</b></em>' literal object. |
91 |
* The '<em><b>Text Field</b></em>' literal value. |
| 102 |
* <!-- begin-user-doc --> |
92 |
* <!-- begin-user-doc --> |
| 103 |
* <!-- end-user-doc --> |
93 |
* <!-- end-user-doc --> |
| 104 |
* @see #TEXT_FIELD |
94 |
* @see #TEXT_FIELD_LITERAL |
|
|
95 |
* @model name="TextField" |
| 105 |
* @generated |
96 |
* @generated |
| 106 |
* @ordered |
97 |
* @ordered |
| 107 |
*/ |
98 |
*/ |
| 108 |
public static final InputPromptControlStyle TEXT_FIELD_LITERAL = new InputPromptControlStyle( |
99 |
public static final int TEXT_FIELD = 0; |
| 109 |
TEXT_FIELD, "TextField", "TextField" ); //$NON-NLS-1$ //$NON-NLS-2$ |
|
|
| 110 |
|
100 |
|
| 111 |
/** |
101 |
/** |
| 112 |
* The '<em><b>Selectable List</b></em>' literal object. |
102 |
* The '<em><b>Selectable List</b></em>' literal value. |
| 113 |
* <!-- begin-user-doc --> |
103 |
* <!-- begin-user-doc --> |
| 114 |
* <!-- end-user-doc --> |
104 |
* <!-- end-user-doc --> |
| 115 |
* @see #SELECTABLE_LIST |
105 |
* @see #SELECTABLE_LIST_LITERAL |
|
|
106 |
* @model name="SelectableList" |
| 116 |
* @generated |
107 |
* @generated |
| 117 |
* @ordered |
108 |
* @ordered |
| 118 |
*/ |
109 |
*/ |
| 119 |
public static final InputPromptControlStyle SELECTABLE_LIST_LITERAL = new InputPromptControlStyle( |
110 |
public static final int SELECTABLE_LIST = 1; |
| 120 |
SELECTABLE_LIST, "SelectableList", "SelectableList" ); //$NON-NLS-1$ //$NON-NLS-2$ |
|
|
| 121 |
|
111 |
|
| 122 |
/** |
112 |
/** |
| 123 |
* The '<em><b>Selectable List With Text Field</b></em>' literal object. |
113 |
* The '<em><b>Selectable List With Text Field</b></em>' literal value. |
| 124 |
* <!-- begin-user-doc --> |
114 |
* <!-- begin-user-doc --> |
| 125 |
* <!-- end-user-doc --> |
115 |
* <!-- end-user-doc --> |
| 126 |
* @see #SELECTABLE_LIST_WITH_TEXT_FIELD |
116 |
* @see #SELECTABLE_LIST_WITH_TEXT_FIELD_LITERAL |
|
|
117 |
* @model name="SelectableListWithTextField" |
| 127 |
* @generated |
118 |
* @generated |
| 128 |
* @ordered |
119 |
* @ordered |
| 129 |
*/ |
120 |
*/ |
| 130 |
public static final InputPromptControlStyle SELECTABLE_LIST_WITH_TEXT_FIELD_LITERAL = new InputPromptControlStyle( |
121 |
public static final int SELECTABLE_LIST_WITH_TEXT_FIELD = 2; |
| 131 |
SELECTABLE_LIST_WITH_TEXT_FIELD, |
|
|
| 132 |
"SelectableListWithTextField", "SelectableListWithTextField" ); //$NON-NLS-1$ //$NON-NLS-2$ |
| 133 |
|
122 |
|
| 134 |
/** |
123 |
/** |
| 135 |
* The '<em><b>Check Box</b></em>' literal object. |
124 |
* The '<em><b>Check Box</b></em>' literal value. |
| 136 |
* <!-- begin-user-doc --> |
125 |
* <!-- begin-user-doc --> |
| 137 |
* <!-- end-user-doc --> |
126 |
* <!-- end-user-doc --> |
| 138 |
* @see #CHECK_BOX |
127 |
* @see #CHECK_BOX_LITERAL |
|
|
128 |
* @model name="CheckBox" |
| 139 |
* @generated |
129 |
* @generated |
| 140 |
* @ordered |
130 |
* @ordered |
| 141 |
*/ |
131 |
*/ |
| 142 |
public static final InputPromptControlStyle CHECK_BOX_LITERAL = new InputPromptControlStyle( |
132 |
public static final int CHECK_BOX = 3; |
| 143 |
CHECK_BOX, "CheckBox", "CheckBox" ); //$NON-NLS-1$ //$NON-NLS-2$ |
|
|
| 144 |
|
133 |
|
| 145 |
/** |
134 |
/** |
| 146 |
* The '<em><b>Radio Button</b></em>' literal object. |
135 |
* The '<em><b>Radio Button</b></em>' literal value. |
| 147 |
* <!-- begin-user-doc --> |
136 |
* <!-- begin-user-doc --> |
| 148 |
* <!-- end-user-doc --> |
137 |
* <!-- end-user-doc --> |
| 149 |
* @see #RADIO_BUTTON |
138 |
* @see #RADIO_BUTTON_LITERAL |
|
|
139 |
* @model name="RadioButton" |
| 150 |
* @generated |
140 |
* @generated |
| 151 |
* @ordered |
141 |
* @ordered |
| 152 |
*/ |
142 |
*/ |
| 153 |
public static final InputPromptControlStyle RADIO_BUTTON_LITERAL = new InputPromptControlStyle( |
143 |
public static final int RADIO_BUTTON = 4; |
| 154 |
RADIO_BUTTON, "RadioButton", "RadioButton" ); //$NON-NLS-1$ //$NON-NLS-2$ |
|
|
| 155 |
|
144 |
|
| 156 |
/** |
145 |
/** |
| 157 |
* An array of all the '<em><b>Input Prompt Control Style</b></em>' enumerators. |
146 |
* An array of all the '<em><b>Input Prompt Control Style</b></em>' enumerators. |
|
Lines 170-177
Link Here
|
| 170 |
* <!-- end-user-doc --> |
159 |
* <!-- end-user-doc --> |
| 171 |
* @generated |
160 |
* @generated |
| 172 |
*/ |
161 |
*/ |
| 173 |
public static final List VALUES = Collections.unmodifiableList( Arrays |
162 |
public static final List<InputPromptControlStyle> VALUES = Collections |
| 174 |
.asList( VALUES_ARRAY ) ); |
163 |
.unmodifiableList( Arrays.asList( VALUES_ARRAY ) ); |
| 175 |
|
164 |
|
| 176 |
/** |
165 |
/** |
| 177 |
* Returns the '<em><b>Input Prompt Control Style</b></em>' literal with the specified literal value. |
166 |
* Returns the '<em><b>Input Prompt Control Style</b></em>' literal with the specified literal value. |
|
Lines 236-241
Link Here
|
| 236 |
} |
225 |
} |
| 237 |
|
226 |
|
| 238 |
/** |
227 |
/** |
|
|
228 |
* <!-- begin-user-doc --> |
| 229 |
* <!-- end-user-doc --> |
| 230 |
* @generated |
| 231 |
*/ |
| 232 |
private final int value; |
| 233 |
|
| 234 |
/** |
| 235 |
* <!-- begin-user-doc --> |
| 236 |
* <!-- end-user-doc --> |
| 237 |
* @generated |
| 238 |
*/ |
| 239 |
private final String name; |
| 240 |
|
| 241 |
/** |
| 242 |
* <!-- begin-user-doc --> |
| 243 |
* <!-- end-user-doc --> |
| 244 |
* @generated |
| 245 |
*/ |
| 246 |
private final String literal; |
| 247 |
|
| 248 |
/** |
| 239 |
* Only this class can construct instances. |
249 |
* Only this class can construct instances. |
| 240 |
* <!-- begin-user-doc --> |
250 |
* <!-- begin-user-doc --> |
| 241 |
* <!-- end-user-doc --> |
251 |
* <!-- end-user-doc --> |
|
Lines 243-249
Link Here
|
| 243 |
*/ |
253 |
*/ |
| 244 |
private InputPromptControlStyle( int value, String name, String literal ) |
254 |
private InputPromptControlStyle( int value, String name, String literal ) |
| 245 |
{ |
255 |
{ |
| 246 |
super( value, name, literal ); |
256 |
this.value = value; |
|
|
257 |
this.name = name; |
| 258 |
this.literal = literal; |
| 259 |
} |
| 260 |
|
| 261 |
/** |
| 262 |
* <!-- begin-user-doc --> |
| 263 |
* <!-- end-user-doc --> |
| 264 |
* @generated |
| 265 |
*/ |
| 266 |
public int getValue() |
| 267 |
{ |
| 268 |
return value; |
| 247 |
} |
269 |
} |
| 248 |
|
270 |
|
| 249 |
} //InputPromptControlStyle |
271 |
/** |
|
|
272 |
* <!-- begin-user-doc --> |
| 273 |
* <!-- end-user-doc --> |
| 274 |
* @generated |
| 275 |
*/ |
| 276 |
public String getName() |
| 277 |
{ |
| 278 |
return name; |
| 279 |
} |
| 280 |
|
| 281 |
/** |
| 282 |
* <!-- begin-user-doc --> |
| 283 |
* <!-- end-user-doc --> |
| 284 |
* @generated |
| 285 |
*/ |
| 286 |
public String getLiteral() |
| 287 |
{ |
| 288 |
return literal; |
| 289 |
} |
| 290 |
|
| 291 |
/** |
| 292 |
* Returns the literal value of the enumerator, which is its string representation. |
| 293 |
* <!-- begin-user-doc --> |
| 294 |
* <!-- end-user-doc --> |
| 295 |
* @generated |
| 296 |
*/ |
| 297 |
@Override |
| 298 |
public String toString() |
| 299 |
{ |
| 300 |
return literal; |
| 301 |
} |
| 302 |
} |