All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bimserver.models.ifc4.IfcElectricApplianceTypeEnum 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 Electric Appliance Type Enum',
 * and utility methods for working with them.
 * 
 * @see org.bimserver.models.ifc4.Ifc4Package#getIfcElectricApplianceTypeEnum()
 * @model
 * @generated
 */
public enum IfcElectricApplianceTypeEnum implements Enumerator {
	/**
	 * The 'NULL' literal object.
	 * 
	 * 
	 * @see #NULL_VALUE
	 * @generated
	 * @ordered
	 */
	NULL(0, "NULL", "NULL"),

	/**
	 * The 'PHOTOCOPIER' literal object.
	 * 
	 * 
	 * @see #PHOTOCOPIER_VALUE
	 * @generated
	 * @ordered
	 */
	PHOTOCOPIER(1, "PHOTOCOPIER", "PHOTOCOPIER"),

	/**
	 * The 'TUMBLEDRYER' literal object.
	 * 
	 * 
	 * @see #TUMBLEDRYER_VALUE
	 * @generated
	 * @ordered
	 */
	TUMBLEDRYER(2, "TUMBLEDRYER", "TUMBLEDRYER"),

	/**
	 * The 'MICROWAVE' literal object.
	 * 
	 * 
	 * @see #MICROWAVE_VALUE
	 * @generated
	 * @ordered
	 */
	MICROWAVE(3, "MICROWAVE", "MICROWAVE"),

	/**
	 * The 'FREESTANDINGFAN' literal object.
	 * 
	 * 
	 * @see #FREESTANDINGFAN_VALUE
	 * @generated
	 * @ordered
	 */
	FREESTANDINGFAN(4, "FREESTANDINGFAN", "FREESTANDINGFAN"),

	/**
	 * The 'VENDINGMACHINE' literal object.
	 * 
	 * 
	 * @see #VENDINGMACHINE_VALUE
	 * @generated
	 * @ordered
	 */
	VENDINGMACHINE(5, "VENDINGMACHINE", "VENDINGMACHINE"),

	/**
	 * The 'HANDDRYER' literal object.
	 * 
	 * 
	 * @see #HANDDRYER_VALUE
	 * @generated
	 * @ordered
	 */
	HANDDRYER(6, "HANDDRYER", "HANDDRYER"),

	/**
	 * The 'ELECTRICCOOKER' literal object.
	 * 
	 * 
	 * @see #ELECTRICCOOKER_VALUE
	 * @generated
	 * @ordered
	 */
	ELECTRICCOOKER(7, "ELECTRICCOOKER", "ELECTRICCOOKER"),

	/**
	 * The 'USERDEFINED' literal object.
	 * 
	 * 
	 * @see #USERDEFINED_VALUE
	 * @generated
	 * @ordered
	 */
	USERDEFINED(8, "USERDEFINED", "USERDEFINED"),

	/**
	 * The 'FREESTANDINGWATERHEATER' literal object.
	 * 
	 * 
	 * @see #FREESTANDINGWATERHEATER_VALUE
	 * @generated
	 * @ordered
	 */
	FREESTANDINGWATERHEATER(9, "FREESTANDINGWATERHEATER", "FREESTANDINGWATERHEATER"),

	/**
	 * The 'KITCHENMACHINE' literal object.
	 * 
	 * 
	 * @see #KITCHENMACHINE_VALUE
	 * @generated
	 * @ordered
	 */
	KITCHENMACHINE(10, "KITCHENMACHINE", "KITCHENMACHINE"),

	/**
	 * The 'FREESTANDINGWATERCOOLER' literal object.
	 * 
	 * 
	 * @see #FREESTANDINGWATERCOOLER_VALUE
	 * @generated
	 * @ordered
	 */
	FREESTANDINGWATERCOOLER(11, "FREESTANDINGWATERCOOLER", "FREESTANDINGWATERCOOLER"),

	/**
	 * The 'WASHINGMACHINE' literal object.
	 * 
	 * 
	 * @see #WASHINGMACHINE_VALUE
	 * @generated
	 * @ordered
	 */
	WASHINGMACHINE(12, "WASHINGMACHINE", "WASHINGMACHINE"),

	/**
	 * The 'FRIDGE FREEZER' literal object.
	 * 
	 * 
	 * @see #FRIDGE_FREEZER_VALUE
	 * @generated
	 * @ordered
	 */
	FRIDGE_FREEZER(13, "FRIDGE_FREEZER", "FRIDGE_FREEZER"),

