org.bimserver.models.ifc4.IfcCondenserTypeEnum 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 Condenser Type Enum',
* and utility methods for working with them.
*
* @see org.bimserver.models.ifc4.Ifc4Package#getIfcCondenserTypeEnum()
* @model
* @generated
*/
public enum IfcCondenserTypeEnum implements Enumerator {
/**
* The 'NULL' literal object.
*
*
* @see #NULL_VALUE
* @generated
* @ordered
*/
NULL(0, "NULL", "NULL"),
/**
* The 'EVAPORATIVECOOLED' literal object.
*
*
* @see #EVAPORATIVECOOLED_VALUE
* @generated
* @ordered
*/
EVAPORATIVECOOLED(1, "EVAPORATIVECOOLED", "EVAPORATIVECOOLED"),
/**
* The 'NOTDEFINED' literal object.
*
*
* @see #NOTDEFINED_VALUE
* @generated
* @ordered
*/
NOTDEFINED(2, "NOTDEFINED", "NOTDEFINED"),
/**
* The 'WATERCOOLEDSHELLCOIL' literal object.
*
*
* @see #WATERCOOLEDSHELLCOIL_VALUE
* @generated
* @ordered
*/
WATERCOOLEDSHELLCOIL(3, "WATERCOOLEDSHELLCOIL", "WATERCOOLEDSHELLCOIL"),
/**
* The 'AIRCOOLED' literal object.
*
*
* @see #AIRCOOLED_VALUE
* @generated
* @ordered
*/
AIRCOOLED(4, "AIRCOOLED", "AIRCOOLED"),
/**
* The 'WATERCOOLEDBRAZEDPLATE' literal object.
*
*
* @see #WATERCOOLEDBRAZEDPLATE_VALUE
* @generated
* @ordered
*/
WATERCOOLEDBRAZEDPLATE(5, "WATERCOOLEDBRAZEDPLATE", "WATERCOOLEDBRAZEDPLATE"),
/**
* The 'WATERCOOLEDSHELLTUBE' literal object.
*
*
* @see #WATERCOOLEDSHELLTUBE_VALUE
* @generated
* @ordered
*/
WATERCOOLEDSHELLTUBE(6, "WATERCOOLEDSHELLTUBE", "WATERCOOLEDSHELLTUBE"),
/**
* The 'WATERCOOLED' literal object.
*
*
* @see #WATERCOOLED_VALUE
* @generated
* @ordered
*/
WATERCOOLED(7, "WATERCOOLED", "WATERCOOLED"),
/**
* The 'USERDEFINED' literal object.
*
*
* @see #USERDEFINED_VALUE
* @generated
* @ordered
*/
USERDEFINED(8, "USERDEFINED", "USERDEFINED"),
/**
* The 'WATERCOOLEDTUBEINTUBE' literal object.
*
*
* @see #WATERCOOLEDTUBEINTUBE_VALUE
* @generated
* @ordered
*/
WATERCOOLEDTUBEINTUBE(9, "WATERCOOLEDTUBEINTUBE", "WATERCOOLEDTUBEINTUBE");
/**
* 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 'EVAPORATIVECOOLED' literal value.
*
*
* If the meaning of 'EVAPORATIVECOOLED' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #EVAPORATIVECOOLED
* @model
* @generated
* @ordered
*/
public static final int EVAPORATIVECOOLED_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 'WATERCOOLEDSHELLCOIL' literal value.
*
*
* If the meaning of 'WATERCOOLEDSHELLCOIL' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #WATERCOOLEDSHELLCOIL
* @model
* @generated
* @ordered
*/
public static final int WATERCOOLEDSHELLCOIL_VALUE = 3;
/**
* The 'AIRCOOLED' literal value.
*
*
* If the meaning of 'AIRCOOLED' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #AIRCOOLED
* @model
* @generated
* @ordered
*/
public static final int AIRCOOLED_VALUE = 4;
/**
* The 'WATERCOOLEDBRAZEDPLATE' literal value.
*
*
* If the meaning of 'WATERCOOLEDBRAZEDPLATE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #WATERCOOLEDBRAZEDPLATE
* @model
* @generated
* @ordered
*/
public static final int WATERCOOLEDBRAZEDPLATE_VALUE = 5;
/**
* The 'WATERCOOLEDSHELLTUBE' literal value.
*
*
* If the meaning of 'WATERCOOLEDSHELLTUBE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #WATERCOOLEDSHELLTUBE
* @model
* @generated
* @ordered
*/
public static final int WATERCOOLEDSHELLTUBE_VALUE = 6;
/**
* The 'WATERCOOLED' literal value.
*
*
* If the meaning of 'WATERCOOLED' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #WATERCOOLED
* @model
* @generated
* @ordered
*/
public static final int WATERCOOLED_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 'WATERCOOLEDTUBEINTUBE' literal value.
*
*
* If the meaning of 'WATERCOOLEDTUBEINTUBE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #WATERCOOLEDTUBEINTUBE
* @model
* @generated
* @ordered
*/
public static final int WATERCOOLEDTUBEINTUBE_VALUE = 9;
/**
* An array of all the 'Ifc Condenser Type Enum' enumerators.
*
*
* @generated
*/
private static final IfcCondenserTypeEnum[] VALUES_ARRAY = new IfcCondenserTypeEnum[] { NULL, EVAPORATIVECOOLED, NOTDEFINED, WATERCOOLEDSHELLCOIL, AIRCOOLED, WATERCOOLEDBRAZEDPLATE, WATERCOOLEDSHELLTUBE, WATERCOOLED, USERDEFINED,
WATERCOOLEDTUBEINTUBE, };
/**
* A public read-only list of all the 'Ifc Condenser Type Enum' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Ifc Condenser Type Enum' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcCondenserTypeEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcCondenserTypeEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Condenser Type Enum' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcCondenserTypeEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcCondenserTypeEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Condenser Type Enum' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcCondenserTypeEnum get(int value) {
switch (value) {
case NULL_VALUE:
return NULL;
case EVAPORATIVECOOLED_VALUE:
return EVAPORATIVECOOLED;
case NOTDEFINED_VALUE:
return NOTDEFINED;
case WATERCOOLEDSHELLCOIL_VALUE:
return WATERCOOLEDSHELLCOIL;
case AIRCOOLED_VALUE:
return AIRCOOLED;
case WATERCOOLEDBRAZEDPLATE_VALUE:
return WATERCOOLEDBRAZEDPLATE;
case WATERCOOLEDSHELLTUBE_VALUE:
return WATERCOOLEDSHELLTUBE;
case WATERCOOLED_VALUE:
return WATERCOOLED;
case USERDEFINED_VALUE:
return USERDEFINED;
case WATERCOOLEDTUBEINTUBE_VALUE:
return WATERCOOLEDTUBEINTUBE;
}
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 IfcCondenserTypeEnum(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;
}
} //IfcCondenserTypeEnum