| /** |
| * Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * 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: |
| * Florian Pirchner - Initial implementation |
| */ |
| package org.eclipse.osbp.ecview.core.common.model.core; |
| |
| import java.util.Arrays; |
| import java.util.Collections; |
| import java.util.List; |
| |
| import org.eclipse.emf.common.util.Enumerator; |
| |
| // TODO: Auto-generated Javadoc |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the literals of the enumeration '<em><b>YCompare</b></em>', |
| * and utility methods for working with them. |
| * <!-- end-user-doc --> |
| * @see org.eclipse.osbp.ecview.core.common.model.core.CoreModelPackage#getYCompare() |
| * @model |
| * @generated |
| */ |
| public enum YCompare implements Enumerator { |
| /** |
| * The '<em><b>Equal</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #EQUAL_VALUE |
| * @generated |
| * @ordered |
| */ |
| EQUAL(0, "Equal", "EQ"), |
| |
| /** |
| * The '<em><b>Greater Than</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #GREATER_THAN_VALUE |
| * @generated |
| * @ordered |
| */ |
| GREATER_THAN(1, "GreaterThan", "GT"), |
| |
| /** |
| * The '<em><b>Greater Equal</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #GREATER_EQUAL_VALUE |
| * @generated |
| * @ordered |
| */ |
| GREATER_EQUAL(2, "GreaterEqual", "GE"), |
| |
| /** |
| * The '<em><b>Lower Than</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #LOWER_THAN_VALUE |
| * @generated |
| * @ordered |
| */ |
| LOWER_THAN(3, "LowerThan", "LT"), |
| |
| /** |
| * The '<em><b>Lower Equal</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #LOWER_EQUAL_VALUE |
| * @generated |
| * @ordered |
| */ |
| LOWER_EQUAL(4, "LowerEqual", "LE"), |
| |
| /** |
| * The '<em><b>Not Equal</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #NOT_EQUAL_VALUE |
| * @generated |
| * @ordered |
| */ |
| NOT_EQUAL(5, "NotEqual", "NEQ"); |
| |
| /** |
| * The '<em><b>Equal</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>Equal</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * |
| * <!-- end-user-doc --> |
| * @see #EQUAL |
| * @model name="Equal" literal="EQ" |
| * @generated |
| * @ordered |
| */ |
| public static final int EQUAL_VALUE = 0; |
| |
| /** |
| * The '<em><b>Greater Than</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>Greater Than</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * |
| * <!-- end-user-doc --> |
| * @see #GREATER_THAN |
| * @model name="GreaterThan" literal="GT" |
| * @generated |
| * @ordered |
| */ |
| public static final int GREATER_THAN_VALUE = 1; |
| |
| /** |
| * The '<em><b>Greater Equal</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>Greater Equal</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * |
| * <!-- end-user-doc --> |
| * @see #GREATER_EQUAL |
| * @model name="GreaterEqual" literal="GE" |
| * @generated |
| * @ordered |
| */ |
| public static final int GREATER_EQUAL_VALUE = 2; |
| |
| /** |
| * The '<em><b>Lower Than</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>Lower Than</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * |
| * <!-- end-user-doc --> |
| * @see #LOWER_THAN |
| * @model name="LowerThan" literal="LT" |
| * @generated |
| * @ordered |
| */ |
| public static final int LOWER_THAN_VALUE = 3; |
| |
| /** |
| * The '<em><b>Lower Equal</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>Lower Equal</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * |
| * <!-- end-user-doc --> |
| * @see #LOWER_EQUAL |
| * @model name="LowerEqual" literal="LE" |
| * @generated |
| * @ordered |
| */ |
| public static final int LOWER_EQUAL_VALUE = 4; |
| |
| /** |
| * The '<em><b>Not Equal</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>Not Equal</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * |
| * <!-- end-user-doc --> |
| * @see #NOT_EQUAL |
| * @model name="NotEqual" literal="NEQ" |
| * @generated |
| * @ordered |
| */ |
| public static final int NOT_EQUAL_VALUE = 5; |
| |
| /** |
| * An array of all the '<em><b>YCompare</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private static final YCompare[] VALUES_ARRAY = |
| new YCompare[] { |
| EQUAL, |
| GREATER_THAN, |
| GREATER_EQUAL, |
| LOWER_THAN, |
| LOWER_EQUAL, |
| NOT_EQUAL, |
| }; |
| |
| /** |
| * A public read-only list of all the '<em><b>YCompare</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static final List<YCompare> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); |
| |
| /** |
| * Returns the '<em><b>YCompare</b></em>' literal with the specified literal value. |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * @generated |
| */ |
| public static YCompare get(String literal) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| YCompare result = VALUES_ARRAY[i]; |
| if (result.toString().equals(literal)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>YCompare</b></em>' literal with the specified name. |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * @generated |
| */ |
| public static YCompare getByName(String name) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| YCompare result = VALUES_ARRAY[i]; |
| if (result.getName().equals(name)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>YCompare</b></em>' literal with the specified integer value. |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * @generated |
| */ |
| public static YCompare get(int value) { |
| switch (value) { |
| case EQUAL_VALUE: return EQUAL; |
| case GREATER_THAN_VALUE: return GREATER_THAN; |
| case GREATER_EQUAL_VALUE: return GREATER_EQUAL; |
| case LOWER_THAN_VALUE: return LOWER_THAN; |
| case LOWER_EQUAL_VALUE: return LOWER_EQUAL; |
| case NOT_EQUAL_VALUE: return NOT_EQUAL; |
| } |
| 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 YCompare(int value, String name, String literal) { |
| this.value = value; |
| this.name = name; |
| this.literal = literal; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the <!-- begin-user-doc --> <!-- end-user-doc --> |
| * @generated |
| */ |
| public int getValue() { |
| return value; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the <!-- begin-user-doc --> <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getName() { |
| return name; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the <!-- 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; |
| } |
| |
| } //YCompare |