blob: 727eb34721a819fb200c8e3ada02417a5492c34c [file] [log] [blame]
/**
* Copyright (c) 2018, IncQuery Labs Ltd and CEA List.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IncQuery Labs Ltd - initial API and implementation
* CEA List
*/
package org.eclipse.papyrus.moka.ssp.profile;
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>Type Kind</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.eclipse.papyrus.moka.ssp.profile.SSPProfilePackage#getTypeKind()
* @model
* @generated
*/
public final class TypeKind extends AbstractEnumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final String copyright = " Copyright (c) 2018, IncQuery Labs Ltd and CEA List.\n All rights reserved. This program and the accompanying materials\nare made available under the terms of the Eclipse Public License 2.0\nwhich accompanies this distribution, and is available at\nhttps://www.eclipse.org/legal/epl-2.0 \r\n\r\nSPDX-License-Identifier: EPL-2.0\n \nContributors:\n IncQuery Labs Ltd - initial API and implementation\n CEA List ";
/**
* The '<em><b>Input</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Input</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #INPUT_LITERAL
* @model name="input"
* @generated
* @ordered
*/
public static final int INPUT = 0;
/**
* The '<em><b>Output</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Output</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #OUTPUT_LITERAL
* @model name="output"
* @generated
* @ordered
*/
public static final int OUTPUT = 1;
/**
* The '<em><b>Parameter</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Parameter</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #PARAMETER_LITERAL
* @model name="parameter"
* @generated
* @ordered
*/
public static final int PARAMETER = 2;
/**
* The '<em><b>Calculated Parameter</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Calculated Parameter</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #CALCULATED_PARAMETER_LITERAL
* @model name="calculatedParameter"
* @generated
* @ordered
*/
public static final int CALCULATED_PARAMETER = 3;
/**
* The '<em><b>Inout</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Inout</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #INOUT_LITERAL
* @model name="inout"
* @generated
* @ordered
*/
public static final int INOUT = 4;
/**
* The '<em><b>Input</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #INPUT
* @generated
* @ordered
*/
public static final TypeKind INPUT_LITERAL = new TypeKind(INPUT, "input", "input");
/**
* The '<em><b>Output</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #OUTPUT
* @generated
* @ordered
*/
public static final TypeKind OUTPUT_LITERAL = new TypeKind(OUTPUT, "output", "output");
/**
* The '<em><b>Parameter</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #PARAMETER
* @generated
* @ordered
*/
public static final TypeKind PARAMETER_LITERAL = new TypeKind(PARAMETER, "parameter", "parameter");
/**
* The '<em><b>Calculated Parameter</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #CALCULATED_PARAMETER
* @generated
* @ordered
*/
public static final TypeKind CALCULATED_PARAMETER_LITERAL = new TypeKind(CALCULATED_PARAMETER, "calculatedParameter", "calculatedParameter");
/**
* The '<em><b>Inout</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #INOUT
* @generated
* @ordered
*/
public static final TypeKind INOUT_LITERAL = new TypeKind(INOUT, "inout", "inout");
/**
* An array of all the '<em><b>Type Kind</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final TypeKind[] VALUES_ARRAY =
new TypeKind[] {
INPUT_LITERAL,
OUTPUT_LITERAL,
PARAMETER_LITERAL,
CALCULATED_PARAMETER_LITERAL,
INOUT_LITERAL,
};
/**
* A public read-only list of all the '<em><b>Type Kind</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>Type Kind</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 TypeKind get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
TypeKind result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Type Kind</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 TypeKind getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
TypeKind result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Type Kind</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 TypeKind get(int value) {
switch (value) {
case INPUT: return INPUT_LITERAL;
case OUTPUT: return OUTPUT_LITERAL;
case PARAMETER: return PARAMETER_LITERAL;
case CALCULATED_PARAMETER: return CALCULATED_PARAMETER_LITERAL;
case INOUT: return INOUT_LITERAL;
}
return null;
}
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private TypeKind(int value, String name, String literal) {
super(value, name, literal);
}
} //TypeKind