Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeUnitKind.java')
-rw-r--r--deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeUnitKind.java354
1 files changed, 354 insertions, 0 deletions
diff --git a/deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeUnitKind.java b/deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeUnitKind.java
new file mode 100644
index 00000000000..191af822567
--- /dev/null
+++ b/deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeUnitKind.java
@@ -0,0 +1,354 @@
+/*****************************************************************************
+ * Copyright (c) 2010 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:
+ * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.MARTE_Library.TimeLibrary;
+
+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>Time Unit Kind</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeLibraryPackage#getTimeUnitKind()
+ * @model
+ * @generated
+ */
+public enum TimeUnitKind implements Enumerator {
+ /**
+ * The '<em><b>S</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #S_VALUE
+ * @generated
+ * @ordered
+ */
+ S(0, "s", "s"),
+
+ /**
+ * The '<em><b>Ms</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #MS_VALUE
+ * @generated
+ * @ordered
+ */
+ MS(1, "ms", "ms"),
+
+ /**
+ * The '<em><b>Us</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #US_VALUE
+ * @generated
+ * @ordered
+ */
+ US(2, "us", "us"),
+
+ /**
+ * The '<em><b>Ns</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #NS_VALUE
+ * @generated
+ * @ordered
+ */
+ NS(3, "ns", "ns"),
+
+ /**
+ * The '<em><b>Min</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #MIN_VALUE
+ * @generated
+ * @ordered
+ */
+ MIN(4, "min", "min"),
+
+ /**
+ * The '<em><b>Hrs</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #HRS_VALUE
+ * @generated
+ * @ordered
+ */
+ HRS(5, "hrs", "hrs"),
+
+ /**
+ * The '<em><b>Day</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #DAY_VALUE
+ * @generated
+ * @ordered
+ */
+ DAY(6, "day", "day");
+
+ /**
+ * The '<em><b>S</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>S</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #S
+ * @model name="s"
+ * @generated
+ * @ordered
+ */
+ public static final int S_VALUE = 0;
+
+ /**
+ * The '<em><b>Ms</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Ms</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #MS
+ * @model name="ms"
+ * @generated
+ * @ordered
+ */
+ public static final int MS_VALUE = 1;
+
+ /**
+ * The '<em><b>Us</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Us</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #US
+ * @model name="us"
+ * @generated
+ * @ordered
+ */
+ public static final int US_VALUE = 2;
+
+ /**
+ * The '<em><b>Ns</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Ns</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #NS
+ * @model name="ns"
+ * @generated
+ * @ordered
+ */
+ public static final int NS_VALUE = 3;
+
+ /**
+ * The '<em><b>Min</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Min</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #MIN
+ * @model name="min"
+ * @generated
+ * @ordered
+ */
+ public static final int MIN_VALUE = 4;
+
+ /**
+ * The '<em><b>Hrs</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Hrs</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #HRS
+ * @model name="hrs"
+ * @generated
+ * @ordered
+ */
+ public static final int HRS_VALUE = 5;
+
+ /**
+ * The '<em><b>Day</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Day</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #DAY
+ * @model name="day"
+ * @generated
+ * @ordered
+ */
+ public static final int DAY_VALUE = 6;
+
+ /**
+ * An array of all the '<em><b>Time Unit Kind</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final TimeUnitKind[] VALUES_ARRAY =
+ new TimeUnitKind[] {
+ S,
+ MS,
+ US,
+ NS,
+ MIN,
+ HRS,
+ DAY,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Time Unit Kind</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<TimeUnitKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Time Unit Kind</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static TimeUnitKind get(String literal) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ TimeUnitKind result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Time Unit Kind</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static TimeUnitKind getByName(String name) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ TimeUnitKind result = VALUES_ARRAY[i];
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Time Unit Kind</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static TimeUnitKind get(int value) {
+ switch (value) {
+ case S_VALUE: return S;
+ case MS_VALUE: return MS;
+ case US_VALUE: return US;
+ case NS_VALUE: return NS;
+ case MIN_VALUE: return MIN;
+ case HRS_VALUE: return HRS;
+ case DAY_VALUE: return DAY;
+ }
+ 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 TimeUnitKind(int value, String name, String literal) {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ 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;
+ }
+
+} //TimeUnitKind

Back to the top