org.bimserver.models.ifc4.IfcUnitEnum 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 Unit Enum',
* and utility methods for working with them.
*
* @see org.bimserver.models.ifc4.Ifc4Package#getIfcUnitEnum()
* @model
* @generated
*/
public enum IfcUnitEnum implements Enumerator {
/**
* The 'NULL' literal object.
*
*
* @see #NULL_VALUE
* @generated
* @ordered
*/
NULL(0, "NULL", "NULL"),
/**
* The 'LENGTHUNIT' literal object.
*
*
* @see #LENGTHUNIT_VALUE
* @generated
* @ordered
*/
LENGTHUNIT(1, "LENGTHUNIT", "LENGTHUNIT"),
/**
* The 'SOLIDANGLEUNIT' literal object.
*
*
* @see #SOLIDANGLEUNIT_VALUE
* @generated
* @ordered
*/
SOLIDANGLEUNIT(2, "SOLIDANGLEUNIT", "SOLIDANGLEUNIT"),
/**
* The 'RADIOACTIVITYUNIT' literal object.
*
*
* @see #RADIOACTIVITYUNIT_VALUE
* @generated
* @ordered
*/
RADIOACTIVITYUNIT(3, "RADIOACTIVITYUNIT", "RADIOACTIVITYUNIT"),
/**
* The 'ENERGYUNIT' literal object.
*
*
* @see #ENERGYUNIT_VALUE
* @generated
* @ordered
*/
ENERGYUNIT(4, "ENERGYUNIT", "ENERGYUNIT"),
/**
* The 'AMOUNTOFSUBSTANCEUNIT' literal object.
*
*
* @see #AMOUNTOFSUBSTANCEUNIT_VALUE
* @generated
* @ordered
*/
AMOUNTOFSUBSTANCEUNIT(5, "AMOUNTOFSUBSTANCEUNIT", "AMOUNTOFSUBSTANCEUNIT"),
/**
* The 'LUMINOUSFLUXUNIT' literal object.
*
*
* @see #LUMINOUSFLUXUNIT_VALUE
* @generated
* @ordered
*/
LUMINOUSFLUXUNIT(6, "LUMINOUSFLUXUNIT", "LUMINOUSFLUXUNIT"),
/**
* The 'USERDEFINED' literal object.
*
*
* @see #USERDEFINED_VALUE
* @generated
* @ordered
*/
USERDEFINED(7, "USERDEFINED", "USERDEFINED"),
/**
* The 'FREQUENCYUNIT' literal object.
*
*
* @see #FREQUENCYUNIT_VALUE
* @generated
* @ordered
*/
FREQUENCYUNIT(8, "FREQUENCYUNIT", "FREQUENCYUNIT"),
/**
* The 'LUMINOUSINTENSITYUNIT' literal object.
*
*
* @see #LUMINOUSINTENSITYUNIT_VALUE
* @generated
* @ordered
*/
LUMINOUSINTENSITYUNIT(9, "LUMINOUSINTENSITYUNIT", "LUMINOUSINTENSITYUNIT"),
/**
* The 'DOSEEQUIVALENTUNIT' literal object.
*
*
* @see #DOSEEQUIVALENTUNIT_VALUE
* @generated
* @ordered
*/
DOSEEQUIVALENTUNIT(10, "DOSEEQUIVALENTUNIT", "DOSEEQUIVALENTUNIT"),
/**
* The 'ABSORBEDDOSEUNIT' literal object.
*
*
* @see #ABSORBEDDOSEUNIT_VALUE
* @generated
* @ordered
*/
ABSORBEDDOSEUNIT(11, "ABSORBEDDOSEUNIT", "ABSORBEDDOSEUNIT"),
/**
* The 'ELECTRICCAPACITANCEUNIT' literal object.
*
*
* @see #ELECTRICCAPACITANCEUNIT_VALUE
* @generated
* @ordered
*/
ELECTRICCAPACITANCEUNIT(12, "ELECTRICCAPACITANCEUNIT", "ELECTRICCAPACITANCEUNIT"),
/**
* The 'ELECTRICRESISTANCEUNIT' literal object.
*
*
* @see #ELECTRICRESISTANCEUNIT_VALUE
* @generated
* @ordered
*/
ELECTRICRESISTANCEUNIT(13, "ELECTRICRESISTANCEUNIT", "ELECTRICRESISTANCEUNIT"),
/**
* The 'PRESSUREUNIT' literal object.
*
*
* @see #PRESSUREUNIT_VALUE
* @generated
* @ordered
*/
PRESSUREUNIT(14, "PRESSUREUNIT", "PRESSUREUNIT"),
/**
* The 'ELECTRICVOLTAGEUNIT' literal object.
*
*
* @see #ELECTRICVOLTAGEUNIT_VALUE
* @generated
* @ordered
*/
ELECTRICVOLTAGEUNIT(15, "ELECTRICVOLTAGEUNIT", "ELECTRICVOLTAGEUNIT"),
/**
* The 'MAGNETICFLUXDENSITYUNIT' literal object.
*
*
* @see #MAGNETICFLUXDENSITYUNIT_VALUE
* @generated
* @ordered
*/
MAGNETICFLUXDENSITYUNIT(16, "MAGNETICFLUXDENSITYUNIT", "MAGNETICFLUXDENSITYUNIT"),
/**
* The 'ELECTRICCONDUCTANCEUNIT' literal object.
*
*
* @see #ELECTRICCONDUCTANCEUNIT_VALUE
* @generated
* @ordered
*/
ELECTRICCONDUCTANCEUNIT(17, "ELECTRICCONDUCTANCEUNIT", "ELECTRICCONDUCTANCEUNIT"),
/**
* The 'ILLUMINANCEUNIT' literal object.
*
*
* @see #ILLUMINANCEUNIT_VALUE
* @generated
* @ordered
*/
ILLUMINANCEUNIT(18, "ILLUMINANCEUNIT", "ILLUMINANCEUNIT"),
/**
* The 'INDUCTANCEUNIT' literal object.
*
*
* @see #INDUCTANCEUNIT_VALUE
* @generated
* @ordered
*/
INDUCTANCEUNIT(19, "INDUCTANCEUNIT", "INDUCTANCEUNIT"),
/**
* The 'ELECTRICCHARGEUNIT' literal object.
*
*
* @see #ELECTRICCHARGEUNIT_VALUE
* @generated
* @ordered
*/
ELECTRICCHARGEUNIT(20, "ELECTRICCHARGEUNIT", "ELECTRICCHARGEUNIT"),
/**
* The 'ELECTRICCURRENTUNIT' literal object.
*
*
* @see #ELECTRICCURRENTUNIT_VALUE
* @generated
* @ordered
*/
ELECTRICCURRENTUNIT(21, "ELECTRICCURRENTUNIT", "ELECTRICCURRENTUNIT"),
/**
* The 'POWERUNIT' literal object.
*
*
* @see #POWERUNIT_VALUE
* @generated
* @ordered
*/
POWERUNIT(22, "POWERUNIT", "POWERUNIT"),
/**
* The 'THERMODYNAMICTEMPERATUREUNIT' literal object.
*
*
* @see #THERMODYNAMICTEMPERATUREUNIT_VALUE
* @generated
* @ordered
*/
THERMODYNAMICTEMPERATUREUNIT(23, "THERMODYNAMICTEMPERATUREUNIT", "THERMODYNAMICTEMPERATUREUNIT"),
/**
* The 'VOLUMEUNIT' literal object.
*
*
* @see #VOLUMEUNIT_VALUE
* @generated
* @ordered
*/
VOLUMEUNIT(24, "VOLUMEUNIT", "VOLUMEUNIT"),
/**
* The 'MAGNETICFLUXUNIT' literal object.
*
*
* @see #MAGNETICFLUXUNIT_VALUE
* @generated
* @ordered
*/
MAGNETICFLUXUNIT(25, "MAGNETICFLUXUNIT", "MAGNETICFLUXUNIT"),
/**
* The 'MASSUNIT' literal object.
*
*
* @see #MASSUNIT_VALUE
* @generated
* @ordered
*/
MASSUNIT(26, "MASSUNIT", "MASSUNIT"),
/**
* The 'TIMEUNIT' literal object.
*
*
* @see #TIMEUNIT_VALUE
* @generated
* @ordered
*/
TIMEUNIT(27, "TIMEUNIT", "TIMEUNIT"),
/**
* The 'AREAUNIT' literal object.
*
*
* @see #AREAUNIT_VALUE
* @generated
* @ordered
*/
AREAUNIT(28, "AREAUNIT", "AREAUNIT"),
/**
* The 'FORCEUNIT' literal object.
*
*
* @see #FORCEUNIT_VALUE
* @generated
* @ordered
*/
FORCEUNIT(29, "FORCEUNIT", "FORCEUNIT"),
/**
* The 'PLANEANGLEUNIT' literal object.
*
*
* @see #PLANEANGLEUNIT_VALUE
* @generated
* @ordered
*/
PLANEANGLEUNIT(30, "PLANEANGLEUNIT", "PLANEANGLEUNIT");
/**
* 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 'LENGTHUNIT' literal value.
*
*
* If the meaning of 'LENGTHUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #LENGTHUNIT
* @model
* @generated
* @ordered
*/
public static final int LENGTHUNIT_VALUE = 1;
/**
* The 'SOLIDANGLEUNIT' literal value.
*
*
* If the meaning of 'SOLIDANGLEUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SOLIDANGLEUNIT
* @model
* @generated
* @ordered
*/
public static final int SOLIDANGLEUNIT_VALUE = 2;
/**
* The 'RADIOACTIVITYUNIT' literal value.
*
*
* If the meaning of 'RADIOACTIVITYUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #RADIOACTIVITYUNIT
* @model
* @generated
* @ordered
*/
public static final int RADIOACTIVITYUNIT_VALUE = 3;
/**
* The 'ENERGYUNIT' literal value.
*
*
* If the meaning of 'ENERGYUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ENERGYUNIT
* @model
* @generated
* @ordered
*/
public static final int ENERGYUNIT_VALUE = 4;
/**
* The 'AMOUNTOFSUBSTANCEUNIT' literal value.
*
*
* If the meaning of 'AMOUNTOFSUBSTANCEUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #AMOUNTOFSUBSTANCEUNIT
* @model
* @generated
* @ordered
*/
public static final int AMOUNTOFSUBSTANCEUNIT_VALUE = 5;
/**
* The 'LUMINOUSFLUXUNIT' literal value.
*
*
* If the meaning of 'LUMINOUSFLUXUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #LUMINOUSFLUXUNIT
* @model
* @generated
* @ordered
*/
public static final int LUMINOUSFLUXUNIT_VALUE = 6;
/**
* 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 = 7;
/**
* The 'FREQUENCYUNIT' literal value.
*
*
* If the meaning of 'FREQUENCYUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #FREQUENCYUNIT
* @model
* @generated
* @ordered
*/
public static final int FREQUENCYUNIT_VALUE = 8;
/**
* The 'LUMINOUSINTENSITYUNIT' literal value.
*
*
* If the meaning of 'LUMINOUSINTENSITYUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #LUMINOUSINTENSITYUNIT
* @model
* @generated
* @ordered
*/
public static final int LUMINOUSINTENSITYUNIT_VALUE = 9;
/**
* The 'DOSEEQUIVALENTUNIT' literal value.
*
*
* If the meaning of 'DOSEEQUIVALENTUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #DOSEEQUIVALENTUNIT
* @model
* @generated
* @ordered
*/
public static final int DOSEEQUIVALENTUNIT_VALUE = 10;
/**
* The 'ABSORBEDDOSEUNIT' literal value.
*
*
* If the meaning of 'ABSORBEDDOSEUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ABSORBEDDOSEUNIT
* @model
* @generated
* @ordered
*/
public static final int ABSORBEDDOSEUNIT_VALUE = 11;
/**
* The 'ELECTRICCAPACITANCEUNIT' literal value.
*
*
* If the meaning of 'ELECTRICCAPACITANCEUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ELECTRICCAPACITANCEUNIT
* @model
* @generated
* @ordered
*/
public static final int ELECTRICCAPACITANCEUNIT_VALUE = 12;
/**
* The 'ELECTRICRESISTANCEUNIT' literal value.
*
*
* If the meaning of 'ELECTRICRESISTANCEUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ELECTRICRESISTANCEUNIT
* @model
* @generated
* @ordered
*/
public static final int ELECTRICRESISTANCEUNIT_VALUE = 13;
/**
* The 'PRESSUREUNIT' literal value.
*
*
* If the meaning of 'PRESSUREUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PRESSUREUNIT
* @model
* @generated
* @ordered
*/
public static final int PRESSUREUNIT_VALUE = 14;
/**
* The 'ELECTRICVOLTAGEUNIT' literal value.
*
*
* If the meaning of 'ELECTRICVOLTAGEUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ELECTRICVOLTAGEUNIT
* @model
* @generated
* @ordered
*/
public static final int ELECTRICVOLTAGEUNIT_VALUE = 15;
/**
* The 'MAGNETICFLUXDENSITYUNIT' literal value.
*
*
* If the meaning of 'MAGNETICFLUXDENSITYUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #MAGNETICFLUXDENSITYUNIT
* @model
* @generated
* @ordered
*/
public static final int MAGNETICFLUXDENSITYUNIT_VALUE = 16;
/**
* The 'ELECTRICCONDUCTANCEUNIT' literal value.
*
*
* If the meaning of 'ELECTRICCONDUCTANCEUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ELECTRICCONDUCTANCEUNIT
* @model
* @generated
* @ordered
*/
public static final int ELECTRICCONDUCTANCEUNIT_VALUE = 17;
/**
* The 'ILLUMINANCEUNIT' literal value.
*
*
* If the meaning of 'ILLUMINANCEUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ILLUMINANCEUNIT
* @model
* @generated
* @ordered
*/
public static final int ILLUMINANCEUNIT_VALUE = 18;
/**
* The 'INDUCTANCEUNIT' literal value.
*
*
* If the meaning of 'INDUCTANCEUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #INDUCTANCEUNIT
* @model
* @generated
* @ordered
*/
public static final int INDUCTANCEUNIT_VALUE = 19;
/**
* The 'ELECTRICCHARGEUNIT' literal value.
*
*
* If the meaning of 'ELECTRICCHARGEUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ELECTRICCHARGEUNIT
* @model
* @generated
* @ordered
*/
public static final int ELECTRICCHARGEUNIT_VALUE = 20;
/**
* The 'ELECTRICCURRENTUNIT' literal value.
*
*
* If the meaning of 'ELECTRICCURRENTUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ELECTRICCURRENTUNIT
* @model
* @generated
* @ordered
*/
public static final int ELECTRICCURRENTUNIT_VALUE = 21;
/**
* The 'POWERUNIT' literal value.
*
*
* If the meaning of 'POWERUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #POWERUNIT
* @model
* @generated
* @ordered
*/
public static final int POWERUNIT_VALUE = 22;
/**
* The 'THERMODYNAMICTEMPERATUREUNIT' literal value.
*
*
* If the meaning of 'THERMODYNAMICTEMPERATUREUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #THERMODYNAMICTEMPERATUREUNIT
* @model
* @generated
* @ordered
*/
public static final int THERMODYNAMICTEMPERATUREUNIT_VALUE = 23;
/**
* The 'VOLUMEUNIT' literal value.
*
*
* If the meaning of 'VOLUMEUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #VOLUMEUNIT
* @model
* @generated
* @ordered
*/
public static final int VOLUMEUNIT_VALUE = 24;
/**
* The 'MAGNETICFLUXUNIT' literal value.
*
*
* If the meaning of 'MAGNETICFLUXUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #MAGNETICFLUXUNIT
* @model
* @generated
* @ordered
*/
public static final int MAGNETICFLUXUNIT_VALUE = 25;
/**
* The 'MASSUNIT' literal value.
*
*
* If the meaning of 'MASSUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #MASSUNIT
* @model
* @generated
* @ordered
*/
public static final int MASSUNIT_VALUE = 26;
/**
* The 'TIMEUNIT' literal value.
*
*
* If the meaning of 'TIMEUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #TIMEUNIT
* @model
* @generated
* @ordered
*/
public static final int TIMEUNIT_VALUE = 27;
/**
* The 'AREAUNIT' literal value.
*
*
* If the meaning of 'AREAUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #AREAUNIT
* @model
* @generated
* @ordered
*/
public static final int AREAUNIT_VALUE = 28;
/**
* The 'FORCEUNIT' literal value.
*
*
* If the meaning of 'FORCEUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #FORCEUNIT
* @model
* @generated
* @ordered
*/
public static final int FORCEUNIT_VALUE = 29;
/**
* The 'PLANEANGLEUNIT' literal value.
*
*
* If the meaning of 'PLANEANGLEUNIT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PLANEANGLEUNIT
* @model
* @generated
* @ordered
*/
public static final int PLANEANGLEUNIT_VALUE = 30;
/**
* An array of all the 'Ifc Unit Enum' enumerators.
*
*
* @generated
*/
private static final IfcUnitEnum[] VALUES_ARRAY = new IfcUnitEnum[] { NULL, LENGTHUNIT, SOLIDANGLEUNIT, RADIOACTIVITYUNIT, ENERGYUNIT, AMOUNTOFSUBSTANCEUNIT, LUMINOUSFLUXUNIT, USERDEFINED, FREQUENCYUNIT, LUMINOUSINTENSITYUNIT,
DOSEEQUIVALENTUNIT, ABSORBEDDOSEUNIT, ELECTRICCAPACITANCEUNIT, ELECTRICRESISTANCEUNIT, PRESSUREUNIT, ELECTRICVOLTAGEUNIT, MAGNETICFLUXDENSITYUNIT, ELECTRICCONDUCTANCEUNIT, ILLUMINANCEUNIT, INDUCTANCEUNIT, ELECTRICCHARGEUNIT,
ELECTRICCURRENTUNIT, POWERUNIT, THERMODYNAMICTEMPERATUREUNIT, VOLUMEUNIT, MAGNETICFLUXUNIT, MASSUNIT, TIMEUNIT, AREAUNIT, FORCEUNIT, PLANEANGLEUNIT, };
/**
* A public read-only list of all the 'Ifc Unit Enum' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Ifc Unit Enum' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcUnitEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcUnitEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Unit Enum' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcUnitEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcUnitEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Unit Enum' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcUnitEnum get(int value) {
switch (value) {
case NULL_VALUE:
return NULL;
case LENGTHUNIT_VALUE:
return LENGTHUNIT;
case SOLIDANGLEUNIT_VALUE:
return SOLIDANGLEUNIT;
case RADIOACTIVITYUNIT_VALUE:
return RADIOACTIVITYUNIT;
case ENERGYUNIT_VALUE:
return ENERGYUNIT;
case AMOUNTOFSUBSTANCEUNIT_VALUE:
return AMOUNTOFSUBSTANCEUNIT;
case LUMINOUSFLUXUNIT_VALUE:
return LUMINOUSFLUXUNIT;
case USERDEFINED_VALUE:
return USERDEFINED;
case FREQUENCYUNIT_VALUE:
return FREQUENCYUNIT;
case LUMINOUSINTENSITYUNIT_VALUE:
return LUMINOUSINTENSITYUNIT;
case DOSEEQUIVALENTUNIT_VALUE:
return DOSEEQUIVALENTUNIT;
case ABSORBEDDOSEUNIT_VALUE:
return ABSORBEDDOSEUNIT;
case ELECTRICCAPACITANCEUNIT_VALUE:
return ELECTRICCAPACITANCEUNIT;
case ELECTRICRESISTANCEUNIT_VALUE:
return ELECTRICRESISTANCEUNIT;
case PRESSUREUNIT_VALUE:
return PRESSUREUNIT;
case ELECTRICVOLTAGEUNIT_VALUE:
return ELECTRICVOLTAGEUNIT;
case MAGNETICFLUXDENSITYUNIT_VALUE:
return MAGNETICFLUXDENSITYUNIT;
case ELECTRICCONDUCTANCEUNIT_VALUE:
return ELECTRICCONDUCTANCEUNIT;
case ILLUMINANCEUNIT_VALUE:
return ILLUMINANCEUNIT;
case INDUCTANCEUNIT_VALUE:
return INDUCTANCEUNIT;
case ELECTRICCHARGEUNIT_VALUE:
return ELECTRICCHARGEUNIT;
case ELECTRICCURRENTUNIT_VALUE:
return ELECTRICCURRENTUNIT;
case POWERUNIT_VALUE:
return POWERUNIT;
case THERMODYNAMICTEMPERATUREUNIT_VALUE:
return THERMODYNAMICTEMPERATUREUNIT;
case VOLUMEUNIT_VALUE:
return VOLUMEUNIT;
case MAGNETICFLUXUNIT_VALUE:
return MAGNETICFLUXUNIT;
case MASSUNIT_VALUE:
return MASSUNIT;
case TIMEUNIT_VALUE:
return TIMEUNIT;
case AREAUNIT_VALUE:
return AREAUNIT;
case FORCEUNIT_VALUE:
return FORCEUNIT;
case PLANEANGLEUNIT_VALUE:
return PLANEANGLEUNIT;
}
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 IfcUnitEnum(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;
}
} //IfcUnitEnum