protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
{
base.setJSON(obj, host, processed);
if(mDatabase.Release != ReleaseVersion.IFC2x3)
base.setAttribute(obj, "Name", Name);
base.setAttribute(obj, "Description", Description);
if(mProperties.Count > 0)
{
JArray array = new JArray();
foreach (int i in mProperties)
array.Add(mDatabase[i].getJson(this, processed));
obj["Properties"] = array;
}
}
}