// ------------------------------------------------------------------------------
// <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.StructuralLoadResource
{
	public partial class @IfcFailureConnectionCondition : IIfcFailureConnectionCondition
	{

		[CrossSchemaAttribute(typeof(IIfcFailureConnectionCondition), 2)]
		Ifc4.MeasureResource.IfcForceMeasure? IIfcFailureConnectionCondition.TensionFailureX 
		{ 
			get
			{
				if (!TensionFailureX.HasValue) return null;
				return new Ifc4.MeasureResource.IfcForceMeasure(TensionFailureX.Value);
			} 
			set
			{
				TensionFailureX = value.HasValue ? 
					new MeasureResource.IfcForceMeasure(value.Value) :  
					 new MeasureResource.IfcForceMeasure?() ;
				
			}
		}

		[CrossSchemaAttribute(typeof(IIfcFailureConnectionCondition), 3)]
		Ifc4.MeasureResource.IfcForceMeasure? IIfcFailureConnectionCondition.TensionFailureY 
		{ 
			get
			{
				if (!TensionFailureY.HasValue) return null;
				return new Ifc4.MeasureResource.IfcForceMeasure(TensionFailureY.Value);
			} 
			set
			{
				TensionFailureY = value.HasValue ? 
					new MeasureResource.IfcForceMeasure(value.Value) :  
					 new MeasureResource.IfcForceMeasure?() ;
				
			}
		}

		[CrossSchemaAttribute(typeof(IIfcFailureConnectionCondition), 4)]
		Ifc4.MeasureResource.IfcForceMeasure? IIfcFailureConnectionCondition.TensionFailureZ 
		{ 
			get
			{
				if (!TensionFailureZ.HasValue) return null;
				return new Ifc4.MeasureResource.IfcForceMeasure(TensionFailureZ.Value);
			} 
			set
			{
				TensionFailureZ = value.HasValue ? 
					new MeasureResource.IfcForceMeasure(value.Value) :  
					 new MeasureResource.IfcForceMeasure?() ;
				
			}
		}

		[CrossSchemaAttribute(typeof(IIfcFailureConnectionCondition), 5)]
		Ifc4.MeasureResource.IfcForceMeasure? IIfcFailureConnectionCondition.CompressionFailureX 
		{ 
			get
			{
				if (!CompressionFailureX.HasValue) return null;
				return new Ifc4.MeasureResource.IfcForceMeasure(CompressionFailureX.Value);
			} 
			set
			{
				CompressionFailureX = value.HasValue ? 
					new MeasureResource.IfcForceMeasure(value.Value) :  
					 new MeasureResource.IfcForceMeasure?() ;
				
			}
		}

		[CrossSchemaAttribute(typeof(IIfcFailureConnectionCondition), 6)]
		Ifc4.MeasureResource.IfcForceMeasure? IIfcFailureConnectionCondition.CompressionFailureY 
		{ 
			get
			{
				if (!CompressionFailureY.HasValue) return null;
				return new Ifc4.MeasureResource.IfcForceMeasure(CompressionFailureY.Value);
			} 
			set
			{
				CompressionFailureY = value.HasValue ? 
					new MeasureResource.IfcForceMeasure(value.Value) :  
					 new MeasureResource.IfcForceMeasure?() ;
				
			}
		}

		[CrossSchemaAttribute(typeof(IIfcFailureConnectionCondition), 7)]
		Ifc4.MeasureResource.IfcForceMeasure? IIfcFailureConnectionCondition.CompressionFailureZ 
		{ 
			get
			{
				if (!CompressionFailureZ.HasValue) return null;
				return new Ifc4.MeasureResource.IfcForceMeasure(CompressionFailureZ.Value);
			} 
			set
			{
				CompressionFailureZ = value.HasValue ? 
					new MeasureResource.IfcForceMeasure(value.Value) :  
					 new MeasureResource.IfcForceMeasure?() ;
				
			}
		}
	//## Custom code
	//##
	}
}