protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); if (RelatingContext != host) { obj["RelatingContext"] = RelatingContext.getJson(this, options); } obj["RelatedDefinitions"] = new JArray(mRelatedDefinitions.ConvertAll(x => mDatabase[x.Index].getJson(this, options))); }
protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed) { base.setJSON(obj, host, processed); if (mRelatingContext != host.mIndex) { obj["RelatingContext"] = RelatingContext.getJson(this, processed); } obj["RelatedDefinitions"] = new JArray(mRelatedDefinitions.ConvertAll(x => mDatabase[x].getJson(this, processed))); }
public override string GetStepParameters() { var parameters = new List <string>(); parameters.Add(GlobalId != null ? GlobalId.ToStepValue() : "$"); parameters.Add(OwnerHistory != null ? OwnerHistory.ToStepValue() : "$"); parameters.Add(Name != null ? Name.ToStepValue() : "$"); parameters.Add(Description != null ? Description.ToStepValue() : "$"); parameters.Add(RelatingContext != null ? RelatingContext.ToStepValue() : "$"); parameters.Add(RelatedDefinitions != null ? RelatedDefinitions.ToStepValue() : "$"); return(string.Join(", ", parameters.ToArray())); }