Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/DataFlowDirectionKind.java')
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/DataFlowDirectionKind.java122
1 files changed, 54 insertions, 68 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/DataFlowDirectionKind.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/DataFlowDirectionKind.java
index ae6cbcbb42c..045275db5c4 100644
--- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/DataFlowDirectionKind.java
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/DataFlowDirectionKind.java
@@ -1,14 +1,5 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Saadia Dhouib (CEA LIST) saadia.dhouib@cea.fr - Initial API and implementation
- *****************************************************************************/
+/**
+ */
package org.eclipse.papyrus.RobotML;
import java.util.Arrays;
@@ -17,12 +8,12 @@ import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
+// TODO: Auto-generated Javadoc
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Data Flow Direction Kind</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.RobotML.RobotMLPackage#getDataFlowDirectionKind()
* @model
* @generated
@@ -32,7 +23,6 @@ public enum DataFlowDirectionKind implements Enumerator {
* The '<em><b>In</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #IN_VALUE
* @generated
* @ordered
@@ -43,7 +33,6 @@ public enum DataFlowDirectionKind implements Enumerator {
* The '<em><b>Out</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #OUT_VALUE
* @generated
* @ordered
@@ -54,7 +43,6 @@ public enum DataFlowDirectionKind implements Enumerator {
* The '<em><b>Inout</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #INOUT_VALUE
* @generated
* @ordered
@@ -65,10 +53,10 @@ public enum DataFlowDirectionKind implements Enumerator {
* The '<em><b>In</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>In</b></em>' literal object isn't clear, there really should be more of a description here...
+ * If the meaning of '<em><b>In</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #IN
* @model name="in"
* @generated
@@ -80,10 +68,10 @@ public enum DataFlowDirectionKind implements Enumerator {
* The '<em><b>Out</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Out</b></em>' literal object isn't clear, there really should be more of a description here...
+ * If the meaning of '<em><b>Out</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #OUT
* @model name="out"
* @generated
@@ -95,10 +83,10 @@ public enum DataFlowDirectionKind implements Enumerator {
* The '<em><b>Inout</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Inout</b></em>' literal object isn't clear, there really should be more of a description here...
+ * If the meaning of '<em><b>Inout</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #INOUT
* @model name="inout"
* @generated
@@ -110,16 +98,19 @@ public enum DataFlowDirectionKind implements Enumerator {
* An array of all the '<em><b>Data Flow Direction Kind</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
- private static final DataFlowDirectionKind[] VALUES_ARRAY = new DataFlowDirectionKind[]{ IN, OUT, INOUT, };
+ private static final DataFlowDirectionKind[] VALUES_ARRAY =
+ new DataFlowDirectionKind[] {
+ IN,
+ OUT,
+ INOUT,
+ };
/**
* A public read-only list of all the '<em><b>Data Flow Direction Kind</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static final List<DataFlowDirectionKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
@@ -128,13 +119,15 @@ public enum DataFlowDirectionKind implements Enumerator {
* Returns the '<em><b>Data Flow Direction Kind</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
+ * @param literal the literal
+ * @return the data flow direction kind
* @generated
*/
public static DataFlowDirectionKind get(String literal) {
- for(int i = 0; i < VALUES_ARRAY.length; ++i) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
DataFlowDirectionKind result = VALUES_ARRAY[i];
- if(result.toString().equals(literal)) {
+ if (result.toString().equals(literal)) {
return result;
}
}
@@ -145,13 +138,15 @@ public enum DataFlowDirectionKind implements Enumerator {
* Returns the '<em><b>Data Flow Direction Kind</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
+ * @param name the name
+ * @return the by name
* @generated
*/
public static DataFlowDirectionKind getByName(String name) {
- for(int i = 0; i < VALUES_ARRAY.length; ++i) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
DataFlowDirectionKind result = VALUES_ARRAY[i];
- if(result.getName().equals(name)) {
+ if (result.getName().equals(name)) {
return result;
}
}
@@ -162,50 +157,37 @@ public enum DataFlowDirectionKind implements Enumerator {
* Returns the '<em><b>Data Flow Direction Kind</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
+ * @param value the value
+ * @return the data flow direction kind
* @generated
*/
public static DataFlowDirectionKind get(int value) {
- switch(value) {
- case IN_VALUE:
- return IN;
- case OUT_VALUE:
- return OUT;
- case INOUT_VALUE:
- return INOUT;
+ switch (value) {
+ case IN_VALUE: return IN;
+ case OUT_VALUE: return OUT;
+ case INOUT_VALUE: return INOUT;
}
return null;
}
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
+ /** <!-- begin-user-doc --> <!-- end-user-doc -->. @generated */
private final int value;
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
+ /** <!-- begin-user-doc --> <!-- end-user-doc -->. @generated */
private final String name;
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
+ /** <!-- begin-user-doc --> <!-- end-user-doc -->. @generated */
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
+ * @param value the value
+ * @param name the name
+ * @param literal the literal
* @generated
*/
private DataFlowDirectionKind(int value, String name, String literal) {
@@ -216,44 +198,48 @@ public enum DataFlowDirectionKind implements Enumerator {
/**
* <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
+ * <!-- end-user-doc -->.
+ *
+ * @return the value
* @generated
*/
public int getValue() {
- return value;
+ return value;
}
/**
* <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
+ * <!-- end-user-doc -->.
+ *
+ * @return the name
* @generated
*/
public String getName() {
- return name;
+ return name;
}
/**
* <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
+ * <!-- end-user-doc -->.
+ *
+ * @return the literal
* @generated
*/
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 -->
- *
+ *
+ * @return the string
* @generated
*/
@Override
public String toString() {
return literal;
}
-
+
} //DataFlowDirectionKind

Back to the top