protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); obj["EnumerationValues"] = new JArray(EnumerationValues.ToList().ConvertAll(x => DatabaseIfc.extract(x))); if (mEnumerationReference > 0) { obj["EnumerationReference"] = EnumerationReference.getJson(this, options); } }
protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed) { base.setJSON(obj, host, processed); obj["EnumerationValues"] = new JArray(EnumerationValues.ConvertAll(x => DatabaseIfc.extract(x))); if (mEnumerationReference > 0) { obj["EnumerationReference"] = EnumerationReference.getJson(this, processed); } }
internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary <int, XmlElement> processed) { base.SetXML(xml, host, processed); XmlElement element = xml.OwnerDocument.CreateElement("EnumerationValues"); foreach (IfcValue value in mEnumerationValues) { element.AppendChild(convert(xml.OwnerDocument, value, "")); } if (mEnumerationReference > 0) { element.AppendChild(EnumerationReference.GetXML(xml.OwnerDocument, "EnumerationReference", this, processed)); } }
public virtual void VisitEnumerationReference(EnumerationReference enumerationReference) { DefaultVisit(enumerationReference); }