
org.bimserver.models.ifc2x3tc1.IfcThermalLoadSourceEnum Maven / Gradle / Ivy
Show all versions of PluginBase Show documentation
/**
* 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 Thermal Load Source Enum',
* and utility methods for working with them.
*
* @see org.bimserver.models.ifc2x3tc1.Ifc2x3tc1Package#getIfcThermalLoadSourceEnum()
* @model
* @generated
*/
public enum IfcThermalLoadSourceEnum implements Enumerator {
/**
* The 'NULL' literal object.
*
*
* @see #NULL_VALUE
* @generated
* @ordered
*/
NULL(0, "NULL", "NULL"),
/**
* The 'EXHAUSTAIR' literal object.
*
*
* @see #EXHAUSTAIR_VALUE
* @generated
* @ordered
*/
EXHAUSTAIR(1, "EXHAUSTAIR", "EXHAUSTAIR"),
/**
* The 'DRYBULBTEMPERATURE' literal object.
*
*
* @see #DRYBULBTEMPERATURE_VALUE
* @generated
* @ordered
*/
DRYBULBTEMPERATURE(2, "DRYBULBTEMPERATURE", "DRYBULBTEMPERATURE"),
/**
* The 'LIGHTING' literal object.
*
*
* @see #LIGHTING_VALUE
* @generated
* @ordered
*/
LIGHTING(3, "LIGHTING", "LIGHTING"),
/**
* The 'USERDEFINED' literal object.
*
*
* @see #USERDEFINED_VALUE
* @generated
* @ordered
*/
USERDEFINED(4, "USERDEFINED", "USERDEFINED"),
/**
* The 'VENTILATIONINDOORAIR' literal object.
*
*
* @see #VENTILATIONINDOORAIR_VALUE
* @generated
* @ordered
*/
VENTILATIONINDOORAIR(5, "VENTILATIONINDOORAIR", "VENTILATIONINDOORAIR"),
/**
* The 'INFILTRATION' literal object.
*
*
* @see #INFILTRATION_VALUE
* @generated
* @ordered
*/
INFILTRATION(6, "INFILTRATION", "INFILTRATION"),
/**
* The 'EQUIPMENT' literal object.
*
*
* @see #EQUIPMENT_VALUE
* @generated
* @ordered
*/
EQUIPMENT(7, "EQUIPMENT", "EQUIPMENT"),
/**
* The 'RECIRCULATEDAIR' literal object.
*
*
* @see #RECIRCULATEDAIR_VALUE
* @generated
* @ordered
*/
RECIRCULATEDAIR(8, "RECIRCULATEDAIR", "RECIRCULATEDAIR"),
/**
* The 'NOTDEFINED' literal object.
*
*
* @see #NOTDEFINED_VALUE
* @generated
* @ordered
*/
NOTDEFINED(9, "NOTDEFINED", "NOTDEFINED"),
/**
* The 'RELATIVEHUMIDITY' literal object.
*
*
* @see #RELATIVEHUMIDITY_VALUE
* @generated
* @ordered
*/
RELATIVEHUMIDITY(10, "RELATIVEHUMIDITY", "RELATIVEHUMIDITY"),
/**
* The 'VENTILATIONOUTSIDEAIR' literal object.
*
*
* @see #VENTILATIONOUTSIDEAIR_VALUE
* @generated
* @ordered
*/
VENTILATIONOUTSIDEAIR(11, "VENTILATIONOUTSIDEAIR", "VENTILATIONOUTSIDEAIR"),
/**
* The 'PEOPLE' literal object.
*
*
* @see #PEOPLE_VALUE
* @generated
* @ordered
*/
PEOPLE(12, "PEOPLE", "PEOPLE"),
/**
* The 'AIREXCHANGERATE' literal object.
*
*
* @see #AIREXCHANGERATE_VALUE
* @generated
* @ordered
*/
AIREXCHANGERATE(13, "AIREXCHANGERATE", "AIREXCHANGERATE");
/**
* 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 'EXHAUSTAIR' literal value.
*
*
* If the meaning of 'EXHAUSTAIR' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #EXHAUSTAIR
* @model
* @generated
* @ordered
*/
public static final int EXHAUSTAIR_VALUE = 1;
/**
* The 'DRYBULBTEMPERATURE' literal value.
*
*
* If the meaning of 'DRYBULBTEMPERATURE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #DRYBULBTEMPERATURE
* @model
* @generated
* @ordered
*/
public static final int DRYBULBTEMPERATURE_VALUE = 2;
/**
* The 'LIGHTING' literal value.
*
*
* If the meaning of 'LIGHTING' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #LIGHTING
* @model
* @generated
* @ordered
*/
public static final int LIGHTING_VALUE = 3;
/**
* 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 = 4;
/**
* The 'VENTILATIONINDOORAIR' literal value.
*
*
* If the meaning of 'VENTILATIONINDOORAIR' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #VENTILATIONINDOORAIR
* @model
* @generated
* @ordered
*/
public static final int VENTILATIONINDOORAIR_VALUE = 5;
/**
* The 'INFILTRATION' literal value.
*
*
* If the meaning of 'INFILTRATION' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #INFILTRATION
* @model
* @generated
* @ordered
*/
public static final int INFILTRATION_VALUE = 6;
/**
* The 'EQUIPMENT' literal value.
*
*
* If the meaning of 'EQUIPMENT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #EQUIPMENT
* @model
* @generated
* @ordered
*/
public static final int EQUIPMENT_VALUE = 7;
/**
* The 'RECIRCULATEDAIR' literal value.
*
*
* If the meaning of 'RECIRCULATEDAIR' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #RECIRCULATEDAIR
* @model
* @generated
* @ordered
*/
public static final int RECIRCULATEDAIR_VALUE = 8;
/**
* 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 = 9;
/**
* The 'RELATIVEHUMIDITY' literal value.
*
*
* If the meaning of 'RELATIVEHUMIDITY' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #RELATIVEHUMIDITY
* @model
* @generated
* @ordered
*/
public static final int RELATIVEHUMIDITY_VALUE = 10;
/**
* The 'VENTILATIONOUTSIDEAIR' literal value.
*
*
* If the meaning of 'VENTILATIONOUTSIDEAIR' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #VENTILATIONOUTSIDEAIR
* @model
* @generated
* @ordered
*/
public static final int VENTILATIONOUTSIDEAIR_VALUE = 11;
/**
* The 'PEOPLE' literal value.
*
*
* If the meaning of 'PEOPLE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PEOPLE
* @model
* @generated
* @ordered
*/
public static final int PEOPLE_VALUE = 12;
/**
* The 'AIREXCHANGERATE' literal value.
*
*
* If the meaning of 'AIREXCHANGERATE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #AIREXCHANGERATE
* @model
* @generated
* @ordered
*/
public static final int AIREXCHANGERATE_VALUE = 13;
/**
* An array of all the 'Ifc Thermal Load Source Enum' enumerators.
*
*
* @generated
*/
private static final IfcThermalLoadSourceEnum[] VALUES_ARRAY = new IfcThermalLoadSourceEnum[] { NULL, EXHAUSTAIR,
DRYBULBTEMPERATURE, LIGHTING, USERDEFINED, VENTILATIONINDOORAIR, INFILTRATION, EQUIPMENT, RECIRCULATEDAIR,
NOTDEFINED, RELATIVEHUMIDITY, VENTILATIONOUTSIDEAIR, PEOPLE, AIREXCHANGERATE, };
/**
* A public read-only list of all the 'Ifc Thermal Load Source Enum' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections
.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Ifc Thermal Load Source Enum' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcThermalLoadSourceEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcThermalLoadSourceEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Thermal Load Source Enum' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcThermalLoadSourceEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcThermalLoadSourceEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Thermal Load Source Enum' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcThermalLoadSourceEnum get(int value) {
switch (value) {
case NULL_VALUE:
return NULL;
case EXHAUSTAIR_VALUE:
return EXHAUSTAIR;
case DRYBULBTEMPERATURE_VALUE:
return DRYBULBTEMPERATURE;
case LIGHTING_VALUE:
return LIGHTING;
case USERDEFINED_VALUE:
return USERDEFINED;
case VENTILATIONINDOORAIR_VALUE:
return VENTILATIONINDOORAIR;
case INFILTRATION_VALUE:
return INFILTRATION;
case EQUIPMENT_VALUE:
return EQUIPMENT;
case RECIRCULATEDAIR_VALUE:
return RECIRCULATEDAIR;
case NOTDEFINED_VALUE:
return NOTDEFINED;
case RELATIVEHUMIDITY_VALUE:
return RELATIVEHUMIDITY;
case VENTILATIONOUTSIDEAIR_VALUE:
return VENTILATIONOUTSIDEAIR;
case PEOPLE_VALUE:
return PEOPLE;
case AIREXCHANGERATE_VALUE:
return AIREXCHANGERATE;
}
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 IfcThermalLoadSourceEnum(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;
}
} //IfcThermalLoadSourceEnum