| /** |
| * 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.extension.model.extension; |
| |
| 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>YSearch Wildcards</b></em>', |
| * and utility methods for working with them. |
| * <!-- end-user-doc --> |
| * @see org.eclipse.osbp.ecview.core.extension.model.extension.ExtensionModelPackage#getYSearchWildcards() |
| * @model |
| * @generated |
| */ |
| public enum YSearchWildcards implements Enumerator { |
| /** |
| * The '<em><b>GT</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #GT_VALUE |
| * @generated |
| * @ordered |
| */ |
| GT(0, "GT", "GT"), |
| |
| /** |
| * The '<em><b>GE</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #GE_VALUE |
| * @generated |
| * @ordered |
| */ |
| GE(1, "GE", "GE"), |
| |
| /** |
| * The '<em><b>LT</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #LT_VALUE |
| * @generated |
| * @ordered |
| */ |
| LT(2, "LT", "LT"), |
| |
| /** |
| * The '<em><b>LE</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #LE_VALUE |
| * @generated |
| * @ordered |
| */ |
| LE(3, "LE", "LE"), |
| |
| /** |
| * The '<em><b>EQ</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #EQ_VALUE |
| * @generated |
| * @ordered |
| */ |
| EQ(4, "EQ", "EQ"), |
| |
| /** |
| * The '<em><b>NE</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #NE_VALUE |
| * @generated |
| * @ordered |
| */ |
| NE(5, "NE", "NE"), |
| |
| /** |
| * The '<em><b>ANY</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #ANY_VALUE |
| * @generated |
| * @ordered |
| */ |
| ANY(6, "ANY", "ANY"); |
| |
| /** |
| * The '<em><b>GT</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>GT</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * |
| * <!-- end-user-doc --> |
| * @see #GT |
| * @model |
| * @generated |
| * @ordered |
| */ |
| public static final int GT_VALUE = 0; |
| |
| /** |
| * The '<em><b>GE</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>GE</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * |
| * <!-- end-user-doc --> |
| * @see #GE |
| * @model |
| * @generated |
| * @ordered |
| */ |
| public static final int GE_VALUE = 1; |
| |
| /** |
| * The '<em><b>LT</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>LT</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * |
| * <!-- end-user-doc --> |
| * @see #LT |
| * @model |
| * @generated |
| * @ordered |
| */ |
| public static final int LT_VALUE = 2; |
| |
| /** |
| * The '<em><b>LE</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>LE</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * |
| * <!-- end-user-doc --> |
| * @see #LE |
| * @model |
| * @generated |
| * @ordered |
| */ |
| public static final int LE_VALUE = 3; |
| |
| /** |
| * The '<em><b>EQ</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>EQ</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * |
| * <!-- end-user-doc --> |
| * @see #EQ |
| * @model |
| * @generated |
| * @ordered |
| */ |
| public static final int EQ_VALUE = 4; |
| |
| /** |
| * The '<em><b>NE</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>NE</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * |
| * <!-- end-user-doc --> |
| * @see #NE |
| * @model |
| * @generated |
| * @ordered |
| */ |
| public static final int NE_VALUE = 5; |
| |
| /** |
| * The '<em><b>ANY</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>ANY</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * |
| * <!-- end-user-doc --> |
| * @see #ANY |
| * @model |
| * @generated |
| * @ordered |
| */ |
| public static final int ANY_VALUE = 6; |
| |
| /** |
| * An array of all the '<em><b>YSearch Wildcards</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private static final YSearchWildcards[] VALUES_ARRAY = |
| new YSearchWildcards[] { |
| GT, |
| GE, |
| LT, |
| LE, |
| EQ, |
| NE, |
| ANY, |
| }; |
| |
| /** |
| * A public read-only list of all the '<em><b>YSearch Wildcards</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static final List<YSearchWildcards> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); |
| |
| /** |
| * Returns the '<em><b>YSearch Wildcards</b></em>' literal with the specified literal value. |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * @generated |
| */ |
| public static YSearchWildcards get(String literal) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| YSearchWildcards result = VALUES_ARRAY[i]; |
| if (result.toString().equals(literal)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>YSearch Wildcards</b></em>' literal with the specified name. |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * @generated |
| */ |
| public static YSearchWildcards getByName(String name) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| YSearchWildcards result = VALUES_ARRAY[i]; |
| if (result.getName().equals(name)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>YSearch Wildcards</b></em>' literal with the specified integer value. |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * @generated |
| */ |
| public static YSearchWildcards get(int value) { |
| switch (value) { |
| case GT_VALUE: return GT; |
| case GE_VALUE: return GE; |
| case LT_VALUE: return LT; |
| case LE_VALUE: return LE; |
| case EQ_VALUE: return EQ; |
| case NE_VALUE: return NE; |
| case ANY_VALUE: return ANY; |
| } |
| 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 YSearchWildcards(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; |
| } |
| |
| } //YSearchWildcards |