KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > dods > editor > Doml > DirtyDO


1 /**
2  * <copyright>
3  * </copyright>
4  *
5  * $Id$
6  */

7 package org.enhydra.dods.editor.Doml;
8
9 import java.util.Arrays JavaDoc;
10 import java.util.Collections JavaDoc;
11 import java.util.List JavaDoc;
12
13 import org.eclipse.emf.common.util.AbstractEnumerator;
14
15 /**
16  * <!-- begin-user-doc -->
17  * A representation of the literals of the enumeration '<em><b>Dirty DO</b></em>',
18  * and utility methods for working with them.
19  * <!-- end-user-doc -->
20  * @see org.enhydra.dods.editor.Doml.DomlPackage#getDirtyDO()
21  * @model
22  * @generated
23  */

24 public final class DirtyDO extends AbstractEnumerator {
25     /**
26      * The '<em><b>Compatible</b></em>' literal value.
27      * <!-- begin-user-doc -->
28      * <!-- end-user-doc -->
29      * @see #COMPATIBLE_LITERAL
30      * @model name="Compatible"
31      * @generated
32      * @ordered
33      */

34     public static final int COMPATIBLE = 0;
35
36     /**
37      * The '<em><b>Deprecate</b></em>' literal value.
38      * <!-- begin-user-doc -->
39      * <!-- end-user-doc -->
40      * @see #DEPRECATE_LITERAL
41      * @model name="Deprecate"
42      * @generated
43      * @ordered
44      */

45     public static final int DEPRECATE = 1;
46
47     /**
48      * The '<em><b>Omit</b></em>' literal value.
49      * <!-- begin-user-doc -->
50      * <!-- end-user-doc -->
51      * @see #OMIT_LITERAL
52      * @model name="Omit"
53      * @generated
54      * @ordered
55      */

56     public static final int OMIT = 2;
57
58     /**
59      * The '<em><b>Compatible</b></em>' literal object.
60      * <!-- begin-user-doc -->
61      * <p>
62      * If the meaning of '<em><b>Compatible</b></em>' literal object isn't clear,
63      * there really should be more of a description here...
64      * </p>
65      * <!-- end-user-doc -->
66      * @see #COMPATIBLE
67      * @generated
68      * @ordered
69      */

70     public static final DirtyDO COMPATIBLE_LITERAL = new DirtyDO(COMPATIBLE, "Compatible");
71
72     /**
73      * The '<em><b>Deprecate</b></em>' literal object.
74      * <!-- begin-user-doc -->
75      * <p>
76      * If the meaning of '<em><b>Deprecate</b></em>' literal object isn't clear,
77      * there really should be more of a description here...
78      * </p>
79      * <!-- end-user-doc -->
80      * @see #DEPRECATE
81      * @generated
82      * @ordered
83      */

84     public static final DirtyDO DEPRECATE_LITERAL = new DirtyDO(DEPRECATE, "Deprecate");
85
86     /**
87      * The '<em><b>Omit</b></em>' literal object.
88      * <!-- begin-user-doc -->
89      * <p>
90      * If the meaning of '<em><b>Omit</b></em>' literal object isn't clear,
91      * there really should be more of a description here...
92      * </p>
93      * <!-- end-user-doc -->
94      * @see #OMIT
95      * @generated
96      * @ordered
97      */

98     public static final DirtyDO OMIT_LITERAL = new DirtyDO(OMIT, "Omit");
99
100     /**
101      * An array of all the '<em><b>Dirty DO</b></em>' enumerators.
102      * <!-- begin-user-doc -->
103      * <!-- end-user-doc -->
104      * @generated
105      */

106     private static final DirtyDO[] VALUES_ARRAY =
107         new DirtyDO[] {
108             COMPATIBLE_LITERAL,
109             DEPRECATE_LITERAL,
110             OMIT_LITERAL,
111         };
112
113     /**
114      * A public read-only list of all the '<em><b>Dirty DO</b></em>' enumerators.
115      * <!-- begin-user-doc -->
116      * <!-- end-user-doc -->
117      * @generated
118      */

119     public static final List JavaDoc VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
120
121     /**
122      * Returns the '<em><b>Dirty DO</b></em>' literal with the specified name.
123      * <!-- begin-user-doc -->
124      * <!-- end-user-doc -->
125      * @generated
126      */

127     public static DirtyDO get(String JavaDoc name) {
128         for (int i = 0; i < VALUES_ARRAY.length; ++i) {
129             DirtyDO result = VALUES_ARRAY[i];
130             if (result.toString().equals(name)) {
131                 return result;
132             }
133         }
134         return null;
135     }
136
137     /**
138      * Returns the '<em><b>Dirty DO</b></em>' literal with the specified value.
139      * <!-- begin-user-doc -->
140      * <!-- end-user-doc -->
141      * @generated
142      */

143     public static DirtyDO get(int value) {
144         switch (value) {
145             case COMPATIBLE: return COMPATIBLE_LITERAL;
146             case DEPRECATE: return DEPRECATE_LITERAL;
147             case OMIT: return OMIT_LITERAL;
148         }
149         return null;
150     }
151
152     /**
153      * Only this class can construct instances.
154      * <!-- begin-user-doc -->
155      * <!-- end-user-doc -->
156      * @generated
157      */

158     private DirtyDO(int value, String JavaDoc name) {
159         super(value, name);
160     }
161
162 } //DirtyDO
163
Popular Tags