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/SeverityClassKind.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/SeverityClassKind.java65
1 files changed, 22 insertions, 43 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/SeverityClassKind.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/SeverityClassKind.java
index 91593663047..93845f0a370 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/SeverityClassKind.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/SeverityClassKind.java
@@ -27,16 +27,14 @@ import org.eclipse.emf.common.util.Enumerator;
* and utility methods for working with them.
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
- * The SeverityClassKind is an enumeration metaclass with enumeration literals indicating the severity attributes S0, S1, S2 or S3 in accordance with
- * ISO26262.
+ * The SeverityClassKind is an enumeration metaclass with enumeration literals indicating the severity attributes S0, S1, S2 or S3 in accordance with ISO26262.
*
* Semantics:
* The semantics is defined at each enumeration literal and fully defined in the ISO26262 standard.
*
- * Extension:
+ * Extension:
* Enumeration, no extension.
* <!-- end-model-doc -->
- *
* @see org.eclipse.papyrus.eastadl.dependability.DependabilityPackage#getSeverityClassKind()
* @model
* @generated
@@ -46,7 +44,6 @@ public enum SeverityClassKind implements Enumerator {
* The '<em><b>S0</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #S0_VALUE
* @generated
* @ordered
@@ -57,7 +54,6 @@ public enum SeverityClassKind implements Enumerator {
* The '<em><b>S1</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #S1_VALUE
* @generated
* @ordered
@@ -68,7 +64,6 @@ public enum SeverityClassKind implements Enumerator {
* The '<em><b>S2</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #S2_VALUE
* @generated
* @ordered
@@ -79,7 +74,6 @@ public enum SeverityClassKind implements Enumerator {
* The '<em><b>S3</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #S3_VALUE
* @generated
* @ordered
@@ -93,7 +87,6 @@ public enum SeverityClassKind implements Enumerator {
* <!-- begin-model-doc -->
* No injuries.
* <!-- end-model-doc -->
- *
* @see #S0
* @model
* @generated
@@ -108,7 +101,6 @@ public enum SeverityClassKind implements Enumerator {
* <!-- begin-model-doc -->
* Light and moderate injuries
* <!-- end-model-doc -->
- *
* @see #S1
* @model
* @generated
@@ -123,7 +115,6 @@ public enum SeverityClassKind implements Enumerator {
* <!-- begin-model-doc -->
* Severe and life-threatening injuries (survival probable)
* <!-- end-model-doc -->
- *
* @see #S2
* @model
* @generated
@@ -138,7 +129,6 @@ public enum SeverityClassKind implements Enumerator {
* <!-- begin-model-doc -->
* Life-threatening injuries (survival uncertain), fatal injuries
* <!-- end-model-doc -->
- *
* @see #S3
* @model
* @generated
@@ -150,16 +140,20 @@ public enum SeverityClassKind implements Enumerator {
* An array of all the '<em><b>Severity Class Kind</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
- private static final SeverityClassKind[] VALUES_ARRAY = new SeverityClassKind[]{ S0, S1, S2, S3, };
+ private static final SeverityClassKind[] VALUES_ARRAY =
+ new SeverityClassKind[] {
+ S0,
+ S1,
+ S2,
+ S3,
+ };
/**
* A public read-only list of all the '<em><b>Severity Class Kind</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static final List<SeverityClassKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
@@ -168,19 +162,14 @@ public enum SeverityClassKind implements Enumerator {
* Returns the '<em><b>Severity Class Kind</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static SeverityClassKind get(int value) {
- switch(value) {
- case S0_VALUE:
- return S0;
- case S1_VALUE:
- return S1;
- case S2_VALUE:
- return S2;
- case S3_VALUE:
- return S3;
+ switch (value) {
+ case S0_VALUE: return S0;
+ case S1_VALUE: return S1;
+ case S2_VALUE: return S2;
+ case S3_VALUE: return S3;
}
return null;
}
@@ -189,13 +178,12 @@ public enum SeverityClassKind implements Enumerator {
* Returns the '<em><b>Severity Class Kind</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static SeverityClassKind get(String literal) {
- for(int i = 0; i < VALUES_ARRAY.length; ++i) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
SeverityClassKind result = VALUES_ARRAY[i];
- if(result.toString().equals(literal)) {
+ if (result.toString().equals(literal)) {
return result;
}
}
@@ -206,13 +194,12 @@ public enum SeverityClassKind implements Enumerator {
* Returns the '<em><b>Severity Class Kind</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static SeverityClassKind getByName(String name) {
- for(int i = 0; i < VALUES_ARRAY.length; ++i) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
SeverityClassKind result = VALUES_ARRAY[i];
- if(result.getName().equals(name)) {
+ if (result.getName().equals(name)) {
return result;
}
}
@@ -222,7 +209,6 @@ public enum SeverityClassKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private final int value;
@@ -230,7 +216,6 @@ public enum SeverityClassKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private final String name;
@@ -238,7 +223,6 @@ public enum SeverityClassKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private final String literal;
@@ -247,7 +231,6 @@ public enum SeverityClassKind implements Enumerator {
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private SeverityClassKind(int value, String name, String literal) {
@@ -259,43 +242,39 @@ public enum SeverityClassKind 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;
}
-
+
} //SeverityClassKind

Back to the top