blob: 6c4ad8cdd48950c08c9164bc45e3ccc895becbad [file] [log] [blame]
/**
* Copyright (c) 2019 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:
* Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Initial API and implementation
*/
package org.eclipse.papyrus.sysml16.requirementsextension;
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>Verification Method Kind</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.eclipse.papyrus.sysml16.requirementsextension.RequirementsExtensionPackage#getVerificationMethodKind()
* @model
* @generated
*/
public enum VerificationMethodKind implements Enumerator {
/**
* The '<em><b>Analysis</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Analysis indicates that verification will be performed by technical evaluation using mathematical representations, charts, graphs, circuit diagrams, data reduction, or representative data. Analysis also includes the verification of requirements under conditions, which are simulated or modeled; where the results are derived from the analysis of the results produced by the model.
* <!-- end-model-doc -->
* @see #ANALYSIS_VALUE
* @generated
* @ordered
*/
ANALYSIS(0, "Analysis", "Analysis"), //$NON-NLS-1$ //$NON-NLS-2$
/**
* The '<em><b>Demonstration</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Demonstration indicates that verification will be performed by operation, movement or adjustment of the item under specific conditions to perform the design functions without recording of quantitative data.. Demonstration is typically considered the least restrictive of the verification types.
* <!-- end-model-doc -->
* @see #DEMONSTRATION_VALUE
* @generated
* @ordered
*/
DEMONSTRATION(1, "Demonstration", "Demonstration"), //$NON-NLS-1$ //$NON-NLS-2$
/**
* The '<em><b>Inspection</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Inspection indicates that verification will be performed by examination of the item, reviewing descriptive documentation, and comparing the appropriate characteristics with a predetermined standard to determine conformance to requirements without the use of special laboratory equipment or procedures.
* <!-- end-model-doc -->
* @see #INSPECTION_VALUE
* @generated
* @ordered
*/
INSPECTION(2, "Inspection", "Inspection"), //$NON-NLS-1$ //$NON-NLS-2$
/**
* The '<em><b>Test</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Test indicates that verification will be performed through systematic exercising of the applicable item under appropriate conditions with instrumentation to measure required parameters and the collection, analysis, and evaluation of quantitative data to show that measured parameters equal or exceed specified requirements.
* <!-- end-model-doc -->
* @see #TEST_VALUE
* @generated
* @ordered
*/
TEST(3, "Test", "Test"); //$NON-NLS-1$ //$NON-NLS-2$
/**
* The '<em><b>Analysis</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Analysis indicates that verification will be performed by technical evaluation using mathematical representations, charts, graphs, circuit diagrams, data reduction, or representative data. Analysis also includes the verification of requirements under conditions, which are simulated or modeled; where the results are derived from the analysis of the results produced by the model.
* <!-- end-model-doc -->
* @see #ANALYSIS
* @model name="Analysis"
* @generated
* @ordered
*/
public static final int ANALYSIS_VALUE = 0;
/**
* The '<em><b>Demonstration</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Demonstration indicates that verification will be performed by operation, movement or adjustment of the item under specific conditions to perform the design functions without recording of quantitative data.. Demonstration is typically considered the least restrictive of the verification types.
* <!-- end-model-doc -->
* @see #DEMONSTRATION
* @model name="Demonstration"
* @generated
* @ordered
*/
public static final int DEMONSTRATION_VALUE = 1;
/**
* The '<em><b>Inspection</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Inspection indicates that verification will be performed by examination of the item, reviewing descriptive documentation, and comparing the appropriate characteristics with a predetermined standard to determine conformance to requirements without the use of special laboratory equipment or procedures.
* <!-- end-model-doc -->
* @see #INSPECTION
* @model name="Inspection"
* @generated
* @ordered
*/
public static final int INSPECTION_VALUE = 2;
/**
* The '<em><b>Test</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Test indicates that verification will be performed through systematic exercising of the applicable item under appropriate conditions with instrumentation to measure required parameters and the collection, analysis, and evaluation of quantitative data to show that measured parameters equal or exceed specified requirements.
* <!-- end-model-doc -->
* @see #TEST
* @model name="Test"
* @generated
* @ordered
*/
public static final int TEST_VALUE = 3;
/**
* An array of all the '<em><b>Verification Method Kind</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final VerificationMethodKind[] VALUES_ARRAY =
new VerificationMethodKind[] {
ANALYSIS,
DEMONSTRATION,
INSPECTION,
TEST,
};
/**
* A public read-only list of all the '<em><b>Verification Method Kind</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<VerificationMethodKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Verification Method 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 VerificationMethodKind get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
VerificationMethodKind result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Verification Method 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 VerificationMethodKind getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
VerificationMethodKind result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Verification Method 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 VerificationMethodKind get(int value) {
switch (value) {
case ANALYSIS_VALUE: return ANALYSIS;
case DEMONSTRATION_VALUE: return DEMONSTRATION;
case INSPECTION_VALUE: return INSPECTION;
case TEST_VALUE: return TEST;
}
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 VerificationMethodKind(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;
}
} //VerificationMethodKind