Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/FontDecoration.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/FontDecoration.java83
1 files changed, 35 insertions, 48 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/FontDecoration.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/FontDecoration.java
index c90e039af48..299a0162a7f 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/FontDecoration.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/FontDecoration.java
@@ -21,16 +21,15 @@ import org.eclipse.emf.common.util.Enumerator;
* <!-- begin-user-doc --> A representation of the literals of the enumeration '
* <em><b>Font Decoration</b></em>', and utility methods for working with them.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.dd.dg.DGPackage#getFontDecoration()
* @model
* @generated
*/
public enum FontDecoration implements Enumerator {
/**
- * The '<em><b>Underline</b></em>' literal object. <!-- begin-user-doc -->
+ * The '<em><b>Underline</b></em>' literal object.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #UNDERLINE_VALUE
* @generated
* @ordered
@@ -38,9 +37,9 @@ public enum FontDecoration implements Enumerator {
UNDERLINE(0, "underline", "underline"),
/**
- * The '<em><b>Overline</b></em>' literal object. <!-- begin-user-doc -->
+ * The '<em><b>Overline</b></em>' literal object.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #OVERLINE_VALUE
* @generated
* @ordered
@@ -48,9 +47,9 @@ public enum FontDecoration implements Enumerator {
OVERLINE(1, "overline", "overline"),
/**
- * The '<em><b>Line Through</b></em>' literal object. <!-- begin-user-doc
+ * The '<em><b>Line Through</b></em>' literal object.
+ * <!-- begin-user-doc
* --> <!-- end-user-doc -->
- *
* @see #LINE_THROUGH_VALUE
* @generated
* @ordered
@@ -58,13 +57,13 @@ public enum FontDecoration implements Enumerator {
LINE_THROUGH(2, "lineThrough", "lineThrough");
/**
- * The '<em><b>Underline</b></em>' literal value. <!-- begin-user-doc -->
+ * The '<em><b>Underline</b></em>' literal value.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Underline</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #UNDERLINE
* @model name="underline"
* @generated
@@ -73,13 +72,13 @@ public enum FontDecoration implements Enumerator {
public static final int UNDERLINE_VALUE = 0;
/**
- * The '<em><b>Overline</b></em>' literal value. <!-- begin-user-doc -->
+ * The '<em><b>Overline</b></em>' literal value.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Overline</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #OVERLINE
* @model name="overline"
* @generated
@@ -88,13 +87,13 @@ public enum FontDecoration implements Enumerator {
public static final int OVERLINE_VALUE = 1;
/**
- * The '<em><b>Line Through</b></em>' literal value. <!-- begin-user-doc -->
+ * The '<em><b>Line Through</b></em>' literal value.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Line Through</b></em>' literal object isn't
* clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #LINE_THROUGH
* @model name="lineThrough"
* @generated
@@ -109,21 +108,21 @@ public enum FontDecoration implements Enumerator {
* @generated
*/
private static final FontDecoration[] VALUES_ARRAY = new FontDecoration[] {
- UNDERLINE, OVERLINE, LINE_THROUGH, };
+ UNDERLINE,
+ OVERLINE,
+ LINE_THROUGH,
+ };
/**
- * A public read-only list of all the '<em><b>Font Decoration</b></em>'
- * enumerators. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * A public read-only list of all the '<em><b>Font Decoration</b></em>' enumerators.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
- public static final List<FontDecoration> VALUES = Collections
- .unmodifiableList(Arrays.asList(VALUES_ARRAY));
+ public static final List<FontDecoration> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
- * Returns the '<em><b>Font Decoration</b></em>' literal with the specified
- * literal value. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Returns the '<em><b>Font Decoration</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static FontDecoration get(String literal) {
@@ -137,9 +136,8 @@ public enum FontDecoration implements Enumerator {
}
/**
- * Returns the '<em><b>Font Decoration</b></em>' literal with the specified
- * name. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Returns the '<em><b>Font Decoration</b></em>' literal with the specified name.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static FontDecoration getByName(String name) {
@@ -153,48 +151,41 @@ public enum FontDecoration implements Enumerator {
}
/**
- * Returns the '<em><b>Font Decoration</b></em>' literal with the specified
- * integer value. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Returns the '<em><b>Font Decoration</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static FontDecoration get(int value) {
switch (value) {
- case UNDERLINE_VALUE:
- return UNDERLINE;
- case OVERLINE_VALUE:
- return OVERLINE;
- case LINE_THROUGH_VALUE:
- return LINE_THROUGH;
+ case UNDERLINE_VALUE: return UNDERLINE;
+ case OVERLINE_VALUE: return OVERLINE;
+ case LINE_THROUGH_VALUE: return LINE_THROUGH;
}
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;
/**
- * Only this class can construct instances. <!-- begin-user-doc --> <!--
+ * Only this class can construct instances.
+ * <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
* @generated
*/
private FontDecoration(int value, String name, String literal) {
@@ -205,35 +196,31 @@ public enum FontDecoration 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 -->
- *
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override

Back to the top