Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/InterceptionKind.java')
-rw-r--r--extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/InterceptionKind.java65
1 files changed, 21 insertions, 44 deletions
diff --git a/extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/InterceptionKind.java b/extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/InterceptionKind.java
index 2bdc2c12bc2..24de3ce829e 100644
--- a/extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/InterceptionKind.java
+++ b/extraplugins/qompass-designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/InterceptionKind.java
@@ -28,9 +28,8 @@ import org.eclipse.emf.common.util.Enumerator;
* - "Some" = set of ports defined in interception rule
* - "AllOut/AllIn" = ports with required/provided ports only
* - "Matching" = kind of interceptor and component port need to match
- *
+ *
* <!-- end-model-doc -->
- *
* @see org.eclipse.papyrus.FCM.FCMPackage#getInterceptionKind()
* @model
* @generated
@@ -40,7 +39,6 @@ public enum InterceptionKind implements Enumerator {
* The '<em><b>Intercept Some</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #INTERCEPT_SOME_VALUE
* @generated
* @ordered
@@ -51,7 +49,6 @@ public enum InterceptionKind implements Enumerator {
* The '<em><b>Intercept All</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #INTERCEPT_ALL_VALUE
* @generated
* @ordered
@@ -62,7 +59,6 @@ public enum InterceptionKind implements Enumerator {
* The '<em><b>Intercept All Out</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #INTERCEPT_ALL_OUT_VALUE
* @generated
* @ordered
@@ -73,7 +69,6 @@ public enum InterceptionKind implements Enumerator {
* The '<em><b>Intercept All In</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #INTERCEPT_ALL_IN_VALUE
* @generated
* @ordered
@@ -84,7 +79,6 @@ public enum InterceptionKind implements Enumerator {
* The '<em><b>Intercept Matching</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #INTERCEPT_MATCHING_VALUE
* @generated
* @ordered
@@ -98,7 +92,6 @@ public enum InterceptionKind implements Enumerator {
* If the meaning of '<em><b>Intercept Some</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #INTERCEPT_SOME
* @model name="InterceptSome"
* @generated
@@ -113,7 +106,6 @@ public enum InterceptionKind implements Enumerator {
* If the meaning of '<em><b>Intercept All</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #INTERCEPT_ALL
* @model name="InterceptAll"
* @generated
@@ -128,7 +120,6 @@ public enum InterceptionKind implements Enumerator {
* If the meaning of '<em><b>Intercept All Out</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #INTERCEPT_ALL_OUT
* @model name="InterceptAllOut"
* @generated
@@ -143,7 +134,6 @@ public enum InterceptionKind implements Enumerator {
* If the meaning of '<em><b>Intercept All In</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #INTERCEPT_ALL_IN
* @model name="InterceptAllIn"
* @generated
@@ -158,7 +148,6 @@ public enum InterceptionKind implements Enumerator {
* If the meaning of '<em><b>Intercept Matching</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #INTERCEPT_MATCHING
* @model name="InterceptMatching"
* @generated
@@ -170,23 +159,21 @@ public enum InterceptionKind implements Enumerator {
* An array of all the '<em><b>Interception Kind</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private static final InterceptionKind[] VALUES_ARRAY =
new InterceptionKind[] {
- INTERCEPT_SOME,
- INTERCEPT_ALL,
- INTERCEPT_ALL_OUT,
- INTERCEPT_ALL_IN,
- INTERCEPT_MATCHING,
- };
+ INTERCEPT_SOME,
+ INTERCEPT_ALL,
+ INTERCEPT_ALL_OUT,
+ INTERCEPT_ALL_IN,
+ INTERCEPT_MATCHING,
+ };
/**
* A public read-only list of all the '<em><b>Interception Kind</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static final List<InterceptionKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
@@ -195,7 +182,8 @@ public enum InterceptionKind implements Enumerator {
* Returns the '<em><b>Interception Kind</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ * @param literal the literal.
+ * @return the matching enumerator or <code>null</code>.
* @generated
*/
public static InterceptionKind get(String literal) {
@@ -212,7 +200,8 @@ public enum InterceptionKind implements Enumerator {
* Returns the '<em><b>Interception Kind</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ * @param name the name.
+ * @return the matching enumerator or <code>null</code>.
* @generated
*/
public static InterceptionKind getByName(String name) {
@@ -229,21 +218,17 @@ public enum InterceptionKind implements Enumerator {
* Returns the '<em><b>Interception Kind</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ * @param value the integer value.
+ * @return the matching enumerator or <code>null</code>.
* @generated
*/
public static InterceptionKind get(int value) {
switch (value) {
- case INTERCEPT_SOME_VALUE:
- return INTERCEPT_SOME;
- case INTERCEPT_ALL_VALUE:
- return INTERCEPT_ALL;
- case INTERCEPT_ALL_OUT_VALUE:
- return INTERCEPT_ALL_OUT;
- case INTERCEPT_ALL_IN_VALUE:
- return INTERCEPT_ALL_IN;
- case INTERCEPT_MATCHING_VALUE:
- return INTERCEPT_MATCHING;
+ case INTERCEPT_SOME_VALUE: return INTERCEPT_SOME;
+ case INTERCEPT_ALL_VALUE: return INTERCEPT_ALL;
+ case INTERCEPT_ALL_OUT_VALUE: return INTERCEPT_ALL_OUT;
+ case INTERCEPT_ALL_IN_VALUE: return INTERCEPT_ALL_IN;
+ case INTERCEPT_MATCHING_VALUE: return INTERCEPT_MATCHING;
}
return null;
}
@@ -251,7 +236,6 @@ public enum InterceptionKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private final int value;
@@ -259,7 +243,6 @@ public enum InterceptionKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private final String name;
@@ -267,7 +250,6 @@ public enum InterceptionKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private final String literal;
@@ -276,7 +258,6 @@ public enum InterceptionKind implements Enumerator {
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private InterceptionKind(int value, String name, String literal) {
@@ -288,41 +269,37 @@ public enum InterceptionKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public int getValue() {
- return value;
+ return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public String getName() {
- return name;
+ return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public String getLiteral() {
- return literal;
+ return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override

Back to the top