/** * Copyright (C) 2009-2013 BIMserver.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.bimserver.models.ifc2x3tc1; 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>Ifc BSpline Curve Form</b></em>', * and utility methods for working with them. * <!-- end-user-doc --> * @see org.bimserver.models.ifc2x3tc1.Ifc2x3tc1Package#getIfcBSplineCurveForm() * @model * @generated */ public enum IfcBSplineCurveForm implements Enumerator { /** * The '<em><b>NULL</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #NULL_VALUE * @generated * @ordered */ NULL(0, "NULL", "NULL"), /** * The '<em><b>PARABOLIC ARC</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #PARABOLIC_ARC_VALUE * @generated * @ordered */ PARABOLIC_ARC(1, "PARABOLIC_ARC", "PARABOLIC_ARC"), /** * The '<em><b>ELLIPTIC ARC</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #ELLIPTIC_ARC_VALUE * @generated * @ordered */ ELLIPTIC_ARC(2, "ELLIPTIC_ARC", "ELLIPTIC_ARC"), /** * The '<em><b>HYPERBOLIC ARC</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #HYPERBOLIC_ARC_VALUE * @generated * @ordered */ HYPERBOLIC_ARC(3, "HYPERBOLIC_ARC", "HYPERBOLIC_ARC"), /** * The '<em><b>UNSPECIFIED</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #UNSPECIFIED_VALUE * @generated * @ordered */ UNSPECIFIED(4, "UNSPECIFIED", "UNSPECIFIED"), /** * The '<em><b>POLYLINE FORM</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #POLYLINE_FORM_VALUE * @generated * @ordered */ POLYLINE_FORM(5, "POLYLINE_FORM", "POLYLINE_FORM"), /** * The '<em><b>CIRCULAR ARC</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #CIRCULAR_ARC_VALUE * @generated * @ordered */ CIRCULAR_ARC(6, "CIRCULAR_ARC", "CIRCULAR_ARC"); /** * The '<em><b>NULL</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>NULL</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #NULL * @model * @generated * @ordered */ public static final int NULL_VALUE = 0; /** * The '<em><b>PARABOLIC ARC</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>PARABOLIC ARC</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #PARABOLIC_ARC * @model * @generated * @ordered */ public static final int PARABOLIC_ARC_VALUE = 1; /** * The '<em><b>ELLIPTIC ARC</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>ELLIPTIC ARC</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #ELLIPTIC_ARC * @model * @generated * @ordered */ public static final int ELLIPTIC_ARC_VALUE = 2; /** * The '<em><b>HYPERBOLIC ARC</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>HYPERBOLIC ARC</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #HYPERBOLIC_ARC * @model * @generated * @ordered */ public static final int HYPERBOLIC_ARC_VALUE = 3; /** * The '<em><b>UNSPECIFIED</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>UNSPECIFIED</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #UNSPECIFIED * @model * @generated * @ordered */ public static final int UNSPECIFIED_VALUE = 4; /** * The '<em><b>POLYLINE FORM</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>POLYLINE FORM</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #POLYLINE_FORM * @model * @generated * @ordered */ public static final int POLYLINE_FORM_VALUE = 5; /** * The '<em><b>CIRCULAR ARC</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>CIRCULAR ARC</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #CIRCULAR_ARC * @model * @generated * @ordered */ public static final int CIRCULAR_ARC_VALUE = 6; /** * An array of all the '<em><b>Ifc BSpline Curve Form</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private static final IfcBSplineCurveForm[] VALUES_ARRAY = new IfcBSplineCurveForm[] { NULL, PARABOLIC_ARC, ELLIPTIC_ARC, HYPERBOLIC_ARC, UNSPECIFIED, POLYLINE_FORM, CIRCULAR_ARC, }; /** * A public read-only list of all the '<em><b>Ifc BSpline Curve Form</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final List<IfcBSplineCurveForm> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the '<em><b>Ifc BSpline Curve Form</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static IfcBSplineCurveForm get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { IfcBSplineCurveForm result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the '<em><b>Ifc BSpline Curve Form</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static IfcBSplineCurveForm getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { IfcBSplineCurveForm result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the '<em><b>Ifc BSpline Curve Form</b></em>' literal with the specified integer value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static IfcBSplineCurveForm get(int value) { switch (value) { case NULL_VALUE: return NULL; case PARABOLIC_ARC_VALUE: return PARABOLIC_ARC; case ELLIPTIC_ARC_VALUE: return ELLIPTIC_ARC; case HYPERBOLIC_ARC_VALUE: return HYPERBOLIC_ARC; case UNSPECIFIED_VALUE: return UNSPECIFIED; case POLYLINE_FORM_VALUE: return POLYLINE_FORM; case CIRCULAR_ARC_VALUE: return CIRCULAR_ARC; } 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 IfcBSplineCurveForm(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; } } //IfcBSplineCurveForm