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>WSDL Source</b></em>',
017: * and utility methods for working with them.
018: * <!-- end-user-doc -->
019: * @see com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage#getWSDLSource()
020: * @model
021: * @generated
022: */
023: public final class WSDLSource 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>Use Default</b></em>' literal value.
033: * <!-- begin-user-doc -->
034: * <p>
035: * If the meaning of '<em><b>Use Default</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 #USE_DEFAULT_LITERAL
040: * @model name="UseDefault"
041: * @generated
042: * @ordered
043: */
044: public static final int USE_DEFAULT = 0;
045:
046: /**
047: * The '<em><b>Use Existing</b></em>' literal value.
048: * <!-- begin-user-doc -->
049: * <p>
050: * If the meaning of '<em><b>Use Existing</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 #USE_EXISTING_LITERAL
055: * @model name="UseExisting"
056: * @generated
057: * @ordered
058: */
059: public static final int USE_EXISTING = 1;
060:
061: /**
062: * The '<em><b>Create New</b></em>' literal value.
063: * <!-- begin-user-doc -->
064: * <p>
065: * If the meaning of '<em><b>Create New</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 #CREATE_NEW_LITERAL
070: * @model name="CreateNew"
071: * @generated
072: * @ordered
073: */
074: public static final int CREATE_NEW = 2;
075:
076: /**
077: * The '<em><b>Use Default</b></em>' literal object.
078: * <!-- begin-user-doc -->
079: * <!-- end-user-doc -->
080: * @see #USE_DEFAULT
081: * @generated
082: * @ordered
083: */
084: public static final WSDLSource USE_DEFAULT_LITERAL = new WSDLSource(
085: USE_DEFAULT, "UseDefault", "UseDefault");
086:
087: /**
088: * The '<em><b>Use Existing</b></em>' literal object.
089: * <!-- begin-user-doc -->
090: * <!-- end-user-doc -->
091: * @see #USE_EXISTING
092: * @generated
093: * @ordered
094: */
095: public static final WSDLSource USE_EXISTING_LITERAL = new WSDLSource(
096: USE_EXISTING, "UseExisting", "UseExisting");
097:
098: /**
099: * The '<em><b>Create New</b></em>' literal object.
100: * <!-- begin-user-doc -->
101: * <!-- end-user-doc -->
102: * @see #CREATE_NEW
103: * @generated
104: * @ordered
105: */
106: public static final WSDLSource CREATE_NEW_LITERAL = new WSDLSource(
107: CREATE_NEW, "CreateNew", "CreateNew");
108:
109: /**
110: * An array of all the '<em><b>WSDL Source</b></em>' enumerators.
111: * <!-- begin-user-doc -->
112: * <!-- end-user-doc -->
113: * @generated
114: */
115: private static final WSDLSource[] VALUES_ARRAY = new WSDLSource[] {
116: USE_DEFAULT_LITERAL, USE_EXISTING_LITERAL,
117: CREATE_NEW_LITERAL, };
118:
119: /**
120: * A public read-only list of all the '<em><b>WSDL Source</b></em>' enumerators.
121: * <!-- begin-user-doc -->
122: * <!-- end-user-doc -->
123: * @generated
124: */
125: public static final List VALUES = Collections
126: .unmodifiableList(Arrays.asList(VALUES_ARRAY));
127:
128: /**
129: * Returns the '<em><b>WSDL Source</b></em>' literal with the specified literal value.
130: * <!-- begin-user-doc -->
131: * <!-- end-user-doc -->
132: * @generated
133: */
134: public static WSDLSource get(String literal) {
135: for (int i = 0; i < VALUES_ARRAY.length; ++i) {
136: WSDLSource result = VALUES_ARRAY[i];
137: if (result.toString().equals(literal)) {
138: return result;
139: }
140: }
141: return null;
142: }
143:
144: /**
145: * Returns the '<em><b>WSDL Source</b></em>' literal with the specified name.
146: * <!-- begin-user-doc -->
147: * <!-- end-user-doc -->
148: * @generated
149: */
150: public static WSDLSource getByName(String name) {
151: for (int i = 0; i < VALUES_ARRAY.length; ++i) {
152: WSDLSource result = VALUES_ARRAY[i];
153: if (result.getName().equals(name)) {
154: return result;
155: }
156: }
157: return null;
158: }
159:
160: /**
161: * Returns the '<em><b>WSDL Source</b></em>' literal with the specified integer value.
162: * <!-- begin-user-doc -->
163: * <!-- end-user-doc -->
164: * @generated
165: */
166: public static WSDLSource get(int value) {
167: switch (value) {
168: case USE_DEFAULT:
169: return USE_DEFAULT_LITERAL;
170: case USE_EXISTING:
171: return USE_EXISTING_LITERAL;
172: case CREATE_NEW:
173: return CREATE_NEW_LITERAL;
174: }
175: return null;
176: }
177:
178: /**
179: * Only this class can construct instances.
180: * <!-- begin-user-doc -->
181: * <!-- end-user-doc -->
182: * @generated
183: */
184: private WSDLSource(int value, String name, String literal) {
185: super (value, name, literal);
186: }
187:
188: } //WSDLSource
|