diff options
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/ErrorBehaviorKind.java')
-rw-r--r-- | extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/ErrorBehaviorKind.java | 76 |
1 files changed, 30 insertions, 46 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/ErrorBehaviorKind.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/ErrorBehaviorKind.java index 86ce2b2f44f..4dbe33970b7 100644 --- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/ErrorBehaviorKind.java +++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/ErrorBehaviorKind.java @@ -30,12 +30,11 @@ import org.eclipse.emf.common.util.Enumerator; * The ErrorBehaviorKind metaclass represents an enumeration of literals describing various types of formalisms used for specifying error behavior. * * Semantics: - * ErrorBehaviorKind represents different formalisms for ErrorBehavior. The semantics is defined at each enumeration literal. + * ErrorBehaviorKind represents different formalisms for ErrorBehavior. The semantics is defined at each enumeration literal. * - * Extension: + * Extension: * Enumeration, no extension. * <!-- end-model-doc --> - * * @see org.eclipse.papyrus.eastadl.dependability.errormodel.ErrormodelPackage#getErrorBehaviorKind() * @model * @generated @@ -45,7 +44,6 @@ public enum ErrorBehaviorKind implements Enumerator { * The '<em><b>HIP HOPS</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #HIP_HOPS_VALUE * @generated * @ordered @@ -54,7 +52,6 @@ public enum ErrorBehaviorKind implements Enumerator { * The '<em><b>ALTARICA</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #ALTARICA_VALUE * @generated * @ordered @@ -65,7 +62,6 @@ public enum ErrorBehaviorKind implements Enumerator { * The '<em><b>AADL</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #AADL_VALUE * @generated * @ordered @@ -76,7 +72,6 @@ public enum ErrorBehaviorKind implements Enumerator { * The '<em><b>OTHER</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #OTHER_VALUE * @generated * @ordered @@ -87,10 +82,10 @@ public enum ErrorBehaviorKind implements Enumerator { * The '<em><b>HIP HOPS</b></em>' literal value. * <!-- begin-user-doc --> * <p> - * If the meaning of '<em><b>HIP HOPS</b></em>' literal object isn't clear, there really should be more of a description here... + * If the meaning of '<em><b>HIP HOPS</b></em>' literal object isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * * @see #HIP_HOPS * @model * @generated @@ -102,10 +97,10 @@ public enum ErrorBehaviorKind implements Enumerator { * The '<em><b>ALTARICA</b></em>' literal value. * <!-- begin-user-doc --> * <p> - * If the meaning of '<em><b>ALTARICA</b></em>' literal object isn't clear, there really should be more of a description here... + * If the meaning of '<em><b>ALTARICA</b></em>' literal object isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * * @see #ALTARICA * @model * @generated @@ -117,10 +112,10 @@ public enum ErrorBehaviorKind implements Enumerator { * The '<em><b>AADL</b></em>' literal value. * <!-- begin-user-doc --> * <p> - * If the meaning of '<em><b>AADL</b></em>' literal object isn't clear, there really should be more of a description here... + * If the meaning of '<em><b>AADL</b></em>' literal object isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * * @see #AADL * @model * @generated @@ -132,10 +127,10 @@ public enum ErrorBehaviorKind implements Enumerator { * The '<em><b>OTHER</b></em>' literal value. * <!-- begin-user-doc --> * <p> - * If the meaning of '<em><b>OTHER</b></em>' literal object isn't clear, there really should be more of a description here... + * If the meaning of '<em><b>OTHER</b></em>' literal object isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * * @see #OTHER * @model * @generated @@ -147,16 +142,20 @@ public enum ErrorBehaviorKind implements Enumerator { * An array of all the '<em><b>Error Behavior Kind</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ - private static final ErrorBehaviorKind[] VALUES_ARRAY = new ErrorBehaviorKind[]{ HIP_HOPS, ALTARICA, AADL, OTHER, }; + private static final ErrorBehaviorKind[] VALUES_ARRAY = + new ErrorBehaviorKind[] { + HIP_HOPS, + ALTARICA, + AADL, + OTHER, + }; /** * A public read-only list of all the '<em><b>Error Behavior Kind</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public static final List<ErrorBehaviorKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); @@ -165,19 +164,14 @@ public enum ErrorBehaviorKind implements Enumerator { * Returns the '<em><b>Error Behavior Kind</b></em>' literal with the specified integer value. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public static ErrorBehaviorKind get(int value) { - switch(value) { - case HIP_HOPS_VALUE: - return HIP_HOPS; - case ALTARICA_VALUE: - return ALTARICA; - case AADL_VALUE: - return AADL; - case OTHER_VALUE: - return OTHER; + switch (value) { + case HIP_HOPS_VALUE: return HIP_HOPS; + case ALTARICA_VALUE: return ALTARICA; + case AADL_VALUE: return AADL; + case OTHER_VALUE: return OTHER; } return null; } @@ -186,13 +180,12 @@ public enum ErrorBehaviorKind implements Enumerator { * Returns the '<em><b>Error Behavior Kind</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public static ErrorBehaviorKind get(String literal) { - for(int i = 0; i < VALUES_ARRAY.length; ++i) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { ErrorBehaviorKind result = VALUES_ARRAY[i]; - if(result.toString().equals(literal)) { + if (result.toString().equals(literal)) { return result; } } @@ -203,13 +196,12 @@ public enum ErrorBehaviorKind implements Enumerator { * Returns the '<em><b>Error Behavior Kind</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public static ErrorBehaviorKind getByName(String name) { - for(int i = 0; i < VALUES_ARRAY.length; ++i) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { ErrorBehaviorKind result = VALUES_ARRAY[i]; - if(result.getName().equals(name)) { + if (result.getName().equals(name)) { return result; } } @@ -219,7 +211,6 @@ public enum ErrorBehaviorKind implements Enumerator { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ private final int value; @@ -227,7 +218,6 @@ public enum ErrorBehaviorKind implements Enumerator { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ private final String name; @@ -235,7 +225,6 @@ public enum ErrorBehaviorKind implements Enumerator { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ private final String literal; @@ -244,7 +233,6 @@ public enum ErrorBehaviorKind implements Enumerator { * Only this class can construct instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ private ErrorBehaviorKind(int value, String name, String literal) { @@ -256,43 +244,39 @@ public enum ErrorBehaviorKind 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; } - + } //ErrorBehaviorKind |