// ------------------------------------------------------------------------------
// <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;

// ReSharper disable once CheckNamespace
namespace Xbim.Ifc2x3.HVACDomain
{
	public partial class @IfcDuctFittingType : IIfcDuctFittingType
	{

		[CrossSchemaAttribute(typeof(IIfcDuctFittingType), 10)]
		Ifc4.Interfaces.IfcDuctFittingTypeEnum IIfcDuctFittingType.PredefinedType 
		{ 
			get
			{
				//## Custom code to handle enumeration of PredefinedType
				//##
				switch (PredefinedType)
				{
					case IfcDuctFittingTypeEnum.BEND:
						return Ifc4.Interfaces.IfcDuctFittingTypeEnum.BEND;
					case IfcDuctFittingTypeEnum.CONNECTOR:
						return Ifc4.Interfaces.IfcDuctFittingTypeEnum.CONNECTOR;
					case IfcDuctFittingTypeEnum.ENTRY:
						return Ifc4.Interfaces.IfcDuctFittingTypeEnum.ENTRY;
					case IfcDuctFittingTypeEnum.EXIT:
						return Ifc4.Interfaces.IfcDuctFittingTypeEnum.EXIT;
					case IfcDuctFittingTypeEnum.JUNCTION:
						return Ifc4.Interfaces.IfcDuctFittingTypeEnum.JUNCTION;
					case IfcDuctFittingTypeEnum.OBSTRUCTION:
						return Ifc4.Interfaces.IfcDuctFittingTypeEnum.OBSTRUCTION;
					case IfcDuctFittingTypeEnum.TRANSITION:
						return Ifc4.Interfaces.IfcDuctFittingTypeEnum.TRANSITION;
					case IfcDuctFittingTypeEnum.USERDEFINED:
						//## Optional custom handling of PredefinedType == .USERDEFINED. 
						//##
						return Ifc4.Interfaces.IfcDuctFittingTypeEnum.USERDEFINED;
					case IfcDuctFittingTypeEnum.NOTDEFINED:
						return Ifc4.Interfaces.IfcDuctFittingTypeEnum.NOTDEFINED;
					
					default:
						throw new System.ArgumentOutOfRangeException();
				}
			} 
			set
			{
				//## Custom code to handle setting of enumeration of PredefinedType
				//##
				switch (value)
				{
					case Ifc4.Interfaces.IfcDuctFittingTypeEnum.BEND:
						PredefinedType = IfcDuctFittingTypeEnum.BEND;
						return;
					case Ifc4.Interfaces.IfcDuctFittingTypeEnum.CONNECTOR:
						PredefinedType = IfcDuctFittingTypeEnum.CONNECTOR;
						return;
					case Ifc4.Interfaces.IfcDuctFittingTypeEnum.ENTRY:
						PredefinedType = IfcDuctFittingTypeEnum.ENTRY;
						return;
					case Ifc4.Interfaces.IfcDuctFittingTypeEnum.EXIT:
						PredefinedType = IfcDuctFittingTypeEnum.EXIT;
						return;
					case Ifc4.Interfaces.IfcDuctFittingTypeEnum.JUNCTION:
						PredefinedType = IfcDuctFittingTypeEnum.JUNCTION;
						return;
					case Ifc4.Interfaces.IfcDuctFittingTypeEnum.OBSTRUCTION:
						PredefinedType = IfcDuctFittingTypeEnum.OBSTRUCTION;
						return;
					case Ifc4.Interfaces.IfcDuctFittingTypeEnum.TRANSITION:
						PredefinedType = IfcDuctFittingTypeEnum.TRANSITION;
						return;
					case Ifc4.Interfaces.IfcDuctFittingTypeEnum.USERDEFINED:
						PredefinedType = IfcDuctFittingTypeEnum.USERDEFINED;
						return;
					case Ifc4.Interfaces.IfcDuctFittingTypeEnum.NOTDEFINED:
						PredefinedType = IfcDuctFittingTypeEnum.NOTDEFINED;
						return;
					default:
						throw new System.ArgumentOutOfRangeException();
				}
				
			}
		}
	//## Custom code
	//##
	}
}