
org.bimserver.models.ifc4.IfcSIUnitName 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.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 SI Unit Name',
* and utility methods for working with them.
*
* @see org.bimserver.models.ifc4.Ifc4Package#getIfcSIUnitName()
* @model
* @generated
*/
public enum IfcSIUnitName implements Enumerator {
/**
* The 'NULL' literal object.
*
*
* @see #NULL_VALUE
* @generated
* @ordered
*/
NULL(0, "NULL", "NULL"),
/**
* The 'RADIAN' literal object.
*
*
* @see #RADIAN_VALUE
* @generated
* @ordered
*/
RADIAN(1, "RADIAN", "RADIAN"),
/**
* The 'GRAY' literal object.
*
*
* @see #GRAY_VALUE
* @generated
* @ordered
*/
GRAY(2, "GRAY", "GRAY"),
/**
* The 'BECQUEREL' literal object.
*
*
* @see #BECQUEREL_VALUE
* @generated
* @ordered
*/
BECQUEREL(3, "BECQUEREL", "BECQUEREL"),
/**
* The 'DEGREE CELSIUS' literal object.
*
*
* @see #DEGREE_CELSIUS_VALUE
* @generated
* @ordered
*/
DEGREE_CELSIUS(4, "DEGREE_CELSIUS", "DEGREE_CELSIUS"),
/**
* The 'CUBIC METRE' literal object.
*
*
* @see #CUBIC_METRE_VALUE
* @generated
* @ordered
*/
CUBIC_METRE(5, "CUBIC_METRE", "CUBIC_METRE"),
/**
* The 'SIEVERT' literal object.
*
*
* @see #SIEVERT_VALUE
* @generated
* @ordered
*/
SIEVERT(6, "SIEVERT", "SIEVERT"),
/**
* The 'WEBER' literal object.
*
*
* @see #WEBER_VALUE
* @generated
* @ordered
*/
WEBER(7, "WEBER", "WEBER"),
/**
* The 'PASCAL' literal object.
*
*
* @see #PASCAL_VALUE
* @generated
* @ordered
*/
PASCAL(8, "PASCAL", "PASCAL"),
/**
* The 'OHM' literal object.
*
*
* @see #OHM_VALUE
* @generated
* @ordered
*/
OHM(9, "OHM", "OHM"),
/**
* The 'AMPERE' literal object.
*
*
* @see #AMPERE_VALUE
* @generated
* @ordered
*/
AMPERE(10, "AMPERE", "AMPERE"),
/**
* The 'LUMEN' literal object.
*
*
* @see #LUMEN_VALUE
* @generated
* @ordered
*/
LUMEN(11, "LUMEN", "LUMEN"),
/**
* The 'JOULE' literal object.
*
*
* @see #JOULE_VALUE
* @generated
* @ordered
*/
JOULE(12, "JOULE", "JOULE"),
/**
* The 'COULOMB' literal object.
*
*
* @see #COULOMB_VALUE
* @generated
* @ordered
*/
COULOMB(13, "COULOMB", "COULOMB"),
/**
* The 'KELVIN' literal object.
*
*
* @see #KELVIN_VALUE
* @generated
* @ordered
*/
KELVIN(14, "KELVIN", "KELVIN"),
/**
* The 'WATT' literal object.
*
*
* @see #WATT_VALUE
* @generated
* @ordered
*/
WATT(15, "WATT", "WATT"),
/**
* The 'FARAD' literal object.
*
*
* @see #FARAD_VALUE
* @generated
* @ordered
*/
FARAD(16, "FARAD", "FARAD"),
/**
* The 'STERADIAN' literal object.
*
*
* @see #STERADIAN_VALUE
* @generated
* @ordered
*/
STERADIAN(17, "STERADIAN", "STERADIAN"),
/**
* The 'VOLT' literal object.
*
*
* @see #VOLT_VALUE
* @generated
* @ordered
*/
VOLT(18, "VOLT", "VOLT"),
/**
* The 'SIEMENS' literal object.
*
*
* @see #SIEMENS_VALUE
* @generated
* @ordered
*/
SIEMENS(19, "SIEMENS", "SIEMENS"),
/**
* The 'HERTZ' literal object.
*
*
* @see #HERTZ_VALUE
* @generated
* @ordered
*/
HERTZ(20, "HERTZ", "HERTZ"),
/**
* The 'SQUARE METRE' literal object.
*
*
* @see #SQUARE_METRE_VALUE
* @generated
* @ordered
*/
SQUARE_METRE(21, "SQUARE_METRE", "SQUARE_METRE"),
/**
* The 'LUX' literal object.
*
*
* @see #LUX_VALUE
* @generated
* @ordered
*/
LUX(22, "LUX", "LUX"),
/**
* The 'HENRY' literal object.
*
*
* @see #HENRY_VALUE
* @generated
* @ordered
*/
HENRY(23, "HENRY", "HENRY"),
/**
* The 'CANDELA' literal object.
*
*
* @see #CANDELA_VALUE
* @generated
* @ordered
*/
CANDELA(24, "CANDELA", "CANDELA"),
/**
* The 'METRE' literal object.
*
*
* @see #METRE_VALUE
* @generated
* @ordered
*/
METRE(25, "METRE", "METRE"),
/**
* The 'GRAM' literal object.
*
*
* @see #GRAM_VALUE
* @generated
* @ordered
*/
GRAM(26, "GRAM", "GRAM"),
/**
* The 'TESLA' literal object.
*
*
* @see #TESLA_VALUE
* @generated
* @ordered
*/
TESLA(27, "TESLA", "TESLA"),
/**
* The 'SECOND' literal object.
*
*
* @see #SECOND_VALUE
* @generated
* @ordered
*/
SECOND(28, "SECOND", "SECOND"),
/**
* The 'NEWTON' literal object.
*
*
* @see #NEWTON_VALUE
* @generated
* @ordered
*/
NEWTON(29, "NEWTON", "NEWTON"),
/**
* The 'MOLE' literal object.
*
*
* @see #MOLE_VALUE
* @generated
* @ordered
*/
MOLE(30, "MOLE", "MOLE");
/**
* 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 'RADIAN' literal value.
*
*
* If the meaning of 'RADIAN' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #RADIAN
* @model
* @generated
* @ordered
*/
public static final int RADIAN_VALUE = 1;
/**
* The 'GRAY' literal value.
*
*
* If the meaning of 'GRAY' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #GRAY
* @model
* @generated
* @ordered
*/
public static final int GRAY_VALUE = 2;
/**
* The 'BECQUEREL' literal value.
*
*
* If the meaning of 'BECQUEREL' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #BECQUEREL
* @model
* @generated
* @ordered
*/
public static final int BECQUEREL_VALUE = 3;
/**
* The 'DEGREE CELSIUS' literal value.
*
*
* If the meaning of 'DEGREE CELSIUS' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #DEGREE_CELSIUS
* @model
* @generated
* @ordered
*/
public static final int DEGREE_CELSIUS_VALUE = 4;
/**
* The 'CUBIC METRE' literal value.
*
*
* If the meaning of 'CUBIC METRE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CUBIC_METRE
* @model
* @generated
* @ordered
*/
public static final int CUBIC_METRE_VALUE = 5;
/**
* The 'SIEVERT' literal value.
*
*
* If the meaning of 'SIEVERT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SIEVERT
* @model
* @generated
* @ordered
*/
public static final int SIEVERT_VALUE = 6;
/**
* The 'WEBER' literal value.
*
*
* If the meaning of 'WEBER' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #WEBER
* @model
* @generated
* @ordered
*/
public static final int WEBER_VALUE = 7;
/**
* The 'PASCAL' literal value.
*
*
* If the meaning of 'PASCAL' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PASCAL
* @model
* @generated
* @ordered
*/
public static final int PASCAL_VALUE = 8;
/**
* The 'OHM' literal value.
*
*
* If the meaning of 'OHM' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #OHM
* @model
* @generated
* @ordered
*/
public static final int OHM_VALUE = 9;
/**
* The 'AMPERE' literal value.
*
*
* If the meaning of 'AMPERE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #AMPERE
* @model
* @generated
* @ordered
*/
public static final int AMPERE_VALUE = 10;
/**
* The 'LUMEN' literal value.
*
*
* If the meaning of 'LUMEN' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #LUMEN
* @model
* @generated
* @ordered
*/
public static final int LUMEN_VALUE = 11;
/**
* The 'JOULE' literal value.
*
*
* If the meaning of 'JOULE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #JOULE
* @model
* @generated
* @ordered
*/
public static final int JOULE_VALUE = 12;
/**
* The 'COULOMB' literal value.
*
*
* If the meaning of 'COULOMB' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #COULOMB
* @model
* @generated
* @ordered
*/
public static final int COULOMB_VALUE = 13;
/**
* The 'KELVIN' literal value.
*
*
* If the meaning of 'KELVIN' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #KELVIN
* @model
* @generated
* @ordered
*/
public static final int KELVIN_VALUE = 14;
/**
* The 'WATT' literal value.
*
*
* If the meaning of 'WATT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #WATT
* @model
* @generated
* @ordered
*/
public static final int WATT_VALUE = 15;
/**
* The 'FARAD' literal value.
*
*
* If the meaning of 'FARAD' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #FARAD
* @model
* @generated
* @ordered
*/
public static final int FARAD_VALUE = 16;
/**
* The 'STERADIAN' literal value.
*
*
* If the meaning of 'STERADIAN' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #STERADIAN
* @model
* @generated
* @ordered
*/
public static final int STERADIAN_VALUE = 17;
/**
* The 'VOLT' literal value.
*
*
* If the meaning of 'VOLT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #VOLT
* @model
* @generated
* @ordered
*/
public static final int VOLT_VALUE = 18;
/**
* The 'SIEMENS' literal value.
*
*
* If the meaning of 'SIEMENS' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SIEMENS
* @model
* @generated
* @ordered
*/
public static final int SIEMENS_VALUE = 19;
/**
* The 'HERTZ' literal value.
*
*
* If the meaning of 'HERTZ' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #HERTZ
* @model
* @generated
* @ordered
*/
public static final int HERTZ_VALUE = 20;
/**
* The 'SQUARE METRE' literal value.
*
*
* If the meaning of 'SQUARE METRE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SQUARE_METRE
* @model
* @generated
* @ordered
*/
public static final int SQUARE_METRE_VALUE = 21;
/**
* The 'LUX' literal value.
*
*
* If the meaning of 'LUX' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #LUX
* @model
* @generated
* @ordered
*/
public static final int LUX_VALUE = 22;
/**
* The 'HENRY' literal value.
*
*
* If the meaning of 'HENRY' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #HENRY
* @model
* @generated
* @ordered
*/
public static final int HENRY_VALUE = 23;
/**
* The 'CANDELA' literal value.
*
*
* If the meaning of 'CANDELA' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CANDELA
* @model
* @generated
* @ordered
*/
public static final int CANDELA_VALUE = 24;
/**
* The 'METRE' literal value.
*
*
* If the meaning of 'METRE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #METRE
* @model
* @generated
* @ordered
*/
public static final int METRE_VALUE = 25;
/**
* The 'GRAM' literal value.
*
*
* If the meaning of 'GRAM' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #GRAM
* @model
* @generated
* @ordered
*/
public static final int GRAM_VALUE = 26;
/**
* The 'TESLA' literal value.
*
*
* If the meaning of 'TESLA' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #TESLA
* @model
* @generated
* @ordered
*/
public static final int TESLA_VALUE = 27;
/**
* The 'SECOND' literal value.
*
*
* If the meaning of 'SECOND' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SECOND
* @model
* @generated
* @ordered
*/
public static final int SECOND_VALUE = 28;
/**
* The 'NEWTON' literal value.
*
*
* If the meaning of 'NEWTON' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #NEWTON
* @model
* @generated
* @ordered
*/
public static final int NEWTON_VALUE = 29;
/**
* The 'MOLE' literal value.
*
*
* If the meaning of 'MOLE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #MOLE
* @model
* @generated
* @ordered
*/
public static final int MOLE_VALUE = 30;
/**
* An array of all the 'Ifc SI Unit Name' enumerators.
*
*
* @generated
*/
private static final IfcSIUnitName[] VALUES_ARRAY = new IfcSIUnitName[] { NULL, RADIAN, GRAY, BECQUEREL,
DEGREE_CELSIUS, CUBIC_METRE, SIEVERT, WEBER, PASCAL, OHM, AMPERE, LUMEN, JOULE, COULOMB, KELVIN, WATT,
FARAD, STERADIAN, VOLT, SIEMENS, HERTZ, SQUARE_METRE, LUX, HENRY, CANDELA, METRE, GRAM, TESLA, SECOND,
NEWTON, MOLE, };
/**
* A public read-only list of all the 'Ifc SI Unit Name' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Ifc SI Unit Name' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcSIUnitName get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcSIUnitName result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc SI Unit Name' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcSIUnitName getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcSIUnitName result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc SI Unit Name' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcSIUnitName get(int value) {
switch (value) {
case NULL_VALUE:
return NULL;
case RADIAN_VALUE:
return RADIAN;
case GRAY_VALUE:
return GRAY;
case BECQUEREL_VALUE:
return BECQUEREL;
case DEGREE_CELSIUS_VALUE:
return DEGREE_CELSIUS;
case CUBIC_METRE_VALUE:
return CUBIC_METRE;
case SIEVERT_VALUE:
return SIEVERT;
case WEBER_VALUE:
return WEBER;
case PASCAL_VALUE:
return PASCAL;
case OHM_VALUE:
return OHM;
case AMPERE_VALUE:
return AMPERE;
case LUMEN_VALUE:
return LUMEN;
case JOULE_VALUE:
return JOULE;
case COULOMB_VALUE:
return COULOMB;
case KELVIN_VALUE:
return KELVIN;
case WATT_VALUE:
return WATT;
case FARAD_VALUE:
return FARAD;
case STERADIAN_VALUE:
return STERADIAN;
case VOLT_VALUE:
return VOLT;
case SIEMENS_VALUE:
return SIEMENS;
case HERTZ_VALUE:
return HERTZ;
case SQUARE_METRE_VALUE:
return SQUARE_METRE;
case LUX_VALUE:
return LUX;
case HENRY_VALUE:
return HENRY;
case CANDELA_VALUE:
return CANDELA;
case METRE_VALUE:
return METRE;
case GRAM_VALUE:
return GRAM;
case TESLA_VALUE:
return TESLA;
case SECOND_VALUE:
return SECOND;
case NEWTON_VALUE:
return NEWTON;
case MOLE_VALUE:
return MOLE;
}
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 IfcSIUnitName(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;
}
} //IfcSIUnitName