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 | 73 |
1 files changed, 28 insertions, 45 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 2c9c9988927..18784a3285a 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 @@ -27,25 +27,22 @@ 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. + * - The operational safety case is prior to in-service use. * - * Extension: + * Extension: * Enumeration, no extension. * <!-- end-model-doc --> - * * @see org.eclipse.papyrus.eastadl.dependability.safetycase.SafetycasePackage#getLifecycleStageKind() * @model * @generated @@ -55,7 +52,6 @@ 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 @@ -66,7 +62,6 @@ 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 @@ -77,7 +72,6 @@ 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 @@ -88,10 +82,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 @@ -103,10 +97,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 @@ -118,10 +112,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 @@ -133,16 +127,19 @@ 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, }; + private static final LifecycleStageKind[] VALUES_ARRAY = + 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)); @@ -151,17 +148,13 @@ 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; + 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; } return null; } @@ -170,13 +163,12 @@ 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) { - for(int i = 0; i < VALUES_ARRAY.length; ++i) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { LifecycleStageKind result = VALUES_ARRAY[i]; - if(result.toString().equals(literal)) { + if (result.toString().equals(literal)) { return result; } } @@ -187,13 +179,12 @@ 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) { - for(int i = 0; i < VALUES_ARRAY.length; ++i) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { LifecycleStageKind result = VALUES_ARRAY[i]; - if(result.getName().equals(name)) { + if (result.getName().equals(name)) { return result; } } @@ -203,7 +194,6 @@ public enum LifecycleStageKind implements Enumerator { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ private final int value; @@ -211,7 +201,6 @@ public enum LifecycleStageKind implements Enumerator { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ private final String name; @@ -219,7 +208,6 @@ public enum LifecycleStageKind implements Enumerator { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ private final String literal; @@ -228,7 +216,6 @@ 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) { @@ -240,43 +227,39 @@ public enum LifecycleStageKind implements Enumerator { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public String getLiteral() { - return literal; + return literal; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public String getName() { - return name; + return name; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ 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 |