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

org.bimserver.models.ifc2x3tc1.IfcCostScheduleTypeEnum 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.ifc2x3tc1;

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 Cost Schedule Type Enum',
 * and utility methods for working with them.
 * 
 * @see org.bimserver.models.ifc2x3tc1.Ifc2x3tc1Package#getIfcCostScheduleTypeEnum()
 * @model
 * @generated
 */
public enum IfcCostScheduleTypeEnum implements Enumerator {
	/**
	 * The 'NULL' literal object.
	 * 
	 * 
	 * @see #NULL_VALUE
	 * @generated
	 * @ordered
	 */
	NULL(0, "NULL", "NULL"),

	/**
	 * The 'UNPRICEDBILLOFQUANTITIES' literal object.
	 * 
	 * 
	 * @see #UNPRICEDBILLOFQUANTITIES_VALUE
	 * @generated
	 * @ordered
	 */
	UNPRICEDBILLOFQUANTITIES(1, "UNPRICEDBILLOFQUANTITIES", "UNPRICEDBILLOFQUANTITIES"),

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

	/**
	 * The 'TENDER' literal object.
	 * 
	 * 
	 * @see #TENDER_VALUE
	 * @generated
	 * @ordered
	 */
	TENDER(3, "TENDER", "TENDER"),

	/**
	 * The 'COSTPLAN' literal object.
	 * 
	 * 
	 * @see #COSTPLAN_VALUE
	 * @generated
	 * @ordered
	 */
	COSTPLAN(4, "COSTPLAN", "COSTPLAN"),

	/**
	 * The 'PRICEDBILLOFQUANTITIES' literal object.
	 * 
	 * 
	 * @see #PRICEDBILLOFQUANTITIES_VALUE
	 * @generated
	 * @ordered
	 */
	PRICEDBILLOFQUANTITIES(5, "PRICEDBILLOFQUANTITIES", "PRICEDBILLOFQUANTITIES"),

	/**
	 * The 'SCHEDULEOFRATES' literal object.
	 * 
	 * 
	 * @see #SCHEDULEOFRATES_VALUE
	 * @generated
	 * @ordered
	 */
	SCHEDULEOFRATES(6, "SCHEDULEOFRATES", "SCHEDULEOFRATES"),

	/**
	 * The 'BUDGET' literal object.
	 * 
	 * 
	 * @see #BUDGET_VALUE
	 * @generated
	 * @ordered
	 */
	BUDGET(7, "BUDGET", "BUDGET"),

	/**
	 * The 'USERDEFINED' literal object.
	 * 
	 * 
	 * @see #USERDEFINED_VALUE
	 * @generated
	 * @ordered
	 */
	USERDEFINED(8, "USERDEFINED", "USERDEFINED"),

	/**
	 * The 'ESTIMATE' literal object.
	 * 
	 * 
	 * @see #ESTIMATE_VALUE
	 * @generated
	 * @ordered
	 */
	ESTIMATE(9, "ESTIMATE", "ESTIMATE");

	/**
	 * 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 'UNPRICEDBILLOFQUANTITIES' literal value. * *

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

* * @see #UNPRICEDBILLOFQUANTITIES * @model * @generated * @ordered */ public static final int UNPRICEDBILLOFQUANTITIES_VALUE = 1; /** * The 'NOTDEFINED' literal value. * *

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

* * @see #NOTDEFINED * @model * @generated * @ordered */ public static final int NOTDEFINED_VALUE = 2; /** * The 'TENDER' literal value. * *

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

* * @see #TENDER * @model * @generated * @ordered */ public static final int TENDER_VALUE = 3; /** * The 'COSTPLAN' literal value. * *

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

* * @see #COSTPLAN * @model * @generated * @ordered */ public static final int COSTPLAN_VALUE = 4; /** * The 'PRICEDBILLOFQUANTITIES' literal value. * *

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

* * @see #PRICEDBILLOFQUANTITIES * @model * @generated * @ordered */ public static final int PRICEDBILLOFQUANTITIES_VALUE = 5; /** * The 'SCHEDULEOFRATES' literal value. * *

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

* * @see #SCHEDULEOFRATES * @model * @generated * @ordered */ public static final int SCHEDULEOFRATES_VALUE = 6; /** * The 'BUDGET' literal value. * *

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

* * @see #BUDGET * @model * @generated * @ordered */ public static final int BUDGET_VALUE = 7; /** * The 'USERDEFINED' literal value. * *

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

* * @see #USERDEFINED * @model * @generated * @ordered */ public static final int USERDEFINED_VALUE = 8; /** * The 'ESTIMATE' literal value. * *

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

* * @see #ESTIMATE * @model * @generated * @ordered */ public static final int ESTIMATE_VALUE = 9; /** * An array of all the 'Ifc Cost Schedule Type Enum' enumerators. * * * @generated */ private static final IfcCostScheduleTypeEnum[] VALUES_ARRAY = new IfcCostScheduleTypeEnum[] { NULL, UNPRICEDBILLOFQUANTITIES, NOTDEFINED, TENDER, COSTPLAN, PRICEDBILLOFQUANTITIES, SCHEDULEOFRATES, BUDGET, USERDEFINED, ESTIMATE, }; /** * A public read-only list of all the 'Ifc Cost Schedule Type Enum' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Ifc Cost Schedule Type Enum' literal with the specified literal value. * * * @param literal the literal. * @return the matching enumerator or null. * @generated */ public static IfcCostScheduleTypeEnum get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { IfcCostScheduleTypeEnum result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Ifc Cost Schedule Type Enum' literal with the specified name. * * * @param name the name. * @return the matching enumerator or null. * @generated */ public static IfcCostScheduleTypeEnum getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { IfcCostScheduleTypeEnum result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Ifc Cost Schedule Type Enum' literal with the specified integer value. * * * @param value the integer value. * @return the matching enumerator or null. * @generated */ public static IfcCostScheduleTypeEnum get(int value) { switch (value) { case NULL_VALUE: return NULL; case UNPRICEDBILLOFQUANTITIES_VALUE: return UNPRICEDBILLOFQUANTITIES; case NOTDEFINED_VALUE: return NOTDEFINED; case TENDER_VALUE: return TENDER; case COSTPLAN_VALUE: return COSTPLAN; case PRICEDBILLOFQUANTITIES_VALUE: return PRICEDBILLOFQUANTITIES; case SCHEDULEOFRATES_VALUE: return SCHEDULEOFRATES; case BUDGET_VALUE: return BUDGET; case USERDEFINED_VALUE: return USERDEFINED; case ESTIMATE_VALUE: return ESTIMATE; } 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 IfcCostScheduleTypeEnum(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; } } //IfcCostScheduleTypeEnum




© 2015 - 2024 Weber Informatics LLC | Privacy Policy