Пример #1
0
 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);
     }
 }
Пример #2
0
 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);
     }
 }
Пример #3
0
        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));
            }
        }
Пример #4
0
 public virtual void VisitEnumerationReference(EnumerationReference enumerationReference)
 {
     DefaultVisit(enumerationReference);
 }