diff options
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/hardwaremodeling/IOHardwarePinKind.java')
-rw-r--r-- | extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/hardwaremodeling/IOHardwarePinKind.java | 62 |
1 files changed, 21 insertions, 41 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/hardwaremodeling/IOHardwarePinKind.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/hardwaremodeling/IOHardwarePinKind.java index 9e4cb2ea682..7ba3988aea4 100644 --- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/hardwaremodeling/IOHardwarePinKind.java +++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/hardwaremodeling/IOHardwarePinKind.java @@ -29,10 +29,9 @@ import org.eclipse.emf.common.util.Enumerator; * <!-- begin-model-doc --> * IOHardwarePinKind is an enumeration type representing different kinds of I/O Hardware Ports. * - * Extension: + * Extension: * Enumeration, no extension. * <!-- end-model-doc --> - * * @see org.eclipse.papyrus.eastadl.structure.hardwaremodeling.HardwaremodelingPackage#getIOHardwarePinKind() * @model * @generated @@ -42,7 +41,6 @@ public enum IOHardwarePinKind implements Enumerator { * The '<em><b>Digital</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #DIGITAL_VALUE * @generated * @ordered @@ -53,7 +51,6 @@ public enum IOHardwarePinKind implements Enumerator { * The '<em><b>Analog</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #ANALOG_VALUE * @generated * @ordered @@ -64,7 +61,6 @@ public enum IOHardwarePinKind implements Enumerator { * The '<em><b>Pwm</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #PWM_VALUE * @generated * @ordered @@ -75,7 +71,6 @@ public enum IOHardwarePinKind implements Enumerator { * The '<em><b>Other</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #OTHER_VALUE * @generated * @ordered @@ -89,7 +84,6 @@ public enum IOHardwarePinKind implements Enumerator { * <!-- begin-model-doc --> * I/O with fixed amplitude. * <!-- end-model-doc --> - * * @see #DIGITAL * @model name="digital" * @generated @@ -104,7 +98,6 @@ public enum IOHardwarePinKind implements Enumerator { * <!-- begin-model-doc --> * I/O with varying amplitude. * <!-- end-model-doc --> - * * @see #ANALOG * @model name="analog" * @generated @@ -119,7 +112,6 @@ public enum IOHardwarePinKind implements Enumerator { * <!-- begin-model-doc --> * PWM (Pulse Width Modulated) modulated I/O, i.e. a signal with fixed frequency and amplitude but varying duty cycle. * <!-- end-model-doc --> - * * @see #PWM * @model name="pwm" * @generated @@ -134,7 +126,6 @@ public enum IOHardwarePinKind implements Enumerator { * <!-- begin-model-doc --> * Another type of I/O port. * <!-- end-model-doc --> - * * @see #OTHER * @model name="other" * @generated @@ -146,16 +137,20 @@ public enum IOHardwarePinKind implements Enumerator { * An array of all the '<em><b>IO Hardware Pin Kind</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ - private static final IOHardwarePinKind[] VALUES_ARRAY = new IOHardwarePinKind[]{ DIGITAL, ANALOG, PWM, OTHER, }; + private static final IOHardwarePinKind[] VALUES_ARRAY = + new IOHardwarePinKind[] { + DIGITAL, + ANALOG, + PWM, + OTHER, + }; /** * A public read-only list of all the '<em><b>IO Hardware Pin Kind</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public static final List<IOHardwarePinKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); @@ -164,19 +159,14 @@ public enum IOHardwarePinKind implements Enumerator { * Returns the '<em><b>IO Hardware Pin Kind</b></em>' literal with the specified integer value. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public static IOHardwarePinKind get(int value) { - switch(value) { - case DIGITAL_VALUE: - return DIGITAL; - case ANALOG_VALUE: - return ANALOG; - case PWM_VALUE: - return PWM; - case OTHER_VALUE: - return OTHER; + switch (value) { + case DIGITAL_VALUE: return DIGITAL; + case ANALOG_VALUE: return ANALOG; + case PWM_VALUE: return PWM; + case OTHER_VALUE: return OTHER; } return null; } @@ -185,13 +175,12 @@ public enum IOHardwarePinKind implements Enumerator { * Returns the '<em><b>IO Hardware Pin Kind</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public static IOHardwarePinKind get(String literal) { - for(int i = 0; i < VALUES_ARRAY.length; ++i) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { IOHardwarePinKind result = VALUES_ARRAY[i]; - if(result.toString().equals(literal)) { + if (result.toString().equals(literal)) { return result; } } @@ -202,13 +191,12 @@ public enum IOHardwarePinKind implements Enumerator { * Returns the '<em><b>IO Hardware Pin Kind</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public static IOHardwarePinKind getByName(String name) { - for(int i = 0; i < VALUES_ARRAY.length; ++i) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { IOHardwarePinKind result = VALUES_ARRAY[i]; - if(result.getName().equals(name)) { + if (result.getName().equals(name)) { return result; } } @@ -218,7 +206,6 @@ public enum IOHardwarePinKind implements Enumerator { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ private final int value; @@ -226,7 +213,6 @@ public enum IOHardwarePinKind implements Enumerator { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ private final String name; @@ -234,7 +220,6 @@ public enum IOHardwarePinKind implements Enumerator { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ private final String literal; @@ -243,7 +228,6 @@ public enum IOHardwarePinKind implements Enumerator { * Only this class can construct instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ private IOHardwarePinKind(int value, String name, String literal) { @@ -255,43 +239,39 @@ public enum IOHardwarePinKind 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; } - + } //IOHardwarePinKind |