diff options
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetycase/LifecycleStageKind.java')
-rw-r--r-- | extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetycase/LifecycleStageKind.java | 83 |
1 files changed, 53 insertions, 30 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetycase/LifecycleStageKind.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetycase/LifecycleStageKind.java index 18784a3285a..371831dbe49 100644 --- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetycase/LifecycleStageKind.java +++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetycase/LifecycleStageKind.java @@ -1,7 +1,7 @@ /***************************************************************************** * Copyright (c) 2010 CEA LIST. * - * + * * 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 @@ -27,22 +27,23 @@ import org.eclipse.emf.common.util.Enumerator; * and utility methods for working with them. * <!-- end-user-doc --> * <!-- begin-model-doc --> - * The SafetyCase should be initiated at the earliest possible stage in the safety program so that hazards are identified and dealt with while the opportunities for their exclusion exist. - * + * The SafetyCase should be initiated at the earliest possible stage in the safety program so that hazards are identified and dealt with while the opportunities for their exclusion exist. + * * The LifecycleStageKind is an enumeration metaclass with enumeration literals indicating safety case life cycle stage. - * + * * Semantics: * The safety case is one incremental safety case, rather than several complete new ones. The safety case lifecycle stage has the following meanings: - * - * - The preliminary safety case is started when development of the system is started. After this stage discussions with the customer can commence about possible safety issues (hazards). - * + * + * - The preliminary safety case is started when development of the system is started. After this stage discussions with the customer can commence about possible safety issues (hazards). + * * - The interim safety case is situated after the first system design and tests. - * - * - The operational safety case is prior to in-service use. - * - * Extension: + * + * - The operational safety case is prior to in-service use. + * + * Extension: * Enumeration, no extension. * <!-- end-model-doc --> + * * @see org.eclipse.papyrus.eastadl.dependability.safetycase.SafetycasePackage#getLifecycleStageKind() * @model * @generated @@ -52,6 +53,7 @@ public enum LifecycleStageKind implements Enumerator { * The '<em><b>Preliminary Safety Case</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #PRELIMINARY_SAFETY_CASE_VALUE * @generated * @ordered @@ -62,6 +64,7 @@ public enum LifecycleStageKind implements Enumerator { * The '<em><b>Interim Safety Case</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #INTERIM_SAFETY_CASE_VALUE * @generated * @ordered @@ -72,6 +75,7 @@ public enum LifecycleStageKind implements Enumerator { * The '<em><b>Operational Safety Case</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #OPERATIONAL_SAFETY_CASE_VALUE * @generated * @ordered @@ -82,10 +86,10 @@ public enum LifecycleStageKind implements Enumerator { * The '<em><b>Preliminary Safety Case</b></em>' literal value. * <!-- begin-user-doc --> * <p> - * If the meaning of '<em><b>Preliminary Safety Case</b></em>' literal object isn't clear, - * there really should be more of a description here... + * If the meaning of '<em><b>Preliminary Safety Case</b></em>' literal object isn't clear, there really should be more of a description here... * </p> * <!-- end-user-doc --> + * * @see #PRELIMINARY_SAFETY_CASE * @model name="PreliminarySafetyCase" * @generated @@ -97,10 +101,10 @@ public enum LifecycleStageKind implements Enumerator { * The '<em><b>Interim Safety Case</b></em>' literal value. * <!-- begin-user-doc --> * <p> - * If the meaning of '<em><b>Interim Safety Case</b></em>' literal object isn't clear, - * there really should be more of a description here... + * If the meaning of '<em><b>Interim Safety Case</b></em>' literal object isn't clear, there really should be more of a description here... * </p> * <!-- end-user-doc --> + * * @see #INTERIM_SAFETY_CASE * @model name="InterimSafetyCase" * @generated @@ -112,10 +116,10 @@ public enum LifecycleStageKind implements Enumerator { * The '<em><b>Operational Safety Case</b></em>' literal value. * <!-- begin-user-doc --> * <p> - * If the meaning of '<em><b>Operational Safety Case</b></em>' literal object isn't clear, - * there really should be more of a description here... + * If the meaning of '<em><b>Operational Safety Case</b></em>' literal object isn't clear, there really should be more of a description here... * </p> * <!-- end-user-doc --> + * * @see #OPERATIONAL_SAFETY_CASE * @model name="OperationalSafetyCase" * @generated @@ -127,19 +131,21 @@ public enum LifecycleStageKind implements Enumerator { * An array of all the '<em><b>Lifecycle Stage Kind</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ private static final LifecycleStageKind[] VALUES_ARRAY = - new LifecycleStageKind[] { - PRELIMINARY_SAFETY_CASE, - INTERIM_SAFETY_CASE, - OPERATIONAL_SAFETY_CASE, - }; + new LifecycleStageKind[] { + PRELIMINARY_SAFETY_CASE, + INTERIM_SAFETY_CASE, + OPERATIONAL_SAFETY_CASE, + }; /** * A public read-only list of all the '<em><b>Lifecycle Stage Kind</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public static final List<LifecycleStageKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); @@ -148,13 +154,17 @@ public enum LifecycleStageKind implements Enumerator { * Returns the '<em><b>Lifecycle Stage Kind</b></em>' literal with the specified integer value. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public static LifecycleStageKind get(int value) { switch (value) { - case PRELIMINARY_SAFETY_CASE_VALUE: return PRELIMINARY_SAFETY_CASE; - case INTERIM_SAFETY_CASE_VALUE: return INTERIM_SAFETY_CASE; - case OPERATIONAL_SAFETY_CASE_VALUE: return OPERATIONAL_SAFETY_CASE; + case PRELIMINARY_SAFETY_CASE_VALUE: + return PRELIMINARY_SAFETY_CASE; + case INTERIM_SAFETY_CASE_VALUE: + return INTERIM_SAFETY_CASE; + case OPERATIONAL_SAFETY_CASE_VALUE: + return OPERATIONAL_SAFETY_CASE; } return null; } @@ -163,6 +173,7 @@ public enum LifecycleStageKind implements Enumerator { * Returns the '<em><b>Lifecycle Stage Kind</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public static LifecycleStageKind get(String literal) { @@ -179,6 +190,7 @@ public enum LifecycleStageKind implements Enumerator { * Returns the '<em><b>Lifecycle Stage Kind</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public static LifecycleStageKind getByName(String name) { @@ -194,6 +206,7 @@ public enum LifecycleStageKind implements Enumerator { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ private final int value; @@ -201,6 +214,7 @@ public enum LifecycleStageKind implements Enumerator { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ private final String name; @@ -208,6 +222,7 @@ public enum LifecycleStageKind implements Enumerator { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ private final String literal; @@ -216,6 +231,7 @@ public enum LifecycleStageKind implements Enumerator { * Only this class can construct instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ private LifecycleStageKind(int value, String name, String literal) { @@ -227,39 +243,46 @@ public enum LifecycleStageKind implements Enumerator { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ + @Override public String getLiteral() { - return literal; + return literal; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ + @Override public String getName() { - return name; + return name; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ + @Override public int getValue() { - return value; + return value; } /** * 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; } - -} //LifecycleStageKind + +} // LifecycleStageKind |