// ------------------------------------------------------------------------------
// <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.SharedBldgElements
{
	public partial class @IfcStairFlightType : IIfcStairFlightType
	{

		[CrossSchemaAttribute(typeof(IIfcStairFlightType), 10)]
		Ifc4.Interfaces.IfcStairFlightTypeEnum IIfcStairFlightType.PredefinedType 
		{ 
			get
			{
				//## Custom code to handle enumeration of PredefinedType
				//##
				switch (PredefinedType)
				{
					case IfcStairFlightTypeEnum.CURVED:
						return Ifc4.Interfaces.IfcStairFlightTypeEnum.CURVED;
					case IfcStairFlightTypeEnum.FREEFORM:
						return Ifc4.Interfaces.IfcStairFlightTypeEnum.FREEFORM;
					case IfcStairFlightTypeEnum.SPIRAL:
						return Ifc4.Interfaces.IfcStairFlightTypeEnum.SPIRAL;
					case IfcStairFlightTypeEnum.STRAIGHT:
						return Ifc4.Interfaces.IfcStairFlightTypeEnum.STRAIGHT;
					case IfcStairFlightTypeEnum.WINDER:
						return Ifc4.Interfaces.IfcStairFlightTypeEnum.WINDER;
					case IfcStairFlightTypeEnum.USERDEFINED:
						//## Optional custom handling of PredefinedType == .USERDEFINED. 
						//##
						return Ifc4.Interfaces.IfcStairFlightTypeEnum.USERDEFINED;
					case IfcStairFlightTypeEnum.NOTDEFINED:
						return Ifc4.Interfaces.IfcStairFlightTypeEnum.NOTDEFINED;
					
					default:
						throw new System.ArgumentOutOfRangeException();
				}
			} 
			set
			{
				//## Custom code to handle setting of enumeration of PredefinedType
				//##
				switch (value)
				{
					case Ifc4.Interfaces.IfcStairFlightTypeEnum.STRAIGHT:
						PredefinedType = IfcStairFlightTypeEnum.STRAIGHT;
						return;
					case Ifc4.Interfaces.IfcStairFlightTypeEnum.WINDER:
						PredefinedType = IfcStairFlightTypeEnum.WINDER;
						return;
					case Ifc4.Interfaces.IfcStairFlightTypeEnum.SPIRAL:
						PredefinedType = IfcStairFlightTypeEnum.SPIRAL;
						return;
					case Ifc4.Interfaces.IfcStairFlightTypeEnum.CURVED:
						PredefinedType = IfcStairFlightTypeEnum.CURVED;
						return;
					case Ifc4.Interfaces.IfcStairFlightTypeEnum.FREEFORM:
						PredefinedType = IfcStairFlightTypeEnum.FREEFORM;
						return;
					case Ifc4.Interfaces.IfcStairFlightTypeEnum.USERDEFINED:
						PredefinedType = IfcStairFlightTypeEnum.USERDEFINED;
						return;
					case Ifc4.Interfaces.IfcStairFlightTypeEnum.NOTDEFINED:
						PredefinedType = IfcStairFlightTypeEnum.NOTDEFINED;
						return;
					default:
						throw new System.ArgumentOutOfRangeException();
				}
				
			}
		}
	//## Custom code
	//##
	}
}