diff options
Diffstat (limited to 'plugins/infra/org.eclipse.papyrus.infra.filters/src-gen/org/eclipse/papyrus/infra/filters/OperatorKind.java')
-rw-r--r-- | plugins/infra/org.eclipse.papyrus.infra.filters/src-gen/org/eclipse/papyrus/infra/filters/OperatorKind.java | 311 |
1 files changed, 311 insertions, 0 deletions
diff --git a/plugins/infra/org.eclipse.papyrus.infra.filters/src-gen/org/eclipse/papyrus/infra/filters/OperatorKind.java b/plugins/infra/org.eclipse.papyrus.infra.filters/src-gen/org/eclipse/papyrus/infra/filters/OperatorKind.java new file mode 100644 index 00000000000..cdc27b0128e --- /dev/null +++ b/plugins/infra/org.eclipse.papyrus.infra.filters/src-gen/org/eclipse/papyrus/infra/filters/OperatorKind.java @@ -0,0 +1,311 @@ +/** + * Copyright (c) 2014 Christian W. Damus and others. + * + * 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: + * Christian W. Damus - Initial API and implementation + */ +package org.eclipse.papyrus.infra.filters; + +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>Operator Kind</b></em>', + * and utility methods for working with them. + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.filters.FiltersPackage#getOperatorKind() + * @model + * @generated + */ +public enum OperatorKind implements Enumerator +{ + /** + * The '<em><b>And</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #AND_VALUE + * @generated + * @ordered + */ + AND(0, "and", "and"), //$NON-NLS-1$ //$NON-NLS-2$ + + /** + * The '<em><b>Or</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #OR_VALUE + * @generated + * @ordered + */ + OR(1, "or", "or"), //$NON-NLS-1$ //$NON-NLS-2$ + + /** + * The '<em><b>Xor</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #XOR_VALUE + * @generated + * @ordered + */ + XOR(2, "xor", "xor"), //$NON-NLS-1$ //$NON-NLS-2$ + + /** + * The '<em><b>Not</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #NOT_VALUE + * @generated + * @ordered + */ + NOT(3, "not", "not"); //$NON-NLS-1$ //$NON-NLS-2$ + + /** + * The '<em><b>And</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>And</b></em>' literal object isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #AND + * @model name="and" + * @generated + * @ordered + */ + public static final int AND_VALUE = 0; + + /** + * The '<em><b>Or</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Or</b></em>' literal object isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #OR + * @model name="or" + * @generated + * @ordered + */ + public static final int OR_VALUE = 1; + + /** + * The '<em><b>Xor</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Xor</b></em>' literal object isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #XOR + * @model name="xor" + * @generated + * @ordered + */ + public static final int XOR_VALUE = 2; + + /** + * The '<em><b>Not</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Not</b></em>' literal object isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #NOT + * @model name="not" + * @generated + * @ordered + */ + public static final int NOT_VALUE = 3; + + /** + * An array of all the '<em><b>Operator Kind</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private static final OperatorKind[] VALUES_ARRAY = + new OperatorKind[] + { + AND, + OR, + XOR, + NOT, + }; + + /** + * A public read-only list of all the '<em><b>Operator Kind</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static final List<OperatorKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Operator Kind</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static OperatorKind get(String literal) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + OperatorKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) + { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Operator Kind</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static OperatorKind getByName(String name) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + OperatorKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) + { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Operator Kind</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static OperatorKind get(int value) + { + switch (value) + { + case AND_VALUE: + return AND; + case OR_VALUE: + return OR; + case XOR_VALUE: + return XOR; + case NOT_VALUE: + return NOT; + } + 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 OperatorKind(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; + } + +} // OperatorKind |