001: /**
002: * <copyright>
003: * </copyright>
004: *
005: * $Id$
006: */package com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor;
007:
008: import java.util.Arrays;
009: import java.util.Collections;
010: import java.util.List;
011:
012: import org.eclipse.emf.common.util.AbstractEnumerator;
013:
014: /**
015: * <!-- begin-user-doc -->
016: * A representation of the literals of the enumeration '<em><b>Attachment Mode Type</b></em>',
017: * and utility methods for working with them.
018: * <!-- end-user-doc -->
019: * @see com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage#getAttachmentModeType()
020: * @model
021: * @generated
022: */
023: public final class AttachmentModeType extends AbstractEnumerator {
024: /**
025: * <!-- begin-user-doc -->
026: * <!-- end-user-doc -->
027: * @generated
028: */
029: public static final String copyright = "Copyright, Bostech Corp.";
030:
031: /**
032: * The '<em><b>None</b></em>' literal value.
033: * <!-- begin-user-doc -->
034: * <p>
035: * If the meaning of '<em><b>None</b></em>' literal object isn't clear,
036: * there really should be more of a description here...
037: * </p>
038: * <!-- end-user-doc -->
039: * @see #NONE_LITERAL
040: * @model name="none"
041: * @generated
042: * @ordered
043: */
044: public static final int NONE = 0;
045:
046: /**
047: * The '<em><b>Sw A</b></em>' literal value.
048: * <!-- begin-user-doc -->
049: * <p>
050: * If the meaning of '<em><b>Sw A</b></em>' literal object isn't clear,
051: * there really should be more of a description here...
052: * </p>
053: * <!-- end-user-doc -->
054: * @see #SW_A_LITERAL
055: * @model name="SwA"
056: * @generated
057: * @ordered
058: */
059: public static final int SW_A = 1;
060:
061: /**
062: * The '<em><b>MTOM</b></em>' literal value.
063: * <!-- begin-user-doc -->
064: * <p>
065: * If the meaning of '<em><b>MTOM</b></em>' literal object isn't clear,
066: * there really should be more of a description here...
067: * </p>
068: * <!-- end-user-doc -->
069: * @see #MTOM_LITERAL
070: * @model
071: * @generated
072: * @ordered
073: */
074: public static final int MTOM = 2;
075:
076: /**
077: * The '<em><b>None</b></em>' literal object.
078: * <!-- begin-user-doc -->
079: * <!-- end-user-doc -->
080: * @see #NONE
081: * @generated
082: * @ordered
083: */
084: public static final AttachmentModeType NONE_LITERAL = new AttachmentModeType(
085: NONE, "none", "none");
086:
087: /**
088: * The '<em><b>Sw A</b></em>' literal object.
089: * <!-- begin-user-doc -->
090: * <!-- end-user-doc -->
091: * @see #SW_A
092: * @generated
093: * @ordered
094: */
095: public static final AttachmentModeType SW_A_LITERAL = new AttachmentModeType(
096: SW_A, "SwA", "SwA");
097:
098: /**
099: * The '<em><b>MTOM</b></em>' literal object.
100: * <!-- begin-user-doc -->
101: * <!-- end-user-doc -->
102: * @see #MTOM
103: * @generated
104: * @ordered
105: */
106: public static final AttachmentModeType MTOM_LITERAL = new AttachmentModeType(
107: MTOM, "MTOM", "MTOM");
108:
109: /**
110: * An array of all the '<em><b>Attachment Mode Type</b></em>' enumerators.
111: * <!-- begin-user-doc -->
112: * <!-- end-user-doc -->
113: * @generated
114: */
115: private static final AttachmentModeType[] VALUES_ARRAY = new AttachmentModeType[] {
116: NONE_LITERAL, SW_A_LITERAL, MTOM_LITERAL, };
117:
118: /**
119: * A public read-only list of all the '<em><b>Attachment Mode Type</b></em>' enumerators.
120: * <!-- begin-user-doc -->
121: * <!-- end-user-doc -->
122: * @generated
123: */
124: public static final List VALUES = Collections
125: .unmodifiableList(Arrays.asList(VALUES_ARRAY));
126:
127: /**
128: * Returns the '<em><b>Attachment Mode Type</b></em>' literal with the specified literal value.
129: * <!-- begin-user-doc -->
130: * <!-- end-user-doc -->
131: * @generated
132: */
133: public static AttachmentModeType get(String literal) {
134: for (int i = 0; i < VALUES_ARRAY.length; ++i) {
135: AttachmentModeType result = VALUES_ARRAY[i];
136: if (result.toString().equals(literal)) {
137: return result;
138: }
139: }
140: return null;
141: }
142:
143: /**
144: * Returns the '<em><b>Attachment Mode Type</b></em>' literal with the specified name.
145: * <!-- begin-user-doc -->
146: * <!-- end-user-doc -->
147: * @generated
148: */
149: public static AttachmentModeType getByName(String name) {
150: for (int i = 0; i < VALUES_ARRAY.length; ++i) {
151: AttachmentModeType result = VALUES_ARRAY[i];
152: if (result.getName().equals(name)) {
153: return result;
154: }
155: }
156: return null;
157: }
158:
159: /**
160: * Returns the '<em><b>Attachment Mode Type</b></em>' literal with the specified integer value.
161: * <!-- begin-user-doc -->
162: * <!-- end-user-doc -->
163: * @generated
164: */
165: public static AttachmentModeType get(int value) {
166: switch (value) {
167: case NONE:
168: return NONE_LITERAL;
169: case SW_A:
170: return SW_A_LITERAL;
171: case MTOM:
172: return MTOM_LITERAL;
173: }
174: return null;
175: }
176:
177: /**
178: * Only this class can construct instances.
179: * <!-- begin-user-doc -->
180: * <!-- end-user-doc -->
181: * @generated
182: */
183: private AttachmentModeType(int value, String name, String literal) {
184: super (value, name, literal);
185: }
186:
187: } //AttachmentModeType
|