/**
* <copyright>
* </copyright>
*
* $Id$
*/
package com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.AbstractEnumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>FTP Script Mode Type</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage#getFTPScriptModeType()
* @model
* @generated
*/
public final class FTPScriptModeType extends AbstractEnumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final String copyright = "Copyright, Bostech Corp.";
/**
* The '<em><b>Base</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Base</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #BASE_LITERAL
* @model name="base"
* @generated
* @ordered
*/
public static final int BASE = 0;
/**
* The '<em><b>Script</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Script</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #SCRIPT_LITERAL
* @model name="script"
* @generated
* @ordered
*/
public static final int SCRIPT = 1;
/**
* The '<em><b>Base</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #BASE
* @generated
* @ordered
*/
public static final FTPScriptModeType BASE_LITERAL = new FTPScriptModeType(BASE, "base", "base");
/**
* The '<em><b>Script</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SCRIPT
* @generated
* @ordered
*/
public static final FTPScriptModeType SCRIPT_LITERAL = new FTPScriptModeType(SCRIPT, "script", "script");
/**
* An array of all the '<em><b>FTP Script Mode Type</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final FTPScriptModeType[] VALUES_ARRAY =
new FTPScriptModeType[] {
BASE_LITERAL,
SCRIPT_LITERAL,
};
/**
* A public read-only list of all the '<em><b>FTP Script Mode Type</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>FTP Script Mode Type</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static FTPScriptModeType get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
FTPScriptModeType result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>FTP Script Mode Type</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static FTPScriptModeType getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
FTPScriptModeType result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>FTP Script Mode Type</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static FTPScriptModeType get(int value) {
switch (value) {
case BASE: return BASE_LITERAL;
case SCRIPT: return SCRIPT_LITERAL;
}
return null;
}
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private FTPScriptModeType(int value, String name, String literal) {
super(value, name, literal);
}
} //FTPScriptModeType
|