// ------------------------------------------------------------------------------
// <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 @IfcCondenser : IIfcCondenser
	{

		[CrossSchemaAttribute(typeof(IIfcCondenser), 9)]
		Ifc4.Interfaces.IfcCondenserTypeEnum? IIfcCondenser.PredefinedType 
		{ 
			get
			{
				//## Custom code to handle enumeration of PredefinedType
				//##
				switch (PredefinedType)
				{
					case IfcCondenserTypeEnum.AIRCOOLED:
						return Ifc4.Interfaces.IfcCondenserTypeEnum.AIRCOOLED;
					case IfcCondenserTypeEnum.EVAPORATIVECOOLED:
						return Ifc4.Interfaces.IfcCondenserTypeEnum.EVAPORATIVECOOLED;
					case IfcCondenserTypeEnum.WATERCOOLED:
						return Ifc4.Interfaces.IfcCondenserTypeEnum.WATERCOOLED;
					case IfcCondenserTypeEnum.WATERCOOLEDBRAZEDPLATE:
						return Ifc4.Interfaces.IfcCondenserTypeEnum.WATERCOOLEDBRAZEDPLATE;
					case IfcCondenserTypeEnum.WATERCOOLEDSHELLCOIL:
						return Ifc4.Interfaces.IfcCondenserTypeEnum.WATERCOOLEDSHELLCOIL;
					case IfcCondenserTypeEnum.WATERCOOLEDSHELLTUBE:
						return Ifc4.Interfaces.IfcCondenserTypeEnum.WATERCOOLEDSHELLTUBE;
					case IfcCondenserTypeEnum.WATERCOOLEDTUBEINTUBE:
						return Ifc4.Interfaces.IfcCondenserTypeEnum.WATERCOOLEDTUBEINTUBE;
					case IfcCondenserTypeEnum.USERDEFINED:
						//## Optional custom handling of PredefinedType == .USERDEFINED. 
						//##
						return Ifc4.Interfaces.IfcCondenserTypeEnum.USERDEFINED;
					case IfcCondenserTypeEnum.NOTDEFINED:
						return Ifc4.Interfaces.IfcCondenserTypeEnum.NOTDEFINED;
					case null: 
						return null;
					
					default:
						throw new System.ArgumentOutOfRangeException();
				}
			} 
			set
			{
				//## Custom code to handle setting of enumeration of PredefinedType
				//##
				switch (value)
				{
					case Ifc4.Interfaces.IfcCondenserTypeEnum.AIRCOOLED:
						PredefinedType = IfcCondenserTypeEnum.AIRCOOLED;
						return;
					case Ifc4.Interfaces.IfcCondenserTypeEnum.EVAPORATIVECOOLED:
						PredefinedType = IfcCondenserTypeEnum.EVAPORATIVECOOLED;
						return;
					case Ifc4.Interfaces.IfcCondenserTypeEnum.WATERCOOLED:
						PredefinedType = IfcCondenserTypeEnum.WATERCOOLED;
						return;
					case Ifc4.Interfaces.IfcCondenserTypeEnum.WATERCOOLEDBRAZEDPLATE:
						PredefinedType = IfcCondenserTypeEnum.WATERCOOLEDBRAZEDPLATE;
						return;
					case Ifc4.Interfaces.IfcCondenserTypeEnum.WATERCOOLEDSHELLCOIL:
						PredefinedType = IfcCondenserTypeEnum.WATERCOOLEDSHELLCOIL;
						return;
					case Ifc4.Interfaces.IfcCondenserTypeEnum.WATERCOOLEDSHELLTUBE:
						PredefinedType = IfcCondenserTypeEnum.WATERCOOLEDSHELLTUBE;
						return;
					case Ifc4.Interfaces.IfcCondenserTypeEnum.WATERCOOLEDTUBEINTUBE:
						PredefinedType = IfcCondenserTypeEnum.WATERCOOLEDTUBEINTUBE;
						return;
					case Ifc4.Interfaces.IfcCondenserTypeEnum.USERDEFINED:
						PredefinedType = IfcCondenserTypeEnum.USERDEFINED;
						return;
					case Ifc4.Interfaces.IfcCondenserTypeEnum.NOTDEFINED:
						PredefinedType = IfcCondenserTypeEnum.NOTDEFINED;
						return;
					
					case null:
						PredefinedType = null;
						return;
					default:
						throw new System.ArgumentOutOfRangeException();
				}
				
			}
		}
	//## Custom code
	//##
	}
}