// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool Xbim.CodeGeneration 
//  
//     Changes to this file may cause incorrect behaviour and will be lost if
//     the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------

using Xbim.Ifc4.Interfaces;
using System.Collections.Generic;
using System.Linq;
using Xbim.Common;

//## Custom using statements
//##

// ReSharper disable once CheckNamespace
namespace Xbim.Ifc4x3.ElectricalDomain
{
	public partial class @IfcElectricApplianceType : IIfcElectricApplianceType
	{

		[CrossSchemaAttribute(typeof(IIfcElectricApplianceType), 10)]
		Ifc4.Interfaces.IfcElectricApplianceTypeEnum IIfcElectricApplianceType.PredefinedType 
		{ 
			get
			{
				//## Custom code to handle enumeration of PredefinedType
				//##
				switch (PredefinedType)
				{
					case IfcElectricApplianceTypeEnum.DISHWASHER:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.DISHWASHER;
					case IfcElectricApplianceTypeEnum.ELECTRICCOOKER:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.ELECTRICCOOKER;
					case IfcElectricApplianceTypeEnum.FREESTANDINGELECTRICHEATER:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.FREESTANDINGELECTRICHEATER;
					case IfcElectricApplianceTypeEnum.FREESTANDINGFAN:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.FREESTANDINGFAN;
					case IfcElectricApplianceTypeEnum.FREESTANDINGWATERCOOLER:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.FREESTANDINGWATERCOOLER;
					case IfcElectricApplianceTypeEnum.FREESTANDINGWATERHEATER:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.FREESTANDINGWATERHEATER;
					case IfcElectricApplianceTypeEnum.FREEZER:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.FREEZER;
					case IfcElectricApplianceTypeEnum.FRIDGE_FREEZER:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.FRIDGE_FREEZER;
					case IfcElectricApplianceTypeEnum.HANDDRYER:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.HANDDRYER;
					case IfcElectricApplianceTypeEnum.KITCHENMACHINE:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.KITCHENMACHINE;
					case IfcElectricApplianceTypeEnum.MICROWAVE:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.MICROWAVE;
					case IfcElectricApplianceTypeEnum.PHOTOCOPIER:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.PHOTOCOPIER;
					case IfcElectricApplianceTypeEnum.REFRIGERATOR:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.REFRIGERATOR;
					case IfcElectricApplianceTypeEnum.TUMBLEDRYER:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.TUMBLEDRYER;
					case IfcElectricApplianceTypeEnum.VENDINGMACHINE:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.VENDINGMACHINE;
					case IfcElectricApplianceTypeEnum.WASHINGMACHINE:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.WASHINGMACHINE;
					case IfcElectricApplianceTypeEnum.USERDEFINED:
						//## Optional custom handling of PredefinedType == .USERDEFINED. 
						//##
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.USERDEFINED;
					case IfcElectricApplianceTypeEnum.NOTDEFINED:
						return Ifc4.Interfaces.IfcElectricApplianceTypeEnum.NOTDEFINED;
					
					default:
						throw new System.ArgumentOutOfRangeException();
				}
			} 
			set
			{
				//## Custom code to handle setting of enumeration of PredefinedType
				//##
				switch (value)
				{
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.DISHWASHER:
						PredefinedType = IfcElectricApplianceTypeEnum.DISHWASHER;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.ELECTRICCOOKER:
						PredefinedType = IfcElectricApplianceTypeEnum.ELECTRICCOOKER;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.FREESTANDINGELECTRICHEATER:
						PredefinedType = IfcElectricApplianceTypeEnum.FREESTANDINGELECTRICHEATER;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.FREESTANDINGFAN:
						PredefinedType = IfcElectricApplianceTypeEnum.FREESTANDINGFAN;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.FREESTANDINGWATERHEATER:
						PredefinedType = IfcElectricApplianceTypeEnum.FREESTANDINGWATERHEATER;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.FREESTANDINGWATERCOOLER:
						PredefinedType = IfcElectricApplianceTypeEnum.FREESTANDINGWATERCOOLER;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.FREEZER:
						PredefinedType = IfcElectricApplianceTypeEnum.FREEZER;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.FRIDGE_FREEZER:
						PredefinedType = IfcElectricApplianceTypeEnum.FRIDGE_FREEZER;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.HANDDRYER:
						PredefinedType = IfcElectricApplianceTypeEnum.HANDDRYER;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.KITCHENMACHINE:
						PredefinedType = IfcElectricApplianceTypeEnum.KITCHENMACHINE;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.MICROWAVE:
						PredefinedType = IfcElectricApplianceTypeEnum.MICROWAVE;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.PHOTOCOPIER:
						PredefinedType = IfcElectricApplianceTypeEnum.PHOTOCOPIER;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.REFRIGERATOR:
						PredefinedType = IfcElectricApplianceTypeEnum.REFRIGERATOR;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.TUMBLEDRYER:
						PredefinedType = IfcElectricApplianceTypeEnum.TUMBLEDRYER;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.VENDINGMACHINE:
						PredefinedType = IfcElectricApplianceTypeEnum.VENDINGMACHINE;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.WASHINGMACHINE:
						PredefinedType = IfcElectricApplianceTypeEnum.WASHINGMACHINE;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.USERDEFINED:
						PredefinedType = IfcElectricApplianceTypeEnum.USERDEFINED;
						return;
					case Ifc4.Interfaces.IfcElectricApplianceTypeEnum.NOTDEFINED:
						PredefinedType = IfcElectricApplianceTypeEnum.NOTDEFINED;
						return;
					default:
						throw new System.ArgumentOutOfRangeException();
				}
				
			}
		}
	//## Custom code
	//##
	}
}