예제 #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);
 }