blob: a35ede97506533b3018eeda58bf3793651e872a0 [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>Platform Architecture</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.eclipse.app4mc.slg.config.ConfigurationPackage#getPlatformArchitecture()
* @model
* @generated
*/
public enum PlatformArchitecture implements Enumerator {
/**
* The '<em><b>X86 64</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #X86_64_VALUE
* @generated
* @ordered
*/
X86_64(0, "x86_64", "x86_64"),
/**
* The '<em><b>X86 32</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #X86_32_VALUE
* @generated
* @ordered
*/
X86_32(1, "x86_32", "x86_32"),
/**
* The '<em><b>Aarch64</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #AARCH64_VALUE
* @generated
* @ordered
*/
AARCH64(2, "aarch64", "aarch64");
/**
* <!-- 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>X86 64</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #X86_64
* @model name="x86_64"
* @generated
* @ordered
*/
public static final int X86_64_VALUE = 0;
/**
* The '<em><b>X86 32</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #X86_32
* @model name="x86_32"
* @generated
* @ordered
*/
public static final int X86_32_VALUE = 1;
/**
* The '<em><b>Aarch64</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #AARCH64
* @model name="aarch64"
* @generated
* @ordered
*/
public static final int AARCH64_VALUE = 2;
/**
* An array of all the '<em><b>Platform Architecture</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final PlatformArchitecture[] VALUES_ARRAY =
new PlatformArchitecture[] {
X86_64,
X86_32,
AARCH64,
};
/**
* A public read-only list of all the '<em><b>Platform Architecture</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<PlatformArchitecture> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Platform Architecture</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 PlatformArchitecture get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
PlatformArchitecture result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Platform Architecture</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 PlatformArchitecture getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
PlatformArchitecture result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Platform Architecture</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 PlatformArchitecture get(int value) {
switch (value) {
case X86_64_VALUE: return X86_64;
case X86_32_VALUE: return X86_32;
case AARCH64_VALUE: return AARCH64;
}
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 PlatformArchitecture(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;
}
} //PlatformArchitecture