// ------------------------------------------------------------------------------
// <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.StructuralAnalysisDomain
{
	public partial class @IfcStructuralCurveAction : IIfcStructuralCurveAction
	{

		[CrossSchemaAttribute(typeof(IIfcStructuralCurveAction), 11)]
		Ifc4.Interfaces.IfcProjectedOrTrueLengthEnum? IIfcStructuralCurveAction.ProjectedOrTrue 
		{ 
			get
			{
				//## Custom code to handle enumeration of ProjectedOrTrue
				//##
				switch (ProjectedOrTrue)
				{
					case IfcProjectedOrTrueLengthEnum.PROJECTED_LENGTH:
						return Ifc4.Interfaces.IfcProjectedOrTrueLengthEnum.PROJECTED_LENGTH;
					case IfcProjectedOrTrueLengthEnum.TRUE_LENGTH:
						return Ifc4.Interfaces.IfcProjectedOrTrueLengthEnum.TRUE_LENGTH;
					case null: 
						return null;
					
					default:
						throw new System.ArgumentOutOfRangeException();
				}
			} 
			set
			{
				//## Custom code to handle setting of enumeration of ProjectedOrTrue
				//##
				switch (value)
				{
					case Ifc4.Interfaces.IfcProjectedOrTrueLengthEnum.PROJECTED_LENGTH:
						ProjectedOrTrue = IfcProjectedOrTrueLengthEnum.PROJECTED_LENGTH;
						return;
					case Ifc4.Interfaces.IfcProjectedOrTrueLengthEnum.TRUE_LENGTH:
						ProjectedOrTrue = IfcProjectedOrTrueLengthEnum.TRUE_LENGTH;
						return;
					
					case null:
						ProjectedOrTrue = null;
						return;
					default:
						throw new System.ArgumentOutOfRangeException();
				}
				
			}
		}

		[CrossSchemaAttribute(typeof(IIfcStructuralCurveAction), 12)]
		Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum IIfcStructuralCurveAction.PredefinedType 
		{ 
			get
			{
				//## Custom code to handle enumeration of PredefinedType
				//##
				switch (PredefinedType)
				{
					case IfcStructuralCurveActivityTypeEnum.CONST:
						return Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.CONST;
					case IfcStructuralCurveActivityTypeEnum.DISCRETE:
						return Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.DISCRETE;
					case IfcStructuralCurveActivityTypeEnum.EQUIDISTANT:
						return Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.EQUIDISTANT;
					case IfcStructuralCurveActivityTypeEnum.LINEAR:
						return Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.LINEAR;
					case IfcStructuralCurveActivityTypeEnum.PARABOLA:
						return Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.PARABOLA;
					case IfcStructuralCurveActivityTypeEnum.POLYGONAL:
						return Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.POLYGONAL;
					case IfcStructuralCurveActivityTypeEnum.SINUS:
						return Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.SINUS;
					case IfcStructuralCurveActivityTypeEnum.USERDEFINED:
						//## Optional custom handling of PredefinedType == .USERDEFINED. 
						//##
						return Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.USERDEFINED;
					case IfcStructuralCurveActivityTypeEnum.NOTDEFINED:
						return Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.NOTDEFINED;
					
					default:
						throw new System.ArgumentOutOfRangeException();
				}
			} 
			set
			{
				//## Custom code to handle setting of enumeration of PredefinedType
				//##
				switch (value)
				{
					case Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.CONST:
						PredefinedType = IfcStructuralCurveActivityTypeEnum.CONST;
						return;
					case Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.LINEAR:
						PredefinedType = IfcStructuralCurveActivityTypeEnum.LINEAR;
						return;
					case Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.POLYGONAL:
						PredefinedType = IfcStructuralCurveActivityTypeEnum.POLYGONAL;
						return;
					case Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.EQUIDISTANT:
						PredefinedType = IfcStructuralCurveActivityTypeEnum.EQUIDISTANT;
						return;
					case Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.SINUS:
						PredefinedType = IfcStructuralCurveActivityTypeEnum.SINUS;
						return;
					case Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.PARABOLA:
						PredefinedType = IfcStructuralCurveActivityTypeEnum.PARABOLA;
						return;
					case Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.DISCRETE:
						PredefinedType = IfcStructuralCurveActivityTypeEnum.DISCRETE;
						return;
					case Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.USERDEFINED:
						PredefinedType = IfcStructuralCurveActivityTypeEnum.USERDEFINED;
						return;
					case Ifc4.Interfaces.IfcStructuralCurveActivityTypeEnum.NOTDEFINED:
						PredefinedType = IfcStructuralCurveActivityTypeEnum.NOTDEFINED;
						return;
					default:
						throw new System.ArgumentOutOfRangeException();
				}
				
			}
		}
	//## Custom code
	//##
	}
}