Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/ElementKind.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/ElementKind.java125
1 files changed, 84 insertions, 41 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/ElementKind.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/ElementKind.java
index c105ea18dee..0e015545bac 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/ElementKind.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/ElementKind.java
@@ -21,6 +21,7 @@ import org.eclipse.emf.common.util.Enumerator;
* <!-- begin-user-doc --> A representation of the literals of the enumeration ' <em><b>Element Kind</b></em>', and utility methods for working with
* them.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.dd.dg.DGPackage#getElementKind()
* @model
* @generated
@@ -30,6 +31,7 @@ public enum ElementKind implements Enumerator {
* The '<em><b>Canvas</b></em>' literal object.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
+ *
* @see #CANVAS_VALUE
* @generated
* @ordered
@@ -39,6 +41,7 @@ public enum ElementKind implements Enumerator {
* The '<em><b>Circle</b></em>' literal object.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
+ *
* @see #CIRCLE_VALUE
* @generated
* @ordered
@@ -48,6 +51,7 @@ public enum ElementKind implements Enumerator {
* The '<em><b>Clip Path</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #CLIP_PATH_VALUE
* @generated
* @ordered
@@ -57,6 +61,7 @@ public enum ElementKind implements Enumerator {
* The '<em><b>Ellipse</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #ELLIPSE_VALUE
* @generated
* @ordered
@@ -66,6 +71,7 @@ public enum ElementKind implements Enumerator {
* The '<em><b>Group</b></em>' literal object.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
+ *
* @see #GROUP_VALUE
* @generated
* @ordered
@@ -75,6 +81,7 @@ public enum ElementKind implements Enumerator {
* The '<em><b>Image</b></em>' literal object.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
+ *
* @see #IMAGE_VALUE
* @generated
* @ordered
@@ -84,6 +91,7 @@ public enum ElementKind implements Enumerator {
* The '<em><b>Line</b></em>' literal object.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
+ *
* @see #LINE_VALUE
* @generated
* @ordered
@@ -93,6 +101,7 @@ public enum ElementKind implements Enumerator {
* The '<em><b>Marker</b></em>' literal object.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
+ *
* @see #MARKER_VALUE
* @generated
* @ordered
@@ -102,6 +111,7 @@ public enum ElementKind implements Enumerator {
* The '<em><b>Path</b></em>' literal object.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
+ *
* @see #PATH_VALUE
* @generated
* @ordered
@@ -111,6 +121,7 @@ public enum ElementKind implements Enumerator {
* The '<em><b>Polygon</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #POLYGON_VALUE
* @generated
* @ordered
@@ -120,6 +131,7 @@ public enum ElementKind implements Enumerator {
* The '<em><b>Polyline</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #POLYLINE_VALUE
* @generated
* @ordered
@@ -129,6 +141,7 @@ public enum ElementKind implements Enumerator {
* The '<em><b>Rectangle</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #RECTANGLE_VALUE
* @generated
* @ordered
@@ -138,6 +151,7 @@ public enum ElementKind implements Enumerator {
* The '<em><b>Text</b></em>' literal object.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
+ *
* @see #TEXT_VALUE
* @generated
* @ordered
@@ -147,6 +161,7 @@ public enum ElementKind implements Enumerator {
* The '<em><b>Use</b></em>' literal object.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
+ *
* @see #USE_VALUE
* @generated
* @ordered
@@ -160,6 +175,7 @@ public enum ElementKind implements Enumerator {
* If the meaning of '<em><b>Canvas</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #CANVAS
* @model name="canvas"
* @generated
@@ -174,6 +190,7 @@ public enum ElementKind implements Enumerator {
* If the meaning of '<em><b>Circle</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #CIRCLE
* @model name="circle"
* @generated
@@ -188,6 +205,7 @@ public enum ElementKind implements Enumerator {
* If the meaning of '<em><b>Clip Path</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #CLIP_PATH
* @model name="clipPath"
* @generated
@@ -202,6 +220,7 @@ public enum ElementKind implements Enumerator {
* If the meaning of '<em><b>Ellipse</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #ELLIPSE
* @model name="ellipse"
* @generated
@@ -216,6 +235,7 @@ public enum ElementKind implements Enumerator {
* If the meaning of '<em><b>Group</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #GROUP
* @model name="group"
* @generated
@@ -230,6 +250,7 @@ public enum ElementKind implements Enumerator {
* If the meaning of '<em><b>Image</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #IMAGE
* @model name="image"
* @generated
@@ -244,6 +265,7 @@ public enum ElementKind implements Enumerator {
* If the meaning of '<em><b>Line</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #LINE
* @model name="line"
* @generated
@@ -258,6 +280,7 @@ public enum ElementKind implements Enumerator {
* If the meaning of '<em><b>Marker</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #MARKER
* @model name="marker"
* @generated
@@ -272,6 +295,7 @@ public enum ElementKind implements Enumerator {
* If the meaning of '<em><b>Path</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #PATH
* @model name="path"
* @generated
@@ -286,6 +310,7 @@ public enum ElementKind implements Enumerator {
* If the meaning of '<em><b>Polygon</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #POLYGON
* @model name="polygon"
* @generated
@@ -300,6 +325,7 @@ public enum ElementKind implements Enumerator {
* If the meaning of '<em><b>Polyline</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #POLYLINE
* @model name="polyline"
* @generated
@@ -314,6 +340,7 @@ public enum ElementKind implements Enumerator {
* If the meaning of '<em><b>Rectangle</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #RECTANGLE
* @model name="rectangle"
* @generated
@@ -328,6 +355,7 @@ public enum ElementKind implements Enumerator {
* If the meaning of '<em><b>Text</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #TEXT
* @model name="text"
* @generated
@@ -342,6 +370,7 @@ public enum ElementKind implements Enumerator {
* If the meaning of '<em><b>Use</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #USE
* @model name="use"
* @generated
@@ -355,26 +384,12 @@ public enum ElementKind implements Enumerator {
*
* @generated
*/
- private static final ElementKind[] VALUES_ARRAY = new ElementKind[] {
- CANVAS,
- CIRCLE,
- CLIP_PATH,
- ELLIPSE,
- GROUP,
- IMAGE,
- LINE,
- MARKER,
- PATH,
- POLYGON,
- POLYLINE,
- RECTANGLE,
- TEXT,
- USE,
- };
+ private static final ElementKind[] VALUES_ARRAY = new ElementKind[]{ CANVAS, CIRCLE, CLIP_PATH, ELLIPSE, GROUP, IMAGE, LINE, MARKER, PATH, POLYGON, POLYLINE, RECTANGLE, TEXT, USE, };
/**
* A public read-only list of all the '<em><b>Element Kind</b></em>' enumerators.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public static final List<ElementKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
@@ -382,14 +397,16 @@ public enum ElementKind implements Enumerator {
/**
* Returns the '<em><b>Element Kind</b></em>' literal with the specified literal value.
* <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param literal the literal.
+ *
+ * @param literal
+ * the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static ElementKind get(String literal) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ for(int i = 0; i < VALUES_ARRAY.length; ++i) {
ElementKind result = VALUES_ARRAY[i];
- if (result.toString().equals(literal)) {
+ if(result.toString().equals(literal)) {
return result;
}
}
@@ -399,14 +416,16 @@ public enum ElementKind implements Enumerator {
/**
* Returns the '<em><b>Element Kind</b></em>' literal with the specified name.
* <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param name the name.
+ *
+ * @param name
+ * the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static ElementKind getByName(String name) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ for(int i = 0; i < VALUES_ARRAY.length; ++i) {
ElementKind result = VALUES_ARRAY[i];
- if (result.getName().equals(name)) {
+ if(result.getName().equals(name)) {
return result;
}
}
@@ -416,44 +435,63 @@ public enum ElementKind implements Enumerator {
/**
* Returns the '<em><b>Element Kind</b></em>' literal with the specified integer value.
* <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the integer value.
+ *
+ * @param value
+ * the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static ElementKind get(int value) {
- switch (value) {
- case CANVAS_VALUE: return CANVAS;
- case CIRCLE_VALUE: return CIRCLE;
- case CLIP_PATH_VALUE: return CLIP_PATH;
- case ELLIPSE_VALUE: return ELLIPSE;
- case GROUP_VALUE: return GROUP;
- case IMAGE_VALUE: return IMAGE;
- case LINE_VALUE: return LINE;
- case MARKER_VALUE: return MARKER;
- case PATH_VALUE: return PATH;
- case POLYGON_VALUE: return POLYGON;
- case POLYLINE_VALUE: return POLYLINE;
- case RECTANGLE_VALUE: return RECTANGLE;
- case TEXT_VALUE: return TEXT;
- case USE_VALUE: return USE;
+ switch(value) {
+ case CANVAS_VALUE:
+ return CANVAS;
+ case CIRCLE_VALUE:
+ return CIRCLE;
+ case CLIP_PATH_VALUE:
+ return CLIP_PATH;
+ case ELLIPSE_VALUE:
+ return ELLIPSE;
+ case GROUP_VALUE:
+ return GROUP;
+ case IMAGE_VALUE:
+ return IMAGE;
+ case LINE_VALUE:
+ return LINE;
+ case MARKER_VALUE:
+ return MARKER;
+ case PATH_VALUE:
+ return PATH;
+ case POLYGON_VALUE:
+ return POLYGON;
+ case POLYLINE_VALUE:
+ return POLYLINE;
+ case RECTANGLE_VALUE:
+ return RECTANGLE;
+ case TEXT_VALUE:
+ return TEXT;
+ case USE_VALUE:
+ return USE;
}
return null;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
private final String literal;
@@ -462,6 +500,7 @@ public enum ElementKind implements Enumerator {
* Only this class can construct instances.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
+ *
* @generated
*/
private ElementKind(int value, String name, String literal) {
@@ -472,31 +511,35 @@ public enum ElementKind implements Enumerator {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public int getValue() {
- return value;
+ return value;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public String getName() {
- return name;
+ return name;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @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 -->
+ *
* @generated
*/
@Override

Back to the top