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

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

Go to download

Base project for BIMserver plugin development. Some plugins mights also need the Shared library

The newest version!
/**
 * 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 Role Enum',
 * and utility methods for working with them.
 * 
 * @see org.bimserver.models.ifc4.Ifc4Package#getIfcRoleEnum()
 * @model
 * @generated
 */
public enum IfcRoleEnum implements Enumerator {
	/**
	 * The 'NULL' literal object.
	 * 
	 * 
	 * @see #NULL_VALUE
	 * @generated
	 * @ordered
	 */
	NULL(0, "NULL", "NULL"),

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

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

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

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

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

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

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

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

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

	/**
	 * The 'MANUFACTURER' literal object.
	 * 
	 * 
	 * @see #MANUFACTURER_VALUE
	 * @generated
	 * @ordered
	 */
	MANUFACTURER(10, "MANUFACTURER", "MANUFACTURER"),

	/**
	 * The 'SUPPLIER' literal object.
	 * 
	 * 
	 * @see #SUPPLIER_VALUE
	 * @generated
	 * @ordered
	 */
	SUPPLIER(11, "SUPPLIER", "SUPPLIER"),

	/**
	 * The 'STRUCTURALENGINEER' literal object.
	 * 
	 * 
	 * @see #STRUCTURALENGINEER_VALUE
	 * @generated
	 * @ordered
	 */
	STRUCTURALENGINEER(12, "STRUCTURALENGINEER", "STRUCTURALENGINEER"),

	/**
	 * The 'CLIENT' literal object.
	 * 
	 * 
	 * @see #CLIENT_VALUE
	 * @generated
	 * @ordered
	 */
	CLIENT(13, "CLIENT", "CLIENT"),

	/**
	 * The 'OWNER' literal object.
	 * 
	 * 
	 * @see #OWNER_VALUE
	 * @generated
	 * @ordered
	 */
	OWNER(14, "OWNER", "OWNER"),

	/**
	 * The 'RESELLER' literal object.
	 * 
	 * 
	 * @see #RESELLER_VALUE
	 * @generated
	 * @ordered
	 */
	RESELLER(15, "RESELLER", "RESELLER"),

	/**
	 * The 'CIVILENGINEER' literal object.
	 * 
	 * 
	 * @see #CIVILENGINEER_VALUE
	 * @generated
	 * @ordered
	 */
	CIVILENGINEER(16, "CIVILENGINEER", "CIVILENGINEER"),

	/**
	 * The 'BUILDINGOPERATOR' literal object.
	 * 
	 * 
	 * @see #BUILDINGOPERATOR_VALUE
	 * @generated
	 * @ordered
	 */
	BUILDINGOPERATOR(17, "BUILDINGOPERATOR", "BUILDINGOPERATOR"),

	/**
	 * The 'PROJECTMANAGER' literal object.
	 * 
	 * 
	 * @see #PROJECTMANAGER_VALUE
	 * @generated
	 * @ordered
	 */
	PROJECTMANAGER(18, "PROJECTMANAGER", "PROJECTMANAGER"),

	/**
	 * The 'MECHANICALENGINEER' literal object.
	 * 
	 * 
	 * @see #MECHANICALENGINEER_VALUE
	 * @generated
	 * @ordered
	 */
	MECHANICALENGINEER(19, "MECHANICALENGINEER", "MECHANICALENGINEER"),

	/**
	 * The 'FACILITIESMANAGER' literal object.
	 * 
	 * 
	 * @see #FACILITIESMANAGER_VALUE
	 * @generated
	 * @ordered
	 */
	FACILITIESMANAGER(20, "FACILITIESMANAGER", "FACILITIESMANAGER"),

	/**
	 * The 'SUBCONTRACTOR' literal object.
	 * 
	 * 
	 * @see #SUBCONTRACTOR_VALUE
	 * @generated
	 * @ordered
	 */
	SUBCONTRACTOR(21, "SUBCONTRACTOR", "SUBCONTRACTOR"),

