protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed) { base.setJSON(obj, host, processed); if (mTemplateType != IfcSimplePropertyTemplateTypeEnum.NOTDEFINED) { obj["TemplateType"] = mTemplateType.ToString(); } setAttribute(obj, "PrimaryMeasureType", PrimaryMeasureType); setAttribute(obj, "SecondaryMeasureType", SecondaryMeasureType); if (mEnumerators > 0) { obj["Enumerators"] = Enumerators.getJson(this, processed); } if (mPrimaryUnit > 0) { obj["PrimaryUnit"] = mDatabase[mPrimaryUnit].getJson(this, processed); } if (mSecondaryUnit > 0) { obj["SecondaryUnit"] = mDatabase[mSecondaryUnit].getJson(this, processed); } setAttribute(obj, "Expression", Expression); if (mAccessState != IfcStateEnum.NA) { obj["AccessState"] = mAccessState.ToString(); } }