| /** |
| * Copyright (c) 2011, 2016 - 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 |
| * |
| * Based on ideas from Xtext, Xtend, Xcore |
| * |
| * Contributors: |
| * Joerg Riegel - Initial implementation |
| * |
| */ |
| package org.eclipse.osbp.xtext.datamartdsl; |
| |
| 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>Task Query Column Enum</b></em>', |
| * and utility methods for working with them. |
| * <!-- end-user-doc --> |
| * @see org.eclipse.osbp.xtext.datamartdsl.DatamartDSLPackage#getTaskQueryColumnEnum() |
| * @model |
| * @generated |
| */ |
| public enum TaskQueryColumnEnum implements Enumerator { |
| /** |
| * The '<em><b>P1</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #P1_VALUE |
| * @generated |
| * @ordered |
| */ |
| P1(0, "P1", "Name"), |
| |
| /** |
| * The '<em><b>P2</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #P2_VALUE |
| * @generated |
| * @ordered |
| */ |
| P2(0, "P2", "Priority"), |
| |
| /** |
| * The '<em><b>P3</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #P3_VALUE |
| * @generated |
| * @ordered |
| */ |
| P3(0, "P3", "Status"), |
| |
| /** |
| * The '<em><b>P4</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #P4_VALUE |
| * @generated |
| * @ordered |
| */ |
| P4(0, "P4", "Subject"), |
| |
| /** |
| * The '<em><b>P5</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #P5_VALUE |
| * @generated |
| * @ordered |
| */ |
| P5(0, "P5", "Description"), |
| |
| /** |
| * The '<em><b>P6</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #P6_VALUE |
| * @generated |
| * @ordered |
| */ |
| P6(0, "P6", "ExpirationTime"), |
| |
| /** |
| * The '<em><b>P7</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #P7_VALUE |
| * @generated |
| * @ordered |
| */ |
| P7(0, "P7", "CreatedOn"), |
| |
| /** |
| * The '<em><b>P8</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #P8_VALUE |
| * @generated |
| * @ordered |
| */ |
| P8(0, "P8", "CreatedBy"), |
| |
| /** |
| * The '<em><b>P9</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #P9_VALUE |
| * @generated |
| * @ordered |
| */ |
| P9(0, "P9", "ActivationTime"), |
| |
| /** |
| * The '<em><b>P10</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #P10_VALUE |
| * @generated |
| * @ordered |
| */ |
| P10(0, "P10", "ActualOwner"), |
| |
| /** |
| * The '<em><b>P11</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #P11_VALUE |
| * @generated |
| * @ordered |
| */ |
| P11(0, "P11", "TaskId"), |
| |
| /** |
| * The '<em><b>P12</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #P12_VALUE |
| * @generated |
| * @ordered |
| */ |
| P12(0, "P12", "ProcessId"), |
| |
| /** |
| * The '<em><b>P13</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #P13_VALUE |
| * @generated |
| * @ordered |
| */ |
| P13(0, "P13", "ProcessInstanceId"), |
| |
| /** |
| * The '<em><b>P14</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #P14_VALUE |
| * @generated |
| * @ordered |
| */ |
| P14(0, "P14", "ProcessSessionId"); |
| |
| /** |
| * The '<em><b>P1</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>P1</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #P1 |
| * @model literal="Name" |
| * @generated |
| * @ordered |
| */ |
| public static final int P1_VALUE = 0; |
| |
| /** |
| * The '<em><b>P2</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>P2</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #P2 |
| * @model literal="Priority" |
| * @generated |
| * @ordered |
| */ |
| public static final int P2_VALUE = 0; |
| |
| /** |
| * The '<em><b>P3</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>P3</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #P3 |
| * @model literal="Status" |
| * @generated |
| * @ordered |
| */ |
| public static final int P3_VALUE = 0; |
| |
| /** |
| * The '<em><b>P4</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>P4</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #P4 |
| * @model literal="Subject" |
| * @generated |
| * @ordered |
| */ |
| public static final int P4_VALUE = 0; |
| |
| /** |
| * The '<em><b>P5</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>P5</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #P5 |
| * @model literal="Description" |
| * @generated |
| * @ordered |
| */ |
| public static final int P5_VALUE = 0; |
| |
| /** |
| * The '<em><b>P6</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>P6</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #P6 |
| * @model literal="ExpirationTime" |
| * @generated |
| * @ordered |
| */ |
| public static final int P6_VALUE = 0; |
| |
| /** |
| * The '<em><b>P7</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>P7</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #P7 |
| * @model literal="CreatedOn" |
| * @generated |
| * @ordered |
| */ |
| public static final int P7_VALUE = 0; |
| |
| /** |
| * The '<em><b>P8</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>P8</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #P8 |
| * @model literal="CreatedBy" |
| * @generated |
| * @ordered |
| */ |
| public static final int P8_VALUE = 0; |
| |
| /** |
| * The '<em><b>P9</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>P9</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #P9 |
| * @model literal="ActivationTime" |
| * @generated |
| * @ordered |
| */ |
| public static final int P9_VALUE = 0; |
| |
| /** |
| * The '<em><b>P10</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>P10</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #P10 |
| * @model literal="ActualOwner" |
| * @generated |
| * @ordered |
| */ |
| public static final int P10_VALUE = 0; |
| |
| /** |
| * The '<em><b>P11</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>P11</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #P11 |
| * @model literal="TaskId" |
| * @generated |
| * @ordered |
| */ |
| public static final int P11_VALUE = 0; |
| |
| /** |
| * The '<em><b>P12</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>P12</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #P12 |
| * @model literal="ProcessId" |
| * @generated |
| * @ordered |
| */ |
| public static final int P12_VALUE = 0; |
| |
| /** |
| * The '<em><b>P13</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>P13</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #P13 |
| * @model literal="ProcessInstanceId" |
| * @generated |
| * @ordered |
| */ |
| public static final int P13_VALUE = 0; |
| |
| /** |
| * The '<em><b>P14</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of '<em><b>P14</b></em>' literal object isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @see #P14 |
| * @model literal="ProcessSessionId" |
| * @generated |
| * @ordered |
| */ |
| public static final int P14_VALUE = 0; |
| |
| /** |
| * An array of all the '<em><b>Task Query Column Enum</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private static final TaskQueryColumnEnum[] VALUES_ARRAY = |
| new TaskQueryColumnEnum[] { |
| P1, |
| P2, |
| P3, |
| P4, |
| P5, |
| P6, |
| P7, |
| P8, |
| P9, |
| P10, |
| P11, |
| P12, |
| P13, |
| P14, |
| }; |
| |
| /** |
| * A public read-only list of all the '<em><b>Task Query Column Enum</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static final List<TaskQueryColumnEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); |
| |
| /** |
| * Returns the '<em><b>Task Query Column 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 TaskQueryColumnEnum get(String literal) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| TaskQueryColumnEnum result = VALUES_ARRAY[i]; |
| if (result.toString().equals(literal)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>Task Query Column 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 TaskQueryColumnEnum getByName(String name) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| TaskQueryColumnEnum result = VALUES_ARRAY[i]; |
| if (result.getName().equals(name)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>Task Query Column 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 TaskQueryColumnEnum get(int value) { |
| switch (value) { |
| case P1_VALUE: return P1; |
| } |
| 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 TaskQueryColumnEnum(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; |
| } |
| |
| } //TaskQueryColumnEnum |