	/**
	 * The 'FIELDCONSTRUCTIONMANAGER' literal object.
	 * 
	 * 
	 * @see #FIELDCONSTRUCTIONMANAGER_VALUE
	 * @generated
	 * @ordered
	 */
	FIELDCONSTRUCTIONMANAGER(22, "FIELDCONSTRUCTIONMANAGER", "FIELDCONSTRUCTIONMANAGER"),

	/**
	 * The 'ARCHITECT' literal object.
	 * 
	 * 
	 * @see #ARCHITECT_VALUE
	 * @generated
	 * @ordered
	 */
	ARCHITECT(23, "ARCHITECT", "ARCHITECT");

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

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

* * @see #CONSTRUCTIONMANAGER * @model * @generated * @ordered */ public static final int CONSTRUCTIONMANAGER_VALUE = 1; /** * The 'COSTENGINEER' literal value. * *

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

* * @see #COSTENGINEER * @model * @generated * @ordered */ public static final int COSTENGINEER_VALUE = 2; /** * The 'CONSULTANT' literal value. * *

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

* * @see #CONSULTANT * @model * @generated * @ordered */ public static final int CONSULTANT_VALUE = 3; /** * The 'BUILDINGOWNER' literal value. * *

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

* * @see #BUILDINGOWNER * @model * @generated * @ordered */ public static final int BUILDINGOWNER_VALUE = 4; /** * The 'COMMISSIONINGENGINEER' literal value. * *

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

* * @see #COMMISSIONINGENGINEER * @model * @generated * @ordered */ public static final int COMMISSIONINGENGINEER_VALUE = 5; /** * The 'ENGINEER' literal value. * *

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

* * @see #ENGINEER * @model * @generated * @ordered */ public static final int ENGINEER_VALUE = 6; /** * The 'CONTRACTOR' literal value. * *

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

* * @see #CONTRACTOR * @model * @generated * @ordered */ public static final int CONTRACTOR_VALUE = 7; /** * The 'ELECTRICALENGINEER' literal value. * *

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

* * @see #ELECTRICALENGINEER * @model * @generated * @ordered */ public static final int ELECTRICALENGINEER_VALUE = 8; /** * 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 = 9; /** * The 'MANUFACTURER' literal value. * *

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

* * @see #MANUFACTURER * @model * @generated * @ordered */ public static final int MANUFACTURER_VALUE = 10; /** * The 'SUPPLIER' literal value. * *

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

* * @see #SUPPLIER * @model * @generated * @ordered */ public static final int SUPPLIER_VALUE = 11; /** * The 'STRUCTURALENGINEER' literal value. * *

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

* * @see #STRUCTURALENGINEER * @model * @generated * @ordered */ public static final int STRUCTURALENGINEER_VALUE = 12; /** * The 'CLIENT' literal value. * *

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

* * @see #CLIENT * @model * @generated * @ordered */ public static final int CLIENT_VALUE = 13; /** * The 'OWNER' literal value. * *

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

* * @see #OWNER * @model * @generated * @ordered */ public static final int OWNER_VALUE = 14; /** * The 'RESELLER' literal value. * *

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

* * @see #RESELLER * @model * @generated * @ordered */ public static final int RESELLER_VALUE = 15; /** * The 'CIVILENGINEER' literal value. * *

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

* * @see #CIVILENGINEER * @model * @generated * @ordered */ public static final int CIVILENGINEER_VALUE = 16; /** * The 'BUILDINGOPERATOR' literal value. * *

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

* * @see #BUILDINGOPERATOR * @model * @generated * @ordered */ public static final int BUILDINGOPERATOR_VALUE = 17; /** * The 'PROJECTMANAGER' literal value. * *

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

* * @see #PROJECTMANAGER * @model * @generated * @ordered */ public static final int PROJECTMANAGER_VALUE = 18; /** * The 'MECHANICALENGINEER' literal value. * *

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

* * @see #MECHANICALENGINEER * @model * @generated * @ordered */ public static final int MECHANICALENGINEER_VALUE = 19; /** * The 'FACILITIESMANAGER' literal value. * *

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

* * @see #FACILITIESMANAGER * @model * @generated * @ordered */ public static final int FACILITIESMANAGER_VALUE = 20; /** * The 'SUBCONTRACTOR' literal value. * *

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

* * @see #SUBCONTRACTOR * @model * @generated * @ordered */ public static final int SUBCONTRACTOR_VALUE = 21; /** * The 'FIELDCONSTRUCTIONMANAGER' literal value. * *

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

* * @see #FIELDCONSTRUCTIONMANAGER * @model * @generated * @ordered */ public static final int FIELDCONSTRUCTIONMANAGER_VALUE = 22; /** * The 'ARCHITECT' literal value. * *

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

* * @see #ARCHITECT * @model * @generated * @ordered */ public static final int ARCHITECT_VALUE = 23; /** * An array of all the 'Ifc Role Enum' enumerators. * * * @generated */ private static final IfcRoleEnum[] VALUES_ARRAY = new IfcRoleEnum[] { NULL, CONSTRUCTIONMANAGER, COSTENGINEER, CONSULTANT, BUILDINGOWNER, COMMISSIONINGENGINEER, ENGINEER, CONTRACTOR, ELECTRICALENGINEER, USERDEFINED, MANUFACTURER, SUPPLIER, STRUCTURALENGINEER, CLIENT, OWNER, RESELLER, CIVILENGINEER, BUILDINGOPERATOR, PROJECTMANAGER, MECHANICALENGINEER, FACILITIESMANAGER, SUBCONTRACTOR, FIELDCONSTRUCTIONMANAGER, ARCHITECT, }; /** * A public read-only list of all the 'Ifc Role Enum' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Ifc Role Enum' literal with the specified literal value. * * * @param literal the literal. * @return the matching enumerator or null. * @generated */ public static IfcRoleEnum get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { IfcRoleEnum result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Ifc Role Enum' literal with the specified name. * * * @param name the name. * @return the matching enumerator or null. * @generated */ public static IfcRoleEnum getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { IfcRoleEnum result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Ifc Role Enum' literal with the specified integer value. * * * @param value the integer value. * @return the matching enumerator or null. * @generated */ public static IfcRoleEnum get(int value) { switch (value) { case NULL_VALUE: return NULL; case CONSTRUCTIONMANAGER_VALUE: return CONSTRUCTIONMANAGER; case COSTENGINEER_VALUE: return COSTENGINEER; case CONSULTANT_VALUE: return CONSULTANT; case BUILDINGOWNER_VALUE: return BUILDINGOWNER; case COMMISSIONINGENGINEER_VALUE: return COMMISSIONINGENGINEER; case ENGINEER_VALUE: return ENGINEER; case CONTRACTOR_VALUE: return CONTRACTOR; case ELECTRICALENGINEER_VALUE: return ELECTRICALENGINEER; case USERDEFINED_VALUE: return USERDEFINED; case MANUFACTURER_VALUE: return MANUFACTURER; case SUPPLIER_VALUE: return SUPPLIER; case STRUCTURALENGINEER_VALUE: return STRUCTURALENGINEER; case CLIENT_VALUE: return CLIENT; case OWNER_VALUE: return OWNER; case RESELLER_VALUE: return RESELLER; case CIVILENGINEER_VALUE: return CIVILENGINEER; case BUILDINGOPERATOR_VALUE: return BUILDINGOPERATOR; case PROJECTMANAGER_VALUE: return PROJECTMANAGER; case MECHANICALENGINEER_VALUE: return MECHANICALENGINEER; case FACILITIESMANAGER_VALUE: return FACILITIESMANAGER; case SUBCONTRACTOR_VALUE: return SUBCONTRACTOR; case FIELDCONSTRUCTIONMANAGER_VALUE: return FIELDCONSTRUCTIONMANAGER; case ARCHITECT_VALUE: return ARCHITECT; } 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 IfcRoleEnum(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; } } //IfcRoleEnum




© 2015 - 2025 Weber Informatics LLC | Privacy Policy