Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/UmlCompartmentKind.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/UmlCompartmentKind.java54
1 files changed, 33 insertions, 21 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/UmlCompartmentKind.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/UmlCompartmentKind.java
index 426a00d7b0d..2d4b6c8f5b1 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/UmlCompartmentKind.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src/org/eclipse/papyrus/umldi/UmlCompartmentKind.java
@@ -22,6 +22,7 @@ import org.eclipse.emf.common.util.Enumerator;
* A representation of the literals of the enumeration '<em><b>Uml Compartment Kind</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.umldi.UMLDIPackage#getUmlCompartmentKind()
* @model
* @generated
@@ -31,16 +32,17 @@ public enum UmlCompartmentKind implements Enumerator {
* The '<em><b>Attributes</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #ATTRIBUTES_VALUE
* @generated
* @ordered
*/
ATTRIBUTES(0, "attributes", "attributes"),
-
/**
* The '<em><b>Operations</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #OPERATIONS_VALUE
* @generated
* @ordered
@@ -51,10 +53,10 @@ public enum UmlCompartmentKind implements Enumerator {
* The '<em><b>Attributes</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Attributes</b></em>' literal object isn't clear,
- * there really should be more of a description here...
+ * If the meaning of '<em><b>Attributes</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #ATTRIBUTES
* @model name="attributes"
* @generated
@@ -66,10 +68,10 @@ public enum UmlCompartmentKind implements Enumerator {
* The '<em><b>Operations</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Operations</b></em>' literal object isn't clear,
- * there really should be more of a description here...
+ * If the meaning of '<em><b>Operations</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @see #OPERATIONS
* @model name="operations"
* @generated
@@ -81,18 +83,16 @@ public enum UmlCompartmentKind implements Enumerator {
* An array of all the '<em><b>Uml Compartment Kind</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- private static final UmlCompartmentKind[] VALUES_ARRAY =
- new UmlCompartmentKind[] {
- ATTRIBUTES,
- OPERATIONS,
- };
+ private static final UmlCompartmentKind[] VALUES_ARRAY = new UmlCompartmentKind[]{ ATTRIBUTES, OPERATIONS, };
/**
* A public read-only list of all the '<em><b>Uml Compartment Kind</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static final List<UmlCompartmentKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
@@ -101,12 +101,13 @@ public enum UmlCompartmentKind implements Enumerator {
* Returns the '<em><b>Uml Compartment Kind</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static UmlCompartmentKind get(String literal) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ for(int i = 0; i < VALUES_ARRAY.length; ++i) {
UmlCompartmentKind result = VALUES_ARRAY[i];
- if (result.toString().equals(literal)) {
+ if(result.toString().equals(literal)) {
return result;
}
}
@@ -117,12 +118,13 @@ public enum UmlCompartmentKind implements Enumerator {
* Returns the '<em><b>Uml Compartment Kind</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static UmlCompartmentKind getByName(String name) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ for(int i = 0; i < VALUES_ARRAY.length; ++i) {
UmlCompartmentKind result = VALUES_ARRAY[i];
- if (result.getName().equals(name)) {
+ if(result.getName().equals(name)) {
return result;
}
}
@@ -133,12 +135,15 @@ public enum UmlCompartmentKind implements Enumerator {
* Returns the '<em><b>Uml Compartment Kind</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static UmlCompartmentKind get(int value) {
- switch (value) {
- case ATTRIBUTES_VALUE: return ATTRIBUTES;
- case OPERATIONS_VALUE: return OPERATIONS;
+ switch(value) {
+ case ATTRIBUTES_VALUE:
+ return ATTRIBUTES;
+ case OPERATIONS_VALUE:
+ return OPERATIONS;
}
return null;
}
@@ -146,6 +151,7 @@ public enum UmlCompartmentKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private final int value;
@@ -153,6 +159,7 @@ public enum UmlCompartmentKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private final String name;
@@ -160,6 +167,7 @@ public enum UmlCompartmentKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private final String literal;
@@ -168,6 +176,7 @@ public enum UmlCompartmentKind implements Enumerator {
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private UmlCompartmentKind(int value, String name, String literal) {
@@ -179,39 +188,42 @@ public enum UmlCompartmentKind 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
public String toString() {
return literal;
}
-
} //UmlCompartmentKind

Back to the top