blob: cb5ca45d2836990cc10d166092a3cf9390f3914a [file] [log] [blame]
/**
* Copyright (c) 2009-2010 Thales Corporate Services S.A.S.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Thales Corporate Services S.A.S - initial API and implementation
*
* $Id$
*/
package org.eclipse.egf.portfolio.eclipse.build.buildstep;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>CLEAN TYPE</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.eclipse.egf.portfolio.eclipse.build.buildstep.BuildstepPackage#getCLEAN_TYPE()
* @model
* @generated
*/
public enum CLEAN_TYPE implements Enumerator {
/**
* The '<em><b>RESULT</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #RESULT_VALUE
* @generated
* @ordered
*/
RESULT(0, "RESULT", "Result"),
/**
* The '<em><b>WORKSPACE</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #WORKSPACE_VALUE
* @generated
* @ordered
*/
WORKSPACE(1, "WORKSPACE", "Workspace"),
/**
* The '<em><b>NOTHING</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NOTHING_VALUE
* @generated
* @ordered
*/
NOTHING(2, "NOTHING", "Nothing");
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final String copyright = " Copyright (c) 2009-2010 Thales Corporate Services S.A.S.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Thales Corporate Services S.A.S - initial API and implementation";
/**
* The '<em><b>RESULT</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>RESULT</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #RESULT
* @model literal="Result"
* @generated
* @ordered
*/
public static final int RESULT_VALUE = 0;
/**
* The '<em><b>WORKSPACE</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>WORKSPACE</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #WORKSPACE
* @model literal="Workspace"
* @generated
* @ordered
*/
public static final int WORKSPACE_VALUE = 1;
/**
* The '<em><b>NOTHING</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>NOTHING</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #NOTHING
* @model literal="Nothing"
* @generated
* @ordered
*/
public static final int NOTHING_VALUE = 2;
/**
* An array of all the '<em><b>CLEAN TYPE</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final CLEAN_TYPE[] VALUES_ARRAY =
new CLEAN_TYPE[] {
RESULT,
WORKSPACE,
NOTHING,
};
/**
* A public read-only list of all the '<em><b>CLEAN TYPE</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<CLEAN_TYPE> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>CLEAN TYPE</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static CLEAN_TYPE get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
CLEAN_TYPE result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>CLEAN TYPE</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static CLEAN_TYPE getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
CLEAN_TYPE result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>CLEAN TYPE</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static CLEAN_TYPE get(int value) {
switch (value) {
case RESULT_VALUE: return RESULT;
case WORKSPACE_VALUE: return WORKSPACE;
case NOTHING_VALUE: return NOTHING;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private CLEAN_TYPE(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //CLEAN_TYPE