Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.sirius.tests.rcptt.properties/src-gen/org/eclipse/sirius/tests/rcptt/properties/propertiestests/TestEnum.java')
-rw-r--r--plugins/org.eclipse.sirius.tests.rcptt.properties/src-gen/org/eclipse/sirius/tests/rcptt/properties/propertiestests/TestEnum.java248
1 files changed, 248 insertions, 0 deletions
diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties/src-gen/org/eclipse/sirius/tests/rcptt/properties/propertiestests/TestEnum.java b/plugins/org.eclipse.sirius.tests.rcptt.properties/src-gen/org/eclipse/sirius/tests/rcptt/properties/propertiestests/TestEnum.java
new file mode 100644
index 0000000000..71b286188e
--- /dev/null
+++ b/plugins/org.eclipse.sirius.tests.rcptt.properties/src-gen/org/eclipse/sirius/tests/rcptt/properties/propertiestests/TestEnum.java
@@ -0,0 +1,248 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * 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.htm
+ */
+package org.eclipse.sirius.tests.rcptt.properties.propertiestests;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc --> A representation of the literals of the enumeration '
+ * <em><b>Test Enum</b></em>', and utility methods for working with them. <!--
+ * end-user-doc -->
+ *
+ * @see org.eclipse.sirius.tests.rcptt.properties.propertiestests.PropertiestestsPackage#getTestEnum()
+ * @model
+ * @generated
+ */
+public enum TestEnum implements Enumerator {
+ /**
+ * The '<em><b>Literal1</b></em>' literal object. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #LITERAL1_VALUE
+ * @generated
+ * @ordered
+ */
+ LITERAL1(0, "Literal1", "Literal1"),
+
+ /**
+ * The '<em><b>Literal2</b></em>' literal object. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #LITERAL2_VALUE
+ * @generated
+ * @ordered
+ */
+ LITERAL2(1, "Literal2", "Literal2"),
+
+ /**
+ * The '<em><b>Literal3</b></em>' literal object. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #LITERAL3_VALUE
+ * @generated
+ * @ordered
+ */
+ LITERAL3(2, "Literal3", "Literal3");
+
+ /**
+ * The '<em><b>Literal1</b></em>' literal value. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Literal1</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @see #LITERAL1
+ * @model name="Literal1"
+ * @generated
+ * @ordered
+ */
+ public static final int LITERAL1_VALUE = 0;
+
+ /**
+ * The '<em><b>Literal2</b></em>' literal value. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Literal2</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @see #LITERAL2
+ * @model name="Literal2"
+ * @generated
+ * @ordered
+ */
+ public static final int LITERAL2_VALUE = 1;
+
+ /**
+ * The '<em><b>Literal3</b></em>' literal value. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Literal3</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @see #LITERAL3
+ * @model name="Literal3"
+ * @generated
+ * @ordered
+ */
+ public static final int LITERAL3_VALUE = 2;
+
+ /**
+ * An array of all the '<em><b>Test Enum</b></em>' enumerators. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private static final TestEnum[] VALUES_ARRAY = new TestEnum[] { LITERAL1, LITERAL2, LITERAL3, };
+
+ /**
+ * A public read-only list of all the '<em><b>Test Enum</b></em>'
+ * enumerators. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static final List<TestEnum> VALUES = Collections.unmodifiableList(Arrays.asList(TestEnum.VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Test Enum</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 TestEnum get(String literal) {
+ for (TestEnum result : TestEnum.VALUES_ARRAY) {
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Test Enum</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 TestEnum getByName(String name) {
+ for (TestEnum result : TestEnum.VALUES_ARRAY) {
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Test Enum</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 TestEnum get(int value) {
+ switch (value) {
+ case LITERAL1_VALUE:
+ return LITERAL1;
+ case LITERAL2_VALUE:
+ return LITERAL2;
+ case LITERAL3_VALUE:
+ return LITERAL3;
+ }
+ 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 --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ private TestEnum(int value, String name, String literal) {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public int getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getLiteral() {
+ 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;
+ }
+
+} // TestEnum

Back to the top