org.bimserver.models.ifc4.IfcSpatialZoneTypeEnum 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 Spatial Zone Type Enum',
* and utility methods for working with them.
*
* @see org.bimserver.models.ifc4.Ifc4Package#getIfcSpatialZoneTypeEnum()
* @model
* @generated
*/
public enum IfcSpatialZoneTypeEnum implements Enumerator {
/**
* The 'NULL' literal object.
*
*
* @see #NULL_VALUE
* @generated
* @ordered
*/
NULL(0, "NULL", "NULL"),
/**
* The 'TRANSPORT' literal object.
*
*
* @see #TRANSPORT_VALUE
* @generated
* @ordered
*/
TRANSPORT(1, "TRANSPORT", "TRANSPORT"),
/**
* The 'NOTDEFINED' literal object.
*
*
* @see #NOTDEFINED_VALUE
* @generated
* @ordered
*/
NOTDEFINED(2, "NOTDEFINED", "NOTDEFINED"),
/**
* The 'VENTILATION' literal object.
*
*
* @see #VENTILATION_VALUE
* @generated
* @ordered
*/
VENTILATION(3, "VENTILATION", "VENTILATION"),
/**
* The 'FIRESAFETY' literal object.
*
*
* @see #FIRESAFETY_VALUE
* @generated
* @ordered
*/
FIRESAFETY(4, "FIRESAFETY", "FIRESAFETY"),
/**
* The 'CONSTRUCTION' literal object.
*
*
* @see #CONSTRUCTION_VALUE
* @generated
* @ordered
*/
CONSTRUCTION(5, "CONSTRUCTION", "CONSTRUCTION"),
/**
* The 'SECURITY' literal object.
*
*
* @see #SECURITY_VALUE
* @generated
* @ordered
*/
SECURITY(6, "SECURITY", "SECURITY"),
/**
* The 'LIGHTING' literal object.
*
*
* @see #LIGHTING_VALUE
* @generated
* @ordered
*/
LIGHTING(7, "LIGHTING", "LIGHTING"),
/**
* The 'USERDEFINED' literal object.
*
*
* @see #USERDEFINED_VALUE
* @generated
* @ordered
*/
USERDEFINED(8, "USERDEFINED", "USERDEFINED"),
/**
* The 'THERMAL' literal object.
*
*
* @see #THERMAL_VALUE
* @generated
* @ordered
*/
THERMAL(9, "THERMAL", "THERMAL"),
/**
* The 'OCCUPANCY' literal object.
*
*
* @see #OCCUPANCY_VALUE
* @generated
* @ordered
*/
OCCUPANCY(10, "OCCUPANCY", "OCCUPANCY");
/**
* 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 'TRANSPORT' literal value.
*
*
* If the meaning of 'TRANSPORT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #TRANSPORT
* @model
* @generated
* @ordered
*/
public static final int TRANSPORT_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 'VENTILATION' literal value.
*
*
* If the meaning of 'VENTILATION' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #VENTILATION
* @model
* @generated
* @ordered
*/
public static final int VENTILATION_VALUE = 3;
/**
* The 'FIRESAFETY' literal value.
*
*
* If the meaning of 'FIRESAFETY' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #FIRESAFETY
* @model
* @generated
* @ordered
*/
public static final int FIRESAFETY_VALUE = 4;
/**
* The 'CONSTRUCTION' literal value.
*
*
* If the meaning of 'CONSTRUCTION' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONSTRUCTION
* @model
* @generated
* @ordered
*/
public static final int CONSTRUCTION_VALUE = 5;
/**
* The 'SECURITY' literal value.
*
*
* If the meaning of 'SECURITY' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SECURITY
* @model
* @generated
* @ordered
*/
public static final int SECURITY_VALUE = 6;
/**
* 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 = 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 'THERMAL' literal value.
*
*
* If the meaning of 'THERMAL' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #THERMAL
* @model
* @generated
* @ordered
*/
public static final int THERMAL_VALUE = 9;
/**
* The 'OCCUPANCY' literal value.
*
*
* If the meaning of 'OCCUPANCY' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #OCCUPANCY
* @model
* @generated
* @ordered
*/
public static final int OCCUPANCY_VALUE = 10;
/**
* An array of all the 'Ifc Spatial Zone Type Enum' enumerators.
*
*
* @generated
*/
private static final IfcSpatialZoneTypeEnum[] VALUES_ARRAY = new IfcSpatialZoneTypeEnum[] { NULL, TRANSPORT, NOTDEFINED, VENTILATION, FIRESAFETY, CONSTRUCTION, SECURITY, LIGHTING, USERDEFINED, THERMAL, OCCUPANCY, };
/**
* A public read-only list of all the 'Ifc Spatial Zone Type Enum' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Ifc Spatial Zone Type Enum' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcSpatialZoneTypeEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcSpatialZoneTypeEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Spatial Zone Type Enum' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcSpatialZoneTypeEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcSpatialZoneTypeEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Spatial Zone Type Enum' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcSpatialZoneTypeEnum get(int value) {
switch (value) {
case NULL_VALUE:
return NULL;
case TRANSPORT_VALUE:
return TRANSPORT;
case NOTDEFINED_VALUE:
return NOTDEFINED;
case VENTILATION_VALUE:
return VENTILATION;
case FIRESAFETY_VALUE:
return FIRESAFETY;
case CONSTRUCTION_VALUE:
return CONSTRUCTION;
case SECURITY_VALUE:
return SECURITY;
case LIGHTING_VALUE:
return LIGHTING;
case USERDEFINED_VALUE:
return USERDEFINED;
case THERMAL_VALUE:
return THERMAL;
case OCCUPANCY_VALUE:
return OCCUPANCY;
}
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 IfcSpatialZoneTypeEnum(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;
}
} //IfcSpatialZoneTypeEnum