org.bimserver.models.ifc2x3tc1.IfcValveTypeEnum 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 Valve Type Enum',
* and utility methods for working with them.
*
* @see org.bimserver.models.ifc2x3tc1.Ifc2x3tc1Package#getIfcValveTypeEnum()
* @model
* @generated
*/
public enum IfcValveTypeEnum implements Enumerator {
/**
* The 'NULL' literal object.
*
*
* @see #NULL_VALUE
* @generated
* @ordered
*/
NULL(0, "NULL", "NULL"),
/**
* The 'COMMISSIONING' literal object.
*
*
* @see #COMMISSIONING_VALUE
* @generated
* @ordered
*/
COMMISSIONING(1, "COMMISSIONING", "COMMISSIONING"),
/**
* The 'CHANGEOVER' literal object.
*
*
* @see #CHANGEOVER_VALUE
* @generated
* @ordered
*/
CHANGEOVER(2, "CHANGEOVER", "CHANGEOVER"),
/**
* The 'DIVERTING' literal object.
*
*
* @see #DIVERTING_VALUE
* @generated
* @ordered
*/
DIVERTING(3, "DIVERTING", "DIVERTING"),
/**
* The 'GASTAP' literal object.
*
*
* @see #GASTAP_VALUE
* @generated
* @ordered
*/
GASTAP(4, "GASTAP", "GASTAP"),
/**
* The 'ANTIVACUUM' literal object.
*
*
* @see #ANTIVACUUM_VALUE
* @generated
* @ordered
*/
ANTIVACUUM(5, "ANTIVACUUM", "ANTIVACUUM"),
/**
* The 'USERDEFINED' literal object.
*
*
* @see #USERDEFINED_VALUE
* @generated
* @ordered
*/
USERDEFINED(6, "USERDEFINED", "USERDEFINED"),
/**
* The 'AIRRELEASE' literal object.
*
*
* @see #AIRRELEASE_VALUE
* @generated
* @ordered
*/
AIRRELEASE(7, "AIRRELEASE", "AIRRELEASE"),
/**
* The 'REGULATING' literal object.
*
*
* @see #REGULATING_VALUE
* @generated
* @ordered
*/
REGULATING(8, "REGULATING", "REGULATING"),
/**
* The 'PRESSUREREDUCING' literal object.
*
*
* @see #PRESSUREREDUCING_VALUE
* @generated
* @ordered
*/
PRESSUREREDUCING(9, "PRESSUREREDUCING", "PRESSUREREDUCING"),
/**
* The 'STEAMTRAP' literal object.
*
*
* @see #STEAMTRAP_VALUE
* @generated
* @ordered
*/
STEAMTRAP(10, "STEAMTRAP", "STEAMTRAP"),
/**
* The 'DOUBLECHECK' literal object.
*
*
* @see #DOUBLECHECK_VALUE
* @generated
* @ordered
*/
DOUBLECHECK(11, "DOUBLECHECK", "DOUBLECHECK"),
/**
* The 'NOTDEFINED' literal object.
*
*
* @see #NOTDEFINED_VALUE
* @generated
* @ordered
*/
NOTDEFINED(12, "NOTDEFINED", "NOTDEFINED"),
/**
* The 'MIXING' literal object.
*
*
* @see #MIXING_VALUE
* @generated
* @ordered
*/
MIXING(13, "MIXING", "MIXING"),
/**
* The 'PRESSURERELIEF' literal object.
*
*
* @see #PRESSURERELIEF_VALUE
* @generated
* @ordered
*/
PRESSURERELIEF(14, "PRESSURERELIEF", "PRESSURERELIEF"),
/**
* The 'STOPCOCK' literal object.
*
*
* @see #STOPCOCK_VALUE
* @generated
* @ordered
*/
STOPCOCK(15, "STOPCOCK", "STOPCOCK"),
/**
* The 'FLUSHING' literal object.
*
*
* @see #FLUSHING_VALUE
* @generated
* @ordered
*/
FLUSHING(16, "FLUSHING", "FLUSHING"),
/**
* The 'ISOLATING' literal object.
*
*
* @see #ISOLATING_VALUE
* @generated
* @ordered
*/
ISOLATING(17, "ISOLATING", "ISOLATING"),
/**
* The 'FAUCET' literal object.
*
*
* @see #FAUCET_VALUE
* @generated
* @ordered
*/
FAUCET(18, "FAUCET", "FAUCET"),
/**
* The 'SAFETYCUTOFF' literal object.
*
*
* @see #SAFETYCUTOFF_VALUE
* @generated
* @ordered
*/
SAFETYCUTOFF(19, "SAFETYCUTOFF", "SAFETYCUTOFF"),
/**
* The 'CHECK' literal object.
*
*
* @see #CHECK_VALUE
* @generated
* @ordered
*/
CHECK(20, "CHECK", "CHECK"),
/**
* The 'DRAWOFFCOCK' literal object.
*
*
* @see #DRAWOFFCOCK_VALUE
* @generated
* @ordered
*/
DRAWOFFCOCK(21, "DRAWOFFCOCK", "DRAWOFFCOCK"),
/**
* The 'GASCOCK' literal object.
*
*
* @see #GASCOCK_VALUE
* @generated
* @ordered
*/
GASCOCK(22, "GASCOCK", "GASCOCK"),
/**
* The 'DOUBLEREGULATING' literal object.
*
*
* @see #DOUBLEREGULATING_VALUE
* @generated
* @ordered
*/
DOUBLEREGULATING(23, "DOUBLEREGULATING", "DOUBLEREGULATING");
/**
* 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 'COMMISSIONING' literal value.
*
*
* If the meaning of 'COMMISSIONING' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #COMMISSIONING
* @model
* @generated
* @ordered
*/
public static final int COMMISSIONING_VALUE = 1;
/**
* The 'CHANGEOVER' literal value.
*
*
* If the meaning of 'CHANGEOVER' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CHANGEOVER
* @model
* @generated
* @ordered
*/
public static final int CHANGEOVER_VALUE = 2;
/**
* The 'DIVERTING' literal value.
*
*
* If the meaning of 'DIVERTING' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #DIVERTING
* @model
* @generated
* @ordered
*/
public static final int DIVERTING_VALUE = 3;
/**
* The 'GASTAP' literal value.
*
*
* If the meaning of 'GASTAP' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #GASTAP
* @model
* @generated
* @ordered
*/
public static final int GASTAP_VALUE = 4;
/**
* The 'ANTIVACUUM' literal value.
*
*
* If the meaning of 'ANTIVACUUM' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ANTIVACUUM
* @model
* @generated
* @ordered
*/
public static final int ANTIVACUUM_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 'AIRRELEASE' literal value.
*
*
* If the meaning of 'AIRRELEASE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #AIRRELEASE
* @model
* @generated
* @ordered
*/
public static final int AIRRELEASE_VALUE = 7;
/**
* The 'REGULATING' literal value.
*
*
* If the meaning of 'REGULATING' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #REGULATING
* @model
* @generated
* @ordered
*/
public static final int REGULATING_VALUE = 8;
/**
* The 'PRESSUREREDUCING' literal value.
*
*
* If the meaning of 'PRESSUREREDUCING' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PRESSUREREDUCING
* @model
* @generated
* @ordered
*/
public static final int PRESSUREREDUCING_VALUE = 9;
/**
* The 'STEAMTRAP' literal value.
*
*
* If the meaning of 'STEAMTRAP' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #STEAMTRAP
* @model
* @generated
* @ordered
*/
public static final int STEAMTRAP_VALUE = 10;
/**
* The 'DOUBLECHECK' literal value.
*
*
* If the meaning of 'DOUBLECHECK' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #DOUBLECHECK
* @model
* @generated
* @ordered
*/
public static final int DOUBLECHECK_VALUE = 11;
/**
* 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 = 12;
/**
* The 'MIXING' literal value.
*
*
* If the meaning of 'MIXING' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #MIXING
* @model
* @generated
* @ordered
*/
public static final int MIXING_VALUE = 13;
/**
* The 'PRESSURERELIEF' literal value.
*
*
* If the meaning of 'PRESSURERELIEF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PRESSURERELIEF
* @model
* @generated
* @ordered
*/
public static final int PRESSURERELIEF_VALUE = 14;
/**
* The 'STOPCOCK' literal value.
*
*
* If the meaning of 'STOPCOCK' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #STOPCOCK
* @model
* @generated
* @ordered
*/
public static final int STOPCOCK_VALUE = 15;
/**
* The 'FLUSHING' literal value.
*
*
* If the meaning of 'FLUSHING' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #FLUSHING
* @model
* @generated
* @ordered
*/
public static final int FLUSHING_VALUE = 16;
/**
* The 'ISOLATING' literal value.
*
*
* If the meaning of 'ISOLATING' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ISOLATING
* @model
* @generated
* @ordered
*/
public static final int ISOLATING_VALUE = 17;
/**
* The 'FAUCET' literal value.
*
*
* If the meaning of 'FAUCET' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #FAUCET
* @model
* @generated
* @ordered
*/
public static final int FAUCET_VALUE = 18;
/**
* The 'SAFETYCUTOFF' literal value.
*
*
* If the meaning of 'SAFETYCUTOFF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SAFETYCUTOFF
* @model
* @generated
* @ordered
*/
public static final int SAFETYCUTOFF_VALUE = 19;
/**
* The 'CHECK' literal value.
*
*
* If the meaning of 'CHECK' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CHECK
* @model
* @generated
* @ordered
*/
public static final int CHECK_VALUE = 20;
/**
* The 'DRAWOFFCOCK' literal value.
*
*
* If the meaning of 'DRAWOFFCOCK' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #DRAWOFFCOCK
* @model
* @generated
* @ordered
*/
public static final int DRAWOFFCOCK_VALUE = 21;
/**
* The 'GASCOCK' literal value.
*
*
* If the meaning of 'GASCOCK' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #GASCOCK
* @model
* @generated
* @ordered
*/
public static final int GASCOCK_VALUE = 22;
/**
* The 'DOUBLEREGULATING' literal value.
*
*
* If the meaning of 'DOUBLEREGULATING' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #DOUBLEREGULATING
* @model
* @generated
* @ordered
*/
public static final int DOUBLEREGULATING_VALUE = 23;
/**
* An array of all the 'Ifc Valve Type Enum' enumerators.
*
*
* @generated
*/
private static final IfcValveTypeEnum[] VALUES_ARRAY = new IfcValveTypeEnum[] { NULL, COMMISSIONING, CHANGEOVER, DIVERTING, GASTAP, ANTIVACUUM, USERDEFINED, AIRRELEASE, REGULATING, PRESSUREREDUCING, STEAMTRAP, DOUBLECHECK, NOTDEFINED,
MIXING, PRESSURERELIEF, STOPCOCK, FLUSHING, ISOLATING, FAUCET, SAFETYCUTOFF, CHECK, DRAWOFFCOCK, GASCOCK, DOUBLEREGULATING, };
/**
* A public read-only list of all the 'Ifc Valve Type Enum' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Ifc Valve Type Enum' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcValveTypeEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcValveTypeEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Valve Type Enum' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcValveTypeEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcValveTypeEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Valve Type Enum' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcValveTypeEnum get(int value) {
switch (value) {
case NULL_VALUE:
return NULL;
case COMMISSIONING_VALUE:
return COMMISSIONING;
case CHANGEOVER_VALUE:
return CHANGEOVER;
case DIVERTING_VALUE:
return DIVERTING;
case GASTAP_VALUE:
return GASTAP;
case ANTIVACUUM_VALUE:
return ANTIVACUUM;
case USERDEFINED_VALUE:
return USERDEFINED;
case AIRRELEASE_VALUE:
return AIRRELEASE;
case REGULATING_VALUE:
return REGULATING;
case PRESSUREREDUCING_VALUE:
return PRESSUREREDUCING;
case STEAMTRAP_VALUE:
return STEAMTRAP;
case DOUBLECHECK_VALUE:
return DOUBLECHECK;
case NOTDEFINED_VALUE:
return NOTDEFINED;
case MIXING_VALUE:
return MIXING;
case PRESSURERELIEF_VALUE:
return PRESSURERELIEF;
case STOPCOCK_VALUE:
return STOPCOCK;
case FLUSHING_VALUE:
return FLUSHING;
case ISOLATING_VALUE:
return ISOLATING;
case FAUCET_VALUE:
return FAUCET;
case SAFETYCUTOFF_VALUE:
return SAFETYCUTOFF;
case CHECK_VALUE:
return CHECK;
case DRAWOFFCOCK_VALUE:
return DRAWOFFCOCK;
case GASCOCK_VALUE:
return GASCOCK;
case DOUBLEREGULATING_VALUE:
return DOUBLEREGULATING;
}
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 IfcValveTypeEnum(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;
}
} //IfcValveTypeEnum