org.bimserver.models.ifc4.IfcRoofTypeEnum 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 Roof Type Enum',
* and utility methods for working with them.
*
* @see org.bimserver.models.ifc4.Ifc4Package#getIfcRoofTypeEnum()
* @model
* @generated
*/
public enum IfcRoofTypeEnum implements Enumerator {
/**
* The 'NULL' literal object.
*
*
* @see #NULL_VALUE
* @generated
* @ordered
*/
NULL(0, "NULL", "NULL"),
/**
* The 'SHED ROOF' literal object.
*
*
* @see #SHED_ROOF_VALUE
* @generated
* @ordered
*/
SHED_ROOF(1, "SHED_ROOF", "SHED_ROOF"),
/**
* The 'HIP ROOF' literal object.
*
*
* @see #HIP_ROOF_VALUE
* @generated
* @ordered
*/
HIP_ROOF(2, "HIP_ROOF", "HIP_ROOF"),
/**
* The 'FLAT ROOF' literal object.
*
*
* @see #FLAT_ROOF_VALUE
* @generated
* @ordered
*/
FLAT_ROOF(3, "FLAT_ROOF", "FLAT_ROOF"),
/**
* The 'BUTTERFLY ROOF' literal object.
*
*
* @see #BUTTERFLY_ROOF_VALUE
* @generated
* @ordered
*/
BUTTERFLY_ROOF(4, "BUTTERFLY_ROOF", "BUTTERFLY_ROOF"),
/**
* The 'RAINBOW ROOF' literal object.
*
*
* @see #RAINBOW_ROOF_VALUE
* @generated
* @ordered
*/
RAINBOW_ROOF(5, "RAINBOW_ROOF", "RAINBOW_ROOF"),
/**
* The 'BARREL ROOF' literal object.
*
*
* @see #BARREL_ROOF_VALUE
* @generated
* @ordered
*/
BARREL_ROOF(6, "BARREL_ROOF", "BARREL_ROOF"),
/**
* The 'USERDEFINED' literal object.
*
*
* @see #USERDEFINED_VALUE
* @generated
* @ordered
*/
USERDEFINED(7, "USERDEFINED", "USERDEFINED"),
/**
* The 'FREEFORM' literal object.
*
*
* @see #FREEFORM_VALUE
* @generated
* @ordered
*/
FREEFORM(8, "FREEFORM", "FREEFORM"),
/**
* The 'HIPPED GABLE ROOF' literal object.
*
*
* @see #HIPPED_GABLE_ROOF_VALUE
* @generated
* @ordered
*/
HIPPED_GABLE_ROOF(9, "HIPPED_GABLE_ROOF", "HIPPED_GABLE_ROOF"),
/**
* The 'NOTDEFINED' literal object.
*
*
* @see #NOTDEFINED_VALUE
* @generated
* @ordered
*/
NOTDEFINED(10, "NOTDEFINED", "NOTDEFINED"),
/**
* The 'PAVILION ROOF' literal object.
*
*
* @see #PAVILION_ROOF_VALUE
* @generated
* @ordered
*/
PAVILION_ROOF(11, "PAVILION_ROOF", "PAVILION_ROOF"),
/**
* The 'GABLE ROOF' literal object.
*
*
* @see #GABLE_ROOF_VALUE
* @generated
* @ordered
*/
GABLE_ROOF(12, "GABLE_ROOF", "GABLE_ROOF"),
/**
* The 'GAMBREL ROOF' literal object.
*
*
* @see #GAMBREL_ROOF_VALUE
* @generated
* @ordered
*/
GAMBREL_ROOF(13, "GAMBREL_ROOF", "GAMBREL_ROOF"),
/**
* The 'DOME ROOF' literal object.
*
*
* @see #DOME_ROOF_VALUE
* @generated
* @ordered
*/
DOME_ROOF(14, "DOME_ROOF", "DOME_ROOF"),
/**
* The 'MANSARD ROOF' literal object.
*
*
* @see #MANSARD_ROOF_VALUE
* @generated
* @ordered
*/
MANSARD_ROOF(15, "MANSARD_ROOF", "MANSARD_ROOF");
/**
* 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 'SHED ROOF' literal value.
*
*
* If the meaning of 'SHED ROOF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SHED_ROOF
* @model
* @generated
* @ordered
*/
public static final int SHED_ROOF_VALUE = 1;
/**
* The 'HIP ROOF' literal value.
*
*
* If the meaning of 'HIP ROOF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #HIP_ROOF
* @model
* @generated
* @ordered
*/
public static final int HIP_ROOF_VALUE = 2;
/**
* The 'FLAT ROOF' literal value.
*
*
* If the meaning of 'FLAT ROOF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #FLAT_ROOF
* @model
* @generated
* @ordered
*/
public static final int FLAT_ROOF_VALUE = 3;
/**
* The 'BUTTERFLY ROOF' literal value.
*
*
* If the meaning of 'BUTTERFLY ROOF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #BUTTERFLY_ROOF
* @model
* @generated
* @ordered
*/
public static final int BUTTERFLY_ROOF_VALUE = 4;
/**
* The 'RAINBOW ROOF' literal value.
*
*
* If the meaning of 'RAINBOW ROOF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #RAINBOW_ROOF
* @model
* @generated
* @ordered
*/
public static final int RAINBOW_ROOF_VALUE = 5;
/**
* The 'BARREL ROOF' literal value.
*
*
* If the meaning of 'BARREL ROOF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #BARREL_ROOF
* @model
* @generated
* @ordered
*/
public static final int BARREL_ROOF_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 'FREEFORM' literal value.
*
*
* If the meaning of 'FREEFORM' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #FREEFORM
* @model
* @generated
* @ordered
*/
public static final int FREEFORM_VALUE = 8;
/**
* The 'HIPPED GABLE ROOF' literal value.
*
*
* If the meaning of 'HIPPED GABLE ROOF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #HIPPED_GABLE_ROOF
* @model
* @generated
* @ordered
*/
public static final int HIPPED_GABLE_ROOF_VALUE = 9;
/**
* 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 = 10;
/**
* The 'PAVILION ROOF' literal value.
*
*
* If the meaning of 'PAVILION ROOF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PAVILION_ROOF
* @model
* @generated
* @ordered
*/
public static final int PAVILION_ROOF_VALUE = 11;
/**
* The 'GABLE ROOF' literal value.
*
*
* If the meaning of 'GABLE ROOF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #GABLE_ROOF
* @model
* @generated
* @ordered
*/
public static final int GABLE_ROOF_VALUE = 12;
/**
* The 'GAMBREL ROOF' literal value.
*
*
* If the meaning of 'GAMBREL ROOF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #GAMBREL_ROOF
* @model
* @generated
* @ordered
*/
public static final int GAMBREL_ROOF_VALUE = 13;
/**
* The 'DOME ROOF' literal value.
*
*
* If the meaning of 'DOME ROOF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #DOME_ROOF
* @model
* @generated
* @ordered
*/
public static final int DOME_ROOF_VALUE = 14;
/**
* The 'MANSARD ROOF' literal value.
*
*
* If the meaning of 'MANSARD ROOF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #MANSARD_ROOF
* @model
* @generated
* @ordered
*/
public static final int MANSARD_ROOF_VALUE = 15;
/**
* An array of all the 'Ifc Roof Type Enum' enumerators.
*
*
* @generated
*/
private static final IfcRoofTypeEnum[] VALUES_ARRAY = new IfcRoofTypeEnum[] { NULL, SHED_ROOF, HIP_ROOF, FLAT_ROOF, BUTTERFLY_ROOF, RAINBOW_ROOF, BARREL_ROOF, USERDEFINED, FREEFORM, HIPPED_GABLE_ROOF, NOTDEFINED, PAVILION_ROOF,
GABLE_ROOF, GAMBREL_ROOF, DOME_ROOF, MANSARD_ROOF, };
/**
* A public read-only list of all the 'Ifc Roof Type Enum' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Ifc Roof Type Enum' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcRoofTypeEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcRoofTypeEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Roof Type Enum' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcRoofTypeEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcRoofTypeEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Roof Type Enum' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcRoofTypeEnum get(int value) {
switch (value) {
case NULL_VALUE:
return NULL;
case SHED_ROOF_VALUE:
return SHED_ROOF;
case HIP_ROOF_VALUE:
return HIP_ROOF;
case FLAT_ROOF_VALUE:
return FLAT_ROOF;
case BUTTERFLY_ROOF_VALUE:
return BUTTERFLY_ROOF;
case RAINBOW_ROOF_VALUE:
return RAINBOW_ROOF;
case BARREL_ROOF_VALUE:
return BARREL_ROOF;
case USERDEFINED_VALUE:
return USERDEFINED;
case FREEFORM_VALUE:
return FREEFORM;
case HIPPED_GABLE_ROOF_VALUE:
return HIPPED_GABLE_ROOF;
case NOTDEFINED_VALUE:
return NOTDEFINED;
case PAVILION_ROOF_VALUE:
return PAVILION_ROOF;
case GABLE_ROOF_VALUE:
return GABLE_ROOF;
case GAMBREL_ROOF_VALUE:
return GAMBREL_ROOF;
case DOME_ROOF_VALUE:
return DOME_ROOF;
case MANSARD_ROOF_VALUE:
return MANSARD_ROOF;
}
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 IfcRoofTypeEnum(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;
}
} //IfcRoofTypeEnum