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

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

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

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

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

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

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

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

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

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

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

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

	/**
	 * The 'HIGHPRESSUREMERCURY' literal object.
	 * 
	 * 
	 * @see #HIGHPRESSUREMERCURY_VALUE
	 * @generated
	 * @ordered
	 */
	HIGHPRESSUREMERCURY(11, "HIGHPRESSUREMERCURY", "HIGHPRESSUREMERCURY");

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

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

* * @see #LOWPRESSURESODIUM * @model * @generated * @ordered */ public static final int LOWPRESSURESODIUM_VALUE = 1; /** * The 'MAINVOLTAGEHALOGEN' literal value. * *

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

* * @see #MAINVOLTAGEHALOGEN * @model * @generated * @ordered */ public static final int MAINVOLTAGEHALOGEN_VALUE = 2; /** * The 'TUNGSTENFILAMENT' literal value. * *

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

* * @see #TUNGSTENFILAMENT * @model * @generated * @ordered */ public static final int TUNGSTENFILAMENT_VALUE = 3; /** * The 'FLUORESCENT' literal value. * *

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

* * @see #FLUORESCENT * @model * @generated * @ordered */ public static final int FLUORESCENT_VALUE = 4; /** * 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 = 5; /** * The 'HIGHPRESSURESODIUM' literal value. * *

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

* * @see #HIGHPRESSURESODIUM * @model * @generated * @ordered */ public static final int HIGHPRESSURESODIUM_VALUE = 6; /** * The 'LOWVOLTAGEHALOGEN' literal value. * *

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

* * @see #LOWVOLTAGEHALOGEN * @model * @generated * @ordered */ public static final int LOWVOLTAGEHALOGEN_VALUE = 7; /** * The 'METALHALIDE' literal value. * *

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

* * @see #METALHALIDE * @model * @generated * @ordered */ public static final int METALHALIDE_VALUE = 8; /** * The 'LIGHTEMITTINGDIODE' literal value. * *

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

* * @see #LIGHTEMITTINGDIODE * @model * @generated * @ordered */ public static final int LIGHTEMITTINGDIODE_VALUE = 9; /** * The 'COMPACTFLUORESCENT' literal value. * *

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

* * @see #COMPACTFLUORESCENT * @model * @generated * @ordered */ public static final int COMPACTFLUORESCENT_VALUE = 10; /** * The 'HIGHPRESSUREMERCURY' literal value. * *

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

* * @see #HIGHPRESSUREMERCURY * @model * @generated * @ordered */ public static final int HIGHPRESSUREMERCURY_VALUE = 11; /** * An array of all the 'Ifc Light Emission Source Enum' enumerators. * * * @generated */ private static final IfcLightEmissionSourceEnum[] VALUES_ARRAY = new IfcLightEmissionSourceEnum[] { NULL, LOWPRESSURESODIUM, MAINVOLTAGEHALOGEN, TUNGSTENFILAMENT, FLUORESCENT, NOTDEFINED, HIGHPRESSURESODIUM, LOWVOLTAGEHALOGEN, METALHALIDE, LIGHTEMITTINGDIODE, COMPACTFLUORESCENT, HIGHPRESSUREMERCURY, }; /** * A public read-only list of all the 'Ifc Light Emission Source Enum' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Ifc Light Emission Source Enum' literal with the specified literal value. * * * @param literal the literal. * @return the matching enumerator or null. * @generated */ public static IfcLightEmissionSourceEnum get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { IfcLightEmissionSourceEnum result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Ifc Light Emission Source Enum' literal with the specified name. * * * @param name the name. * @return the matching enumerator or null. * @generated */ public static IfcLightEmissionSourceEnum getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { IfcLightEmissionSourceEnum result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Ifc Light Emission Source Enum' literal with the specified integer value. * * * @param value the integer value. * @return the matching enumerator or null. * @generated */ public static IfcLightEmissionSourceEnum get(int value) { switch (value) { case NULL_VALUE: return NULL; case LOWPRESSURESODIUM_VALUE: return LOWPRESSURESODIUM; case MAINVOLTAGEHALOGEN_VALUE: return MAINVOLTAGEHALOGEN; case TUNGSTENFILAMENT_VALUE: return TUNGSTENFILAMENT; case FLUORESCENT_VALUE: return FLUORESCENT; case NOTDEFINED_VALUE: return NOTDEFINED; case HIGHPRESSURESODIUM_VALUE: return HIGHPRESSURESODIUM; case LOWVOLTAGEHALOGEN_VALUE: return LOWVOLTAGEHALOGEN; case METALHALIDE_VALUE: return METALHALIDE; case LIGHTEMITTINGDIODE_VALUE: return LIGHTEMITTINGDIODE; case COMPACTFLUORESCENT_VALUE: return COMPACTFLUORESCENT; case HIGHPRESSUREMERCURY_VALUE: return HIGHPRESSUREMERCURY; } 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 IfcLightEmissionSourceEnum(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; } } //IfcLightEmissionSourceEnum




© 2015 - 2024 Weber Informatics LLC | Privacy Policy