	/**
	 * The 'NOTDEFINED' literal object.
	 * 
	 * 
	 * @see #NOTDEFINED_VALUE
	 * @generated
	 * @ordered
	 */
	NOTDEFINED(14, "NOTDEFINED", "NOTDEFINED"),

	/**
	 * The 'FREESTANDINGELECTRICHEATER' literal object.
	 * 
	 * 
	 * @see #FREESTANDINGELECTRICHEATER_VALUE
	 * @generated
	 * @ordered
	 */
	FREESTANDINGELECTRICHEATER(15, "FREESTANDINGELECTRICHEATER", "FREESTANDINGELECTRICHEATER"),

	/**
	 * The 'FREEZER' literal object.
	 * 
	 * 
	 * @see #FREEZER_VALUE
	 * @generated
	 * @ordered
	 */
	FREEZER(16, "FREEZER", "FREEZER"),

	/**
	 * The 'REFRIGERATOR' literal object.
	 * 
	 * 
	 * @see #REFRIGERATOR_VALUE
	 * @generated
	 * @ordered
	 */
	REFRIGERATOR(17, "REFRIGERATOR", "REFRIGERATOR"),

	/**
	 * The 'DISHWASHER' literal object.
	 * 
	 * 
	 * @see #DISHWASHER_VALUE
	 * @generated
	 * @ordered
	 */
	DISHWASHER(18, "DISHWASHER", "DISHWASHER");

	/**
	 * 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 'PHOTOCOPIER' literal value. * *

* If the meaning of 'PHOTOCOPIER' literal object isn't clear, * there really should be more of a description here... *

* * @see #PHOTOCOPIER * @model * @generated * @ordered */ public static final int PHOTOCOPIER_VALUE = 1; /** * The 'TUMBLEDRYER' literal value. * *

* If the meaning of 'TUMBLEDRYER' literal object isn't clear, * there really should be more of a description here... *

* * @see #TUMBLEDRYER * @model * @generated * @ordered */ public static final int TUMBLEDRYER_VALUE = 2; /** * The 'MICROWAVE' literal value. * *

* If the meaning of 'MICROWAVE' literal object isn't clear, * there really should be more of a description here... *

* * @see #MICROWAVE * @model * @generated * @ordered */ public static final int MICROWAVE_VALUE = 3; /** * The 'FREESTANDINGFAN' literal value. * *

* If the meaning of 'FREESTANDINGFAN' literal object isn't clear, * there really should be more of a description here... *

* * @see #FREESTANDINGFAN * @model * @generated * @ordered */ public static final int FREESTANDINGFAN_VALUE = 4; /** * The 'VENDINGMACHINE' literal value. * *

* If the meaning of 'VENDINGMACHINE' literal object isn't clear, * there really should be more of a description here... *

* * @see #VENDINGMACHINE * @model * @generated * @ordered */ public static final int VENDINGMACHINE_VALUE = 5; /** * The 'HANDDRYER' literal value. * *

* If the meaning of 'HANDDRYER' literal object isn't clear, * there really should be more of a description here... *

* * @see #HANDDRYER * @model * @generated * @ordered */ public static final int HANDDRYER_VALUE = 6; /** * The 'ELECTRICCOOKER' literal value. * *

* If the meaning of 'ELECTRICCOOKER' literal object isn't clear, * there really should be more of a description here... *

* * @see #ELECTRICCOOKER * @model * @generated * @ordered */ public static final int ELECTRICCOOKER_VALUE = 7; /** * 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 = 8; /** * The 'FREESTANDINGWATERHEATER' literal value. * *

* If the meaning of 'FREESTANDINGWATERHEATER' literal object isn't clear, * there really should be more of a description here... *

* * @see #FREESTANDINGWATERHEATER * @model * @generated * @ordered */ public static final int FREESTANDINGWATERHEATER_VALUE = 9; /** * The 'KITCHENMACHINE' literal value. * *

* If the meaning of 'KITCHENMACHINE' literal object isn't clear, * there really should be more of a description here... *

* * @see #KITCHENMACHINE * @model * @generated * @ordered */ public static final int KITCHENMACHINE_VALUE = 10; /** * The 'FREESTANDINGWATERCOOLER' literal value. * *

* If the meaning of 'FREESTANDINGWATERCOOLER' literal object isn't clear, * there really should be more of a description here... *

* * @see #FREESTANDINGWATERCOOLER * @model * @generated * @ordered */ public static final int FREESTANDINGWATERCOOLER_VALUE = 11; /** * The 'WASHINGMACHINE' literal value. * *

* If the meaning of 'WASHINGMACHINE' literal object isn't clear, * there really should be more of a description here... *

* * @see #WASHINGMACHINE * @model * @generated * @ordered */ public static final int WASHINGMACHINE_VALUE = 12; /** * The 'FRIDGE FREEZER' literal value. * *

* If the meaning of 'FRIDGE FREEZER' literal object isn't clear, * there really should be more of a description here... *

* * @see #FRIDGE_FREEZER * @model * @generated * @ordered */ public static final int FRIDGE_FREEZER_VALUE = 13; /** * 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 = 14; /** * The 'FREESTANDINGELECTRICHEATER' literal value. * *

* If the meaning of 'FREESTANDINGELECTRICHEATER' literal object isn't clear, * there really should be more of a description here... *

* * @see #FREESTANDINGELECTRICHEATER * @model * @generated * @ordered */ public static final int FREESTANDINGELECTRICHEATER_VALUE = 15; /** * The 'FREEZER' literal value. * *

* If the meaning of 'FREEZER' literal object isn't clear, * there really should be more of a description here... *

* * @see #FREEZER * @model * @generated * @ordered */ public static final int FREEZER_VALUE = 16; /** * The 'REFRIGERATOR' literal value. * *

* If the meaning of 'REFRIGERATOR' literal object isn't clear, * there really should be more of a description here... *

* * @see #REFRIGERATOR * @model * @generated * @ordered */ public static final int REFRIGERATOR_VALUE = 17; /** * The 'DISHWASHER' literal value. * *

* If the meaning of 'DISHWASHER' literal object isn't clear, * there really should be more of a description here... *

* * @see #DISHWASHER * @model * @generated * @ordered */ public static final int DISHWASHER_VALUE = 18; /** * An array of all the 'Ifc Electric Appliance Type Enum' enumerators. * * * @generated */ private static final IfcElectricApplianceTypeEnum[] VALUES_ARRAY = new IfcElectricApplianceTypeEnum[] { NULL, PHOTOCOPIER, TUMBLEDRYER, MICROWAVE, FREESTANDINGFAN, VENDINGMACHINE, HANDDRYER, ELECTRICCOOKER, USERDEFINED, FREESTANDINGWATERHEATER, KITCHENMACHINE, FREESTANDINGWATERCOOLER, WASHINGMACHINE, FRIDGE_FREEZER, NOTDEFINED, FREESTANDINGELECTRICHEATER, FREEZER, REFRIGERATOR, DISHWASHER, }; /** * A public read-only list of all the 'Ifc Electric Appliance Type Enum' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Ifc Electric Appliance Type Enum' literal with the specified literal value. * * * @param literal the literal. * @return the matching enumerator or null. * @generated */ public static IfcElectricApplianceTypeEnum get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { IfcElectricApplianceTypeEnum result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Ifc Electric Appliance Type Enum' literal with the specified name. * * * @param name the name. * @return the matching enumerator or null. * @generated */ public static IfcElectricApplianceTypeEnum getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { IfcElectricApplianceTypeEnum result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Ifc Electric Appliance Type Enum' literal with the specified integer value. * * * @param value the integer value. * @return the matching enumerator or null. * @generated */ public static IfcElectricApplianceTypeEnum get(int value) { switch (value) { case NULL_VALUE: return NULL; case PHOTOCOPIER_VALUE: return PHOTOCOPIER; case TUMBLEDRYER_VALUE: return TUMBLEDRYER; case MICROWAVE_VALUE: return MICROWAVE; case FREESTANDINGFAN_VALUE: return FREESTANDINGFAN; case VENDINGMACHINE_VALUE: return VENDINGMACHINE; case HANDDRYER_VALUE: return HANDDRYER; case ELECTRICCOOKER_VALUE: return ELECTRICCOOKER; case USERDEFINED_VALUE: return USERDEFINED; case FREESTANDINGWATERHEATER_VALUE: return FREESTANDINGWATERHEATER; case KITCHENMACHINE_VALUE: return KITCHENMACHINE; case FREESTANDINGWATERCOOLER_VALUE: return FREESTANDINGWATERCOOLER; case WASHINGMACHINE_VALUE: return WASHINGMACHINE; case FRIDGE_FREEZER_VALUE: return FRIDGE_FREEZER; case NOTDEFINED_VALUE: return NOTDEFINED; case FREESTANDINGELECTRICHEATER_VALUE: return FREESTANDINGELECTRICHEATER; case FREEZER_VALUE: return FREEZER; case REFRIGERATOR_VALUE: return REFRIGERATOR; case DISHWASHER_VALUE: return DISHWASHER; } 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 IfcElectricApplianceTypeEnum(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; } } //IfcElectricApplianceTypeEnum




© 2015 - 2024 Weber Informatics LLC | Privacy Policy