org.bimserver.models.ifc2x3tc1.IfcServiceLifeFactorTypeEnum 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 Service Life Factor Type Enum',
* and utility methods for working with them.
*
* @see org.bimserver.models.ifc2x3tc1.Ifc2x3tc1Package#getIfcServiceLifeFactorTypeEnum()
* @model
* @generated
*/
public enum IfcServiceLifeFactorTypeEnum implements Enumerator {
/**
* The 'NULL' literal object.
*
*
* @see #NULL_VALUE
* @generated
* @ordered
*/
NULL(0, "NULL", "NULL"),
/**
* The 'GMAINTENANCELEVEL' literal object.
*
*
* @see #GMAINTENANCELEVEL_VALUE
* @generated
* @ordered
*/
GMAINTENANCELEVEL(1, "G_MAINTENANCELEVEL", "G_MAINTENANCELEVEL"),
/**
* The 'BDESIGNLEVEL' literal object.
*
*
* @see #BDESIGNLEVEL_VALUE
* @generated
* @ordered
*/
BDESIGNLEVEL(2, "B_DESIGNLEVEL", "B_DESIGNLEVEL"),
/**
* The 'NOTDEFINED' literal object.
*
*
* @see #NOTDEFINED_VALUE
* @generated
* @ordered
*/
NOTDEFINED(3, "NOTDEFINED", "NOTDEFINED"),
/**
* The 'EOUTDOORENVIRONMENT' literal object.
*
*
* @see #EOUTDOORENVIRONMENT_VALUE
* @generated
* @ordered
*/
EOUTDOORENVIRONMENT(4, "E_OUTDOORENVIRONMENT", "E_OUTDOORENVIRONMENT"),
/**
* The 'AQUALITYOFCOMPONENTS' literal object.
*
*
* @see #AQUALITYOFCOMPONENTS_VALUE
* @generated
* @ordered
*/
AQUALITYOFCOMPONENTS(5, "A_QUALITYOFCOMPONENTS", "A_QUALITYOFCOMPONENTS"),
/**
* The 'FINUSECONDITIONS' literal object.
*
*
* @see #FINUSECONDITIONS_VALUE
* @generated
* @ordered
*/
FINUSECONDITIONS(6, "F_INUSECONDITIONS", "F_INUSECONDITIONS"),
/**
* The 'USERDEFINED' literal object.
*
*
* @see #USERDEFINED_VALUE
* @generated
* @ordered
*/
USERDEFINED(7, "USERDEFINED", "USERDEFINED"),
/**
* The 'CWORKEXECUTIONLEVEL' literal object.
*
*
* @see #CWORKEXECUTIONLEVEL_VALUE
* @generated
* @ordered
*/
CWORKEXECUTIONLEVEL(8, "C_WORKEXECUTIONLEVEL", "C_WORKEXECUTIONLEVEL"),
/**
* The 'DINDOORENVIRONMENT' literal object.
*
*
* @see #DINDOORENVIRONMENT_VALUE
* @generated
* @ordered
*/
DINDOORENVIRONMENT(9, "D_INDOORENVIRONMENT", "D_INDOORENVIRONMENT");
/**
* 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 'GMAINTENANCELEVEL' literal value.
*
*
* If the meaning of 'GMAINTENANCELEVEL' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #GMAINTENANCELEVEL
* @model name="G_MAINTENANCELEVEL"
* @generated
* @ordered
*/
public static final int GMAINTENANCELEVEL_VALUE = 1;
/**
* The 'BDESIGNLEVEL' literal value.
*
*
* If the meaning of 'BDESIGNLEVEL' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #BDESIGNLEVEL
* @model name="B_DESIGNLEVEL"
* @generated
* @ordered
*/
public static final int BDESIGNLEVEL_VALUE = 2;
/**
* 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 = 3;
/**
* The 'EOUTDOORENVIRONMENT' literal value.
*
*
* If the meaning of 'EOUTDOORENVIRONMENT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #EOUTDOORENVIRONMENT
* @model name="E_OUTDOORENVIRONMENT"
* @generated
* @ordered
*/
public static final int EOUTDOORENVIRONMENT_VALUE = 4;
/**
* The 'AQUALITYOFCOMPONENTS' literal value.
*
*
* If the meaning of 'AQUALITYOFCOMPONENTS' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #AQUALITYOFCOMPONENTS
* @model name="A_QUALITYOFCOMPONENTS"
* @generated
* @ordered
*/
public static final int AQUALITYOFCOMPONENTS_VALUE = 5;
/**
* The 'FINUSECONDITIONS' literal value.
*
*
* If the meaning of 'FINUSECONDITIONS' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #FINUSECONDITIONS
* @model name="F_INUSECONDITIONS"
* @generated
* @ordered
*/
public static final int FINUSECONDITIONS_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 'CWORKEXECUTIONLEVEL' literal value.
*
*
* If the meaning of 'CWORKEXECUTIONLEVEL' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CWORKEXECUTIONLEVEL
* @model name="C_WORKEXECUTIONLEVEL"
* @generated
* @ordered
*/
public static final int CWORKEXECUTIONLEVEL_VALUE = 8;
/**
* The 'DINDOORENVIRONMENT' literal value.
*
*
* If the meaning of 'DINDOORENVIRONMENT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #DINDOORENVIRONMENT
* @model name="D_INDOORENVIRONMENT"
* @generated
* @ordered
*/
public static final int DINDOORENVIRONMENT_VALUE = 9;
/**
* An array of all the 'Ifc Service Life Factor Type Enum' enumerators.
*
*
* @generated
*/
private static final IfcServiceLifeFactorTypeEnum[] VALUES_ARRAY = new IfcServiceLifeFactorTypeEnum[] { NULL,
GMAINTENANCELEVEL, BDESIGNLEVEL, NOTDEFINED, EOUTDOORENVIRONMENT, AQUALITYOFCOMPONENTS, FINUSECONDITIONS,
USERDEFINED, CWORKEXECUTIONLEVEL, DINDOORENVIRONMENT, };
/**
* A public read-only list of all the 'Ifc Service Life Factor Type Enum' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections
.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Ifc Service Life Factor Type Enum' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcServiceLifeFactorTypeEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcServiceLifeFactorTypeEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Service Life Factor Type Enum' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcServiceLifeFactorTypeEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcServiceLifeFactorTypeEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Service Life Factor Type Enum' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcServiceLifeFactorTypeEnum get(int value) {
switch (value) {
case NULL_VALUE:
return NULL;
case GMAINTENANCELEVEL_VALUE:
return GMAINTENANCELEVEL;
case BDESIGNLEVEL_VALUE:
return BDESIGNLEVEL;
case NOTDEFINED_VALUE:
return NOTDEFINED;
case EOUTDOORENVIRONMENT_VALUE:
return EOUTDOORENVIRONMENT;
case AQUALITYOFCOMPONENTS_VALUE:
return AQUALITYOFCOMPONENTS;
case FINUSECONDITIONS_VALUE:
return FINUSECONDITIONS;
case USERDEFINED_VALUE:
return USERDEFINED;
case CWORKEXECUTIONLEVEL_VALUE:
return CWORKEXECUTIONLEVEL;
case DINDOORENVIRONMENT_VALUE:
return DINDOORENVIRONMENT;
}
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 IfcServiceLifeFactorTypeEnum(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;
}
} //IfcServiceLifeFactorTypeEnum