blob: 4ed4b633b65e95ba0459b8caf802ebb7ce7873e3 [file] [log] [blame]
/**
* *******************************************************************************
* Copyright (c) 2020 Robert Bosch GmbH and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Generated using Eclipse EMF
*
* *******************************************************************************
*/
package org.eclipse.app4mc.slg.config;
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>File Type</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.eclipse.app4mc.slg.config.ConfigurationPackage#getFileType()
* @model
* @generated
*/
public enum FileType implements Enumerator {
/**
* The '<em><b>UNDEFINED</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #UNDEFINED_VALUE
* @generated
* @ordered
*/
UNDEFINED(-1, "UNDEFINED", "UNDEFINED"),
/**
* The '<em><b>C</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #C_VALUE
* @generated
* @ordered
*/
C(1, "c", "c"),
/**
* The '<em><b>H</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #H_VALUE
* @generated
* @ordered
*/
H(2, "h", "h"),
/**
* The '<em><b>Cpp</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #CPP_VALUE
* @generated
* @ordered
*/
CPP(3, "cpp", "cpp"),
/**
* The '<em><b>Hpp</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #HPP_VALUE
* @generated
* @ordered
*/
HPP(4, "hpp", "hpp");
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final String copyright = "*******************************************************************************\n Copyright (c) 2020 Robert Bosch GmbH and others.\n\n This program and the accompanying materials are made\n available under the terms of the Eclipse Public License 2.0\n which is available at https://www.eclipse.org/legal/epl-2.0/\n\n SPDX-License-Identifier: EPL-2.0\n\n Generated using Eclipse EMF\n\n*******************************************************************************";
/**
* The '<em><b>UNDEFINED</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #UNDEFINED
* @model
* @generated
* @ordered
*/
public static final int UNDEFINED_VALUE = -1;
/**
* The '<em><b>C</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #C
* @model name="c"
* @generated
* @ordered
*/
public static final int C_VALUE = 1;
/**
* The '<em><b>H</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #H
* @model name="h"
* @generated
* @ordered
*/
public static final int H_VALUE = 2;
/**
* The '<em><b>Cpp</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #CPP
* @model name="cpp"
* @generated
* @ordered
*/
public static final int CPP_VALUE = 3;
/**
* The '<em><b>Hpp</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #HPP
* @model name="hpp"
* @generated
* @ordered
*/
public static final int HPP_VALUE = 4;
/**
* An array of all the '<em><b>File Type</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final FileType[] VALUES_ARRAY =
new FileType[] {
UNDEFINED,
C,
H,
CPP,
HPP,
};
/**
* A public read-only list of all the '<em><b>File Type</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<FileType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>File Type</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static FileType get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
FileType result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>File Type</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static FileType getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
FileType result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>File Type</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static FileType get(int value) {
switch (value) {
case UNDEFINED_VALUE: return UNDEFINED;
case C_VALUE: return C;
case H_VALUE: return H;
case CPP_VALUE: return CPP;
case HPP_VALUE: return HPP;
}
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 FileType(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
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;
}
} //FileType