using System;
using System.Diagnostics;
using System.Xml.Serialization;

namespace QC.QSPRLogSchema;

[Serializable]
[XmlType(AnonymousType = true)]
public class DataSetReference
{
	[DebuggerBrowsable(DebuggerBrowsableState.Never)]
	private string idField;

	[XmlAttribute]
	public string Id
	{
		get
		{
			return idField;
		}
		set
		{
			idField = value;
		}
	}

	public bool ShouldSerializeId()
	{
		return !string.IsNullOrEmpty(Id);
	}

	public DataSetReference()
	{
		idField = string.Empty;
	}

	public DataSetReference(string id)
	{
		if (!string.IsNullOrEmpty(id))
		{
			idField = id;
		}
		else
		{
			idField = string.Empty;
		}
	}
}
