protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); if (host == null || host.mIndex != mRelatingStructuralMember) { obj["RelatingStructuralMember"] = RelatingStructuralMember.getJson(host, options); } if (host == null || host.mIndex != mRelatedStructuralConnection) { obj["RelatedStructuralConnection"] = RelatedStructuralConnection.getJson(host, options); } if (mAppliedCondition > 0) { obj["AppliedCondition"] = AppliedCondition.getJson(this, options); } if (mAdditionalConditions > 0) { obj["AdditionalConditions"] = AdditionalConditions.getJson(this, options); } if (mSupportedLength > 0) { obj["SupportedLength"] = SupportedLength; } if (mConditionCoordinateSystem > 0) { obj["ConditionCoordinateSystem"] = ConditionCoordinateSystem.getJson(this, options); } }
protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed) { base.setJSON(obj, host, processed); if (mConditionCoordinateSystem > 0) { obj["ConditionCoordinateSystem"] = ConditionCoordinateSystem.getJson(this, processed); } }
protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); if (mConditionCoordinateSystem > 0) { obj["ConditionCoordinateSystem"] = ConditionCoordinateSystem.getJson(this, options); } }
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(RelatingStructuralMember != null ? RelatingStructuralMember.ToStepValue() : "$"); parameters.Add(RelatedStructuralConnection != null ? RelatedStructuralConnection.ToStepValue() : "$"); parameters.Add(AppliedCondition != null ? AppliedCondition.ToStepValue() : "$"); parameters.Add(AdditionalConditions != null ? AdditionalConditions.ToStepValue() : "$"); parameters.Add(SupportedLength != null ? SupportedLength.ToStepValue() : "$"); parameters.Add(ConditionCoordinateSystem != null ? ConditionCoordinateSystem.ToStepValue() : "$"); parameters.Add(ConnectionConstraint != null ? ConnectionConstraint.ToStepValue() : "$"); return(string.Join(", ", parameters.ToArray())); }