Beispiel #1
0
 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
 {
     base.setJSON(obj, host, processed);
     if (!double.IsNaN(mTargetScale))
     {
         obj["TargetScale"] = mTargetScale.ToString();
     }
     obj["TargetView"] = TargetView.ToString();
     setAttribute(obj, "UserDefinedTargetView", UserDefinedTargetView);
 }
Beispiel #2
0
 protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
 {
     if (options.Style == SetJsonOptions.JsonStyle.Repository && string.IsNullOrEmpty(mGlobalId))
     {
         setGlobalId(ParserIfc.EncodeGuid(Guid.NewGuid()));
         options.Encountered.Add(mGlobalId);
     }
     base.setJSON(obj, host, options);
     obj["ParentContext"] = ParentContext.getJson(this, options);
     if (!double.IsNaN(mTargetScale))
     {
         obj["TargetScale"] = mTargetScale.ToString();
     }
     obj["TargetView"] = TargetView.ToString();
     setAttribute(obj, "UserDefinedTargetView", UserDefinedTargetView);
 }