// ------------------------------------------------------------------------------
// <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 @IfcRelConnectsPathElements : IIfcRelConnectsPathElements
	{

		[CrossSchemaAttribute(typeof(IIfcRelConnectsPathElements), 8)]
		IItemSet<Xbim.Ifc4.MeasureResource.IfcInteger> IIfcRelConnectsPathElements.RelatingPriorities 
		{ 
			get
			{
			
				return new Common.Collections.ProxyValueSet<MeasureResource.IfcInteger, Ifc4.MeasureResource.IfcInteger>(RelatingPriorities, 
					s => new Ifc4.MeasureResource.IfcInteger(s), 
					t => new MeasureResource.IfcInteger(t));
			} 
		}

		[CrossSchemaAttribute(typeof(IIfcRelConnectsPathElements), 9)]
		IItemSet<Xbim.Ifc4.MeasureResource.IfcInteger> IIfcRelConnectsPathElements.RelatedPriorities 
		{ 
			get
			{
			
				return new Common.Collections.ProxyValueSet<MeasureResource.IfcInteger, Ifc4.MeasureResource.IfcInteger>(RelatedPriorities, 
					s => new Ifc4.MeasureResource.IfcInteger(s), 
					t => new MeasureResource.IfcInteger(t));
			} 
		}

		[CrossSchemaAttribute(typeof(IIfcRelConnectsPathElements), 10)]
		Ifc4.Interfaces.IfcConnectionTypeEnum IIfcRelConnectsPathElements.RelatedConnectionType 
		{ 
			get
			{
				//## Custom code to handle enumeration of RelatedConnectionType
				//##
				switch (RelatedConnectionType)
				{
					case IfcConnectionTypeEnum.ATEND:
						return Ifc4.Interfaces.IfcConnectionTypeEnum.ATEND;
					case IfcConnectionTypeEnum.ATPATH:
						return Ifc4.Interfaces.IfcConnectionTypeEnum.ATPATH;
					case IfcConnectionTypeEnum.ATSTART:
						return Ifc4.Interfaces.IfcConnectionTypeEnum.ATSTART;
					case IfcConnectionTypeEnum.NOTDEFINED:
						return Ifc4.Interfaces.IfcConnectionTypeEnum.NOTDEFINED;
					
					default:
						throw new System.ArgumentOutOfRangeException();
				}
			} 
			set
			{
				//## Custom code to handle setting of enumeration of RelatedConnectionType
				//##
				switch (value)
				{
					case Ifc4.Interfaces.IfcConnectionTypeEnum.ATPATH:
						RelatedConnectionType = IfcConnectionTypeEnum.ATPATH;
						return;
					case Ifc4.Interfaces.IfcConnectionTypeEnum.ATSTART:
						RelatedConnectionType = IfcConnectionTypeEnum.ATSTART;
						return;
					case Ifc4.Interfaces.IfcConnectionTypeEnum.ATEND:
						RelatedConnectionType = IfcConnectionTypeEnum.ATEND;
						return;
					case Ifc4.Interfaces.IfcConnectionTypeEnum.NOTDEFINED:
						RelatedConnectionType = IfcConnectionTypeEnum.NOTDEFINED;
						return;
					default:
						throw new System.ArgumentOutOfRangeException();
				}
				
			}
		}

		[CrossSchemaAttribute(typeof(IIfcRelConnectsPathElements), 11)]
		Ifc4.Interfaces.IfcConnectionTypeEnum IIfcRelConnectsPathElements.RelatingConnectionType 
		{ 
			get
			{
				//## Custom code to handle enumeration of RelatingConnectionType
				//##
				switch (RelatingConnectionType)
				{
					case IfcConnectionTypeEnum.ATEND:
						return Ifc4.Interfaces.IfcConnectionTypeEnum.ATEND;
					case IfcConnectionTypeEnum.ATPATH:
						return Ifc4.Interfaces.IfcConnectionTypeEnum.ATPATH;
					case IfcConnectionTypeEnum.ATSTART:
						return Ifc4.Interfaces.IfcConnectionTypeEnum.ATSTART;
					case IfcConnectionTypeEnum.NOTDEFINED:
						return Ifc4.Interfaces.IfcConnectionTypeEnum.NOTDEFINED;
					
					default:
						throw new System.ArgumentOutOfRangeException();
				}
			} 
			set
			{
				//## Custom code to handle setting of enumeration of RelatingConnectionType
				//##
				switch (value)
				{
					case Ifc4.Interfaces.IfcConnectionTypeEnum.ATPATH:
						RelatingConnectionType = IfcConnectionTypeEnum.ATPATH;
						return;
					case Ifc4.Interfaces.IfcConnectionTypeEnum.ATSTART:
						RelatingConnectionType = IfcConnectionTypeEnum.ATSTART;
						return;
					case Ifc4.Interfaces.IfcConnectionTypeEnum.ATEND:
						RelatingConnectionType = IfcConnectionTypeEnum.ATEND;
						return;
					case Ifc4.Interfaces.IfcConnectionTypeEnum.NOTDEFINED:
						RelatingConnectionType = IfcConnectionTypeEnum.NOTDEFINED;
						return;
					default:
						throw new System.ArgumentOutOfRangeException();
				}
				
			}
		}
	//## Custom code
	//##
	}
}