org.bimserver.models.ifc2x3tc1.IfcProcedureTypeEnum 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.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 Procedure Type Enum',
* and utility methods for working with them.
*
* @see org.bimserver.models.ifc2x3tc1.Ifc2x3tc1Package#getIfcProcedureTypeEnum()
* @model
* @generated
*/
public enum IfcProcedureTypeEnum implements Enumerator {
/**
* The 'NULL' literal object.
*
*
* @see #NULL_VALUE
* @generated
* @ordered
*/
NULL(0, "NULL", "NULL"),
/**
* The 'CALIBRATION' literal object.
*
*
* @see #CALIBRATION_VALUE
* @generated
* @ordered
*/
CALIBRATION(1, "CALIBRATION", "CALIBRATION"),
/**
* The 'DIAGNOSTIC' literal object.
*
*
* @see #DIAGNOSTIC_VALUE
* @generated
* @ordered
*/
DIAGNOSTIC(2, "DIAGNOSTIC", "DIAGNOSTIC"),
/**
* The 'NOTDEFINED' literal object.
*
*
* @see #NOTDEFINED_VALUE
* @generated
* @ordered
*/
NOTDEFINED(3, "NOTDEFINED", "NOTDEFINED"),
/**
* The 'ADVICE WARNING' literal object.
*
*
* @see #ADVICE_WARNING_VALUE
* @generated
* @ordered
*/
ADVICE_WARNING(4, "ADVICE_WARNING", "ADVICE_WARNING"),
/**
* The 'ADVICE CAUTION' literal object.
*
*
* @see #ADVICE_CAUTION_VALUE
* @generated
* @ordered
*/
ADVICE_CAUTION(5, "ADVICE_CAUTION", "ADVICE_CAUTION"),
/**
* The 'USERDEFINED' literal object.
*
*
* @see #USERDEFINED_VALUE
* @generated
* @ordered
*/
USERDEFINED(6, "USERDEFINED", "USERDEFINED"),
/**
* The 'SHUTDOWN' literal object.
*
*
* @see #SHUTDOWN_VALUE
* @generated
* @ordered
*/
SHUTDOWN(7, "SHUTDOWN", "SHUTDOWN"),
/**
* The 'STARTUP' literal object.
*
*
* @see #STARTUP_VALUE
* @generated
* @ordered
*/
STARTUP(8, "STARTUP", "STARTUP"),
/**
* The 'ADVICE NOTE' literal object.
*
*
* @see #ADVICE_NOTE_VALUE
* @generated
* @ordered
*/
ADVICE_NOTE(9, "ADVICE_NOTE", "ADVICE_NOTE");
/**
* 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 'CALIBRATION' literal value.
*
*
* If the meaning of 'CALIBRATION' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CALIBRATION
* @model
* @generated
* @ordered
*/
public static final int CALIBRATION_VALUE = 1;
/**
* The 'DIAGNOSTIC' literal value.
*
*
* If the meaning of 'DIAGNOSTIC' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #DIAGNOSTIC
* @model
* @generated
* @ordered
*/
public static final int DIAGNOSTIC_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 'ADVICE WARNING' literal value.
*
*
* If the meaning of 'ADVICE WARNING' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ADVICE_WARNING
* @model
* @generated
* @ordered
*/
public static final int ADVICE_WARNING_VALUE = 4;
/**
* The 'ADVICE CAUTION' literal value.
*
*
* If the meaning of 'ADVICE CAUTION' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ADVICE_CAUTION
* @model
* @generated
* @ordered
*/
public static final int ADVICE_CAUTION_VALUE = 5;
/**
* 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 = 6;
/**
* The 'SHUTDOWN' literal value.
*
*
* If the meaning of 'SHUTDOWN' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SHUTDOWN
* @model
* @generated
* @ordered
*/
public static final int SHUTDOWN_VALUE = 7;
/**
* The 'STARTUP' literal value.
*
*
* If the meaning of 'STARTUP' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #STARTUP
* @model
* @generated
* @ordered
*/
public static final int STARTUP_VALUE = 8;
/**
* The 'ADVICE NOTE' literal value.
*
*
* If the meaning of 'ADVICE NOTE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ADVICE_NOTE
* @model
* @generated
* @ordered
*/
public static final int ADVICE_NOTE_VALUE = 9;
/**
* An array of all the 'Ifc Procedure Type Enum' enumerators.
*
*
* @generated
*/
private static final IfcProcedureTypeEnum[] VALUES_ARRAY = new IfcProcedureTypeEnum[] { NULL, CALIBRATION, DIAGNOSTIC, NOTDEFINED, ADVICE_WARNING, ADVICE_CAUTION, USERDEFINED, SHUTDOWN, STARTUP, ADVICE_NOTE, };
/**
* A public read-only list of all the 'Ifc Procedure Type Enum' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Ifc Procedure Type Enum' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcProcedureTypeEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcProcedureTypeEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Procedure Type Enum' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcProcedureTypeEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcProcedureTypeEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Procedure Type Enum' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcProcedureTypeEnum get(int value) {
switch (value) {
case NULL_VALUE:
return NULL;
case CALIBRATION_VALUE:
return CALIBRATION;
case DIAGNOSTIC_VALUE:
return DIAGNOSTIC;
case NOTDEFINED_VALUE:
return NOTDEFINED;
case ADVICE_WARNING_VALUE:
return ADVICE_WARNING;
case ADVICE_CAUTION_VALUE:
return ADVICE_CAUTION;
case USERDEFINED_VALUE:
return USERDEFINED;
case SHUTDOWN_VALUE:
return SHUTDOWN;
case STARTUP_VALUE:
return STARTUP;
case ADVICE_NOTE_VALUE:
return ADVICE_NOTE;
}
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 IfcProcedureTypeEnum(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;
}
} //IfcProcedureTypeEnum