Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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.java73
1 files changed, 45 insertions, 28 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..2c9c9988927 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,22 +27,25 @@ 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
@@ -52,6 +55,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 +66,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 +77,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 +88,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 +103,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 +118,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 +133,16 @@ 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));
@@ -148,13 +151,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;
+ 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;
}
@@ -163,12 +170,13 @@ 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;
}
}
@@ -179,12 +187,13 @@ 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;
}
}
@@ -194,6 +203,7 @@ public enum LifecycleStageKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private final int value;
@@ -201,6 +211,7 @@ public enum LifecycleStageKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private final String name;
@@ -208,6 +219,7 @@ public enum LifecycleStageKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private final String literal;
@@ -216,6 +228,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 +240,43 @@ 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

Back to the top