All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bimserver.models.ifc4.IfcBSplineCurveForm Maven / Gradle / Ivy

/**
 * Copyright (C) 2009-2014 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 .
 */
package org.bimserver.models.ifc4;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * 
 * A representation of the literals of the enumeration 'Ifc BSpline Curve Form',
 * and utility methods for working with them.
 * 
 * @see org.bimserver.models.ifc4.Ifc4Package#getIfcBSplineCurveForm()
 * @model
 * @generated
 */
public enum IfcBSplineCurveForm implements Enumerator {
	/**
	 * The 'NULL' literal object.
	 * 
	 * 
	 * @see #NULL_VALUE
	 * @generated
	 * @ordered
	 */
	NULL(0, "NULL", "NULL"),

	/**
	 * The 'PARABOLIC ARC' literal object.
	 * 
	 * 
	 * @see #PARABOLIC_ARC_VALUE
	 * @generated
	 * @ordered
	 */
	PARABOLIC_ARC(1, "PARABOLIC_ARC", "PARABOLIC_ARC"),

	/**
	 * The 'UNSPECIFIED' literal object.
	 * 
	 * 
	 * @see #UNSPECIFIED_VALUE
	 * @generated
	 * @ordered
	 */
	UNSPECIFIED(2, "UNSPECIFIED", "UNSPECIFIED"),

	/**
	 * The 'HYPERBOLIC ARC' literal object.
	 * 
	 * 
	 * @see #HYPERBOLIC_ARC_VALUE
	 * @generated
	 * @ordered
	 */
	HYPERBOLIC_ARC(3, "HYPERBOLIC_ARC", "HYPERBOLIC_ARC"),

	/**
	 * The 'ELLIPTIC ARC' literal object.
	 * 
	 * 
	 * @see #ELLIPTIC_ARC_VALUE
	 * @generated
	 * @ordered
	 */
	ELLIPTIC_ARC(4, "ELLIPTIC_ARC", "ELLIPTIC_ARC"),

	/**
	 * The 'POLYLINE FORM' literal object.
	 * 
	 * 
	 * @see #POLYLINE_FORM_VALUE
	 * @generated
	 * @ordered
	 */
	POLYLINE_FORM(5, "POLYLINE_FORM", "POLYLINE_FORM"),

	/**
	 * The 'CIRCULAR ARC' literal object.
	 * 
	 * 
	 * @see #CIRCULAR_ARC_VALUE
	 * @generated
	 * @ordered
	 */
	CIRCULAR_ARC(6, "CIRCULAR_ARC", "CIRCULAR_ARC");

	/**
	 * The 'NULL' literal value.
	 * 
	 * 

* If the meaning of 'NULL' literal object isn't clear, * there really should be more of a description here... *

* * @see #NULL * @model * @generated * @ordered */ public static final int NULL_VALUE = 0; /** * The 'PARABOLIC ARC' literal value. * *

* If the meaning of 'PARABOLIC ARC' literal object isn't clear, * there really should be more of a description here... *

* * @see #PARABOLIC_ARC * @model * @generated * @ordered */ public static final int PARABOLIC_ARC_VALUE = 1; /** * The 'UNSPECIFIED' literal value. * *

* If the meaning of 'UNSPECIFIED' literal object isn't clear, * there really should be more of a description here... *

* * @see #UNSPECIFIED * @model * @generated * @ordered */ public static final int UNSPECIFIED_VALUE = 2; /** * The 'HYPERBOLIC ARC' literal value. * *

* If the meaning of 'HYPERBOLIC ARC' literal object isn't clear, * there really should be more of a description here... *

* * @see #HYPERBOLIC_ARC * @model * @generated * @ordered */ public static final int HYPERBOLIC_ARC_VALUE = 3; /** * The 'ELLIPTIC ARC' literal value. * *

* If the meaning of 'ELLIPTIC ARC' literal object isn't clear, * there really should be more of a description here... *

* * @see #ELLIPTIC_ARC * @model * @generated * @ordered */ public static final int ELLIPTIC_ARC_VALUE = 4; /** * The 'POLYLINE FORM' literal value. * *

* If the meaning of 'POLYLINE FORM' literal object isn't clear, * there really should be more of a description here... *

* * @see #POLYLINE_FORM * @model * @generated * @ordered */ public static final int POLYLINE_FORM_VALUE = 5; /** * The 'CIRCULAR ARC' literal value. * *

* If the meaning of 'CIRCULAR ARC' literal object isn't clear, * there really should be more of a description here... *

* * @see #CIRCULAR_ARC * @model * @generated * @ordered */ public static final int CIRCULAR_ARC_VALUE = 6; /** * An array of all the 'Ifc BSpline Curve Form' enumerators. * * * @generated */ private static final IfcBSplineCurveForm[] VALUES_ARRAY = new IfcBSplineCurveForm[] { NULL, PARABOLIC_ARC, UNSPECIFIED, HYPERBOLIC_ARC, ELLIPTIC_ARC, POLYLINE_FORM, CIRCULAR_ARC, }; /** * A public read-only list of all the 'Ifc BSpline Curve Form' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Ifc BSpline Curve Form' literal with the specified literal value. * * * @param literal the literal. * @return the matching enumerator or null. * @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 'Ifc BSpline Curve Form' literal with the specified name. * * * @param name the name. * @return the matching enumerator or null. * @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 'Ifc BSpline Curve Form' literal with the specified integer value. * * * @param value the integer value. * @return the matching enumerator or null. * @generated */ public static IfcBSplineCurveForm get(int value) { switch (value) { case NULL_VALUE: return NULL; case PARABOLIC_ARC_VALUE: return PARABOLIC_ARC; case UNSPECIFIED_VALUE: return UNSPECIFIED; case HYPERBOLIC_ARC_VALUE: return HYPERBOLIC_ARC; case ELLIPTIC_ARC_VALUE: return ELLIPTIC_ARC; case POLYLINE_FORM_VALUE: return POLYLINE_FORM; case CIRCULAR_ARC_VALUE: return CIRCULAR_ARC; } return null; } /** * * * @generated */ private final int value; /** * * * @generated */ private final String name; /** * * * @generated */ private final String literal; /** * Only this class can construct instances. * * * @generated */ private IfcBSplineCurveForm(int value, String name, String literal) { this.value = value; this.name = name; this.literal = literal; } /** * * * @generated */ public int getValue() { return value; } /** * * * @generated */ public String getName() { return name; } /** * * * @generated */ public String getLiteral() { return literal; } /** * Returns the literal value of the enumerator, which is its string representation. * * * @generated */ @Override public String toString() { return literal; } } //IfcBSplineCurveForm




© 2015 - 2024 Weber Informatics LLC | Privacy Policy