// ------------------------------------------------------------------------------
// <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.HvacDomain
{
	public partial class @IfcDamperType : IIfcDamperType
	{

		[CrossSchemaAttribute(typeof(IIfcDamperType), 10)]
		Ifc4.Interfaces.IfcDamperTypeEnum IIfcDamperType.PredefinedType 
		{ 
			get
			{
				//## Custom code to handle enumeration of PredefinedType
				//##
				switch (PredefinedType)
				{
					case IfcDamperTypeEnum.BACKDRAFTDAMPER:
						return Ifc4.Interfaces.IfcDamperTypeEnum.BACKDRAFTDAMPER;
					case IfcDamperTypeEnum.BALANCINGDAMPER:
						return Ifc4.Interfaces.IfcDamperTypeEnum.BALANCINGDAMPER;
					case IfcDamperTypeEnum.BLASTDAMPER:
						return Ifc4.Interfaces.IfcDamperTypeEnum.BLASTDAMPER;
					case IfcDamperTypeEnum.CONTROLDAMPER:
						return Ifc4.Interfaces.IfcDamperTypeEnum.CONTROLDAMPER;
					case IfcDamperTypeEnum.FIREDAMPER:
						return Ifc4.Interfaces.IfcDamperTypeEnum.FIREDAMPER;
					case IfcDamperTypeEnum.FIRESMOKEDAMPER:
						return Ifc4.Interfaces.IfcDamperTypeEnum.FIRESMOKEDAMPER;
					case IfcDamperTypeEnum.FUMEHOODEXHAUST:
						return Ifc4.Interfaces.IfcDamperTypeEnum.FUMEHOODEXHAUST;
					case IfcDamperTypeEnum.GRAVITYDAMPER:
						return Ifc4.Interfaces.IfcDamperTypeEnum.GRAVITYDAMPER;
					case IfcDamperTypeEnum.GRAVITYRELIEFDAMPER:
						return Ifc4.Interfaces.IfcDamperTypeEnum.GRAVITYRELIEFDAMPER;
					case IfcDamperTypeEnum.RELIEFDAMPER:
						return Ifc4.Interfaces.IfcDamperTypeEnum.RELIEFDAMPER;
					case IfcDamperTypeEnum.SMOKEDAMPER:
						return Ifc4.Interfaces.IfcDamperTypeEnum.SMOKEDAMPER;
					case IfcDamperTypeEnum.USERDEFINED:
						//## Optional custom handling of PredefinedType == .USERDEFINED. 
						//##
						return Ifc4.Interfaces.IfcDamperTypeEnum.USERDEFINED;
					case IfcDamperTypeEnum.NOTDEFINED:
						return Ifc4.Interfaces.IfcDamperTypeEnum.NOTDEFINED;
					
					default:
						throw new System.ArgumentOutOfRangeException();
				}
			} 
			set
			{
				//## Custom code to handle setting of enumeration of PredefinedType
				//##
				switch (value)
				{
					case Ifc4.Interfaces.IfcDamperTypeEnum.BACKDRAFTDAMPER:
						PredefinedType = IfcDamperTypeEnum.BACKDRAFTDAMPER;
						return;
					case Ifc4.Interfaces.IfcDamperTypeEnum.BALANCINGDAMPER:
						PredefinedType = IfcDamperTypeEnum.BALANCINGDAMPER;
						return;
					case Ifc4.Interfaces.IfcDamperTypeEnum.BLASTDAMPER:
						PredefinedType = IfcDamperTypeEnum.BLASTDAMPER;
						return;
					case Ifc4.Interfaces.IfcDamperTypeEnum.CONTROLDAMPER:
						PredefinedType = IfcDamperTypeEnum.CONTROLDAMPER;
						return;
					case Ifc4.Interfaces.IfcDamperTypeEnum.FIREDAMPER:
						PredefinedType = IfcDamperTypeEnum.FIREDAMPER;
						return;
					case Ifc4.Interfaces.IfcDamperTypeEnum.FIRESMOKEDAMPER:
						PredefinedType = IfcDamperTypeEnum.FIRESMOKEDAMPER;
						return;
					case Ifc4.Interfaces.IfcDamperTypeEnum.FUMEHOODEXHAUST:
						PredefinedType = IfcDamperTypeEnum.FUMEHOODEXHAUST;
						return;
					case Ifc4.Interfaces.IfcDamperTypeEnum.GRAVITYDAMPER:
						PredefinedType = IfcDamperTypeEnum.GRAVITYDAMPER;
						return;
					case Ifc4.Interfaces.IfcDamperTypeEnum.GRAVITYRELIEFDAMPER:
						PredefinedType = IfcDamperTypeEnum.GRAVITYRELIEFDAMPER;
						return;
					case Ifc4.Interfaces.IfcDamperTypeEnum.RELIEFDAMPER:
						PredefinedType = IfcDamperTypeEnum.RELIEFDAMPER;
						return;
					case Ifc4.Interfaces.IfcDamperTypeEnum.SMOKEDAMPER:
						PredefinedType = IfcDamperTypeEnum.SMOKEDAMPER;
						return;
					case Ifc4.Interfaces.IfcDamperTypeEnum.USERDEFINED:
						PredefinedType = IfcDamperTypeEnum.USERDEFINED;
						return;
					case Ifc4.Interfaces.IfcDamperTypeEnum.NOTDEFINED:
						PredefinedType = IfcDamperTypeEnum.NOTDEFINED;
						return;
					default:
						throw new System.ArgumentOutOfRangeException();
				}
				
			}
		}
	//## Custom code
	//##
	}
}