// ------------------------------------------------------------------------------
// <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.PresentationOrganizationResource
{
	public partial class @IfcPresentationLayerAssignment : IIfcPresentationLayerAssignment
	{

		[CrossSchemaAttribute(typeof(IIfcPresentationLayerAssignment), 1)]
		Ifc4.MeasureResource.IfcLabel IIfcPresentationLayerAssignment.Name 
		{ 
			get
			{
				return new Ifc4.MeasureResource.IfcLabel(Name);
			} 
			set
			{
				Name = new MeasureResource.IfcLabel(value);
				
			}
		}

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

		[CrossSchemaAttribute(typeof(IIfcPresentationLayerAssignment), 3)]
		IItemSet<IIfcLayeredItem> IIfcPresentationLayerAssignment.AssignedItems 
		{ 
			get
			{
			
				return new Common.Collections.ProxyItemSet<IfcLayeredItem, IIfcLayeredItem>(AssignedItems);
			} 
		}

		[CrossSchemaAttribute(typeof(IIfcPresentationLayerAssignment), 4)]
		Ifc4.MeasureResource.IfcIdentifier? IIfcPresentationLayerAssignment.Identifier 
		{ 
			get
			{
				if (!Identifier.HasValue) return null;
				return new Ifc4.MeasureResource.IfcIdentifier(Identifier.Value);
			} 
			set
			{
				Identifier = value.HasValue ? 
					new MeasureResource.IfcIdentifier(value.Value) :  
					 new MeasureResource.IfcIdentifier?() ;
				
			}
		}
	//## Custom code
	//##
	}
}