// ------------------------------------------------------------------------------
// <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;

// ReSharper disable once CheckNamespace
namespace Xbim.Ifc2x3.ExternalReferenceResource
{
	public partial class @IfcLibraryReference : IIfcLibraryReference
	{

		private  Ifc4.MeasureResource.IfcText? _description;


		[CrossSchemaAttribute(typeof(IIfcLibraryReference), 4)]
		Ifc4.MeasureResource.IfcText? IIfcLibraryReference.Description 
		{ 
			get
			{
				return _description;
			} 
			set
			{
				SetValue(v => _description = v, _description, value, "Description", -4);
				
			}
		}

		private  Ifc4.ExternalReferenceResource.IfcLanguageId? _language;


		[CrossSchemaAttribute(typeof(IIfcLibraryReference), 5)]
		Ifc4.ExternalReferenceResource.IfcLanguageId? IIfcLibraryReference.Language 
		{ 
			get
			{
				return _language;
			} 
			set
			{
				SetValue(v => _language = v, _language, value, "Language", -5);
				
			}
		}

		private  IIfcLibraryInformation _referencedLibrary;


		[CrossSchemaAttribute(typeof(IIfcLibraryReference), 6)]
		IIfcLibraryInformation IIfcLibraryReference.ReferencedLibrary 
		{ 
			get
			{
				return _referencedLibrary;
			} 
			set
			{
				SetValue(v => _referencedLibrary = v, _referencedLibrary, value, "ReferencedLibrary", -6);
				
			}
		}
		IEnumerable<IIfcRelAssociatesLibrary> IIfcLibraryReference.LibraryRefForObjects 
		{ 
			get
			{
				return Model.Instances.Where<IIfcRelAssociatesLibrary>(e => (e.RelatingLibrary as IfcLibraryReference) == this, "RelatingLibrary", this);
			} 
		}
	//## Custom code
	//##
	}
}