public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("TDDIRequirementArtifactUnion(");
            bool          __first = true;

            if (RequirementPackage != null && __isset.RequirementPackage)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("RequirementPackage: ");
                __sb.Append(RequirementPackage == null ? "<null>" : RequirementPackage.ToString());
            }
            if (RequirementSource != null && __isset.RequirementSource)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("RequirementSource: ");
                __sb.Append(RequirementSource == null ? "<null>" : RequirementSource.ToString());
            }
            if (DependabilityRequirement != null && __isset.DependabilityRequirement)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DependabilityRequirement: ");
                __sb.Append(DependabilityRequirement == null ? "<null>" : DependabilityRequirement.ToString());
            }
            __sb.Append(")");
            return(__sb.ToString());
        }
Beispiel #2
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("TDDISecurityRequirement(");
            bool          __first = true;

            if (__isset.Id)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Id: ");
                __sb.Append(Id);
            }
            if (Name != null && __isset.Name)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Name: ");
                __sb.Append(Name);
            }
            if (Description != null && __isset.Description)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Description: ");
                __sb.Append(Description);
            }
            if (KeyValueMaps != null && __isset.KeyValueMaps)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("KeyValueMaps: ");
                __sb.Append(KeyValueMaps);
            }
            if (DecompositionArgument != null && __isset.DecompositionArgument)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DecompositionArgument: ");
                __sb.Append(DecompositionArgument);
            }
            if (RefinedRequirements != null && __isset.RefinedRequirements)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("RefinedRequirements: ");
                __sb.Append(RefinedRequirements);
            }
            if (RequirementSource != null && __isset.RequirementSource)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("RequirementSource: ");
                __sb.Append(RequirementSource == null ? "<null>" : RequirementSource.ToString());
            }
            if (Measures != null && __isset.Measures)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Measures: ");
                __sb.Append(Measures);
            }
            if (Failures != null && __isset.Failures)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Failures: ");
                __sb.Append(Failures);
            }
            if (AssuranceLevel != null && __isset.AssuranceLevel)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("AssuranceLevel: ");
                __sb.Append(AssuranceLevel == null ? "<null>" : AssuranceLevel.ToString());
            }
            if (MaintenanceProcedures != null && __isset.MaintenanceProcedures)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("MaintenanceProcedures: ");
                __sb.Append(MaintenanceProcedures);
            }
            if (SecurityCapabilities != null && __isset.SecurityCapabilities)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("SecurityCapabilities: ");
                __sb.Append(SecurityCapabilities);
            }
            __sb.Append(")");
            return(__sb.ToString());
        }
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("TDDISafetyRequirement(");
            bool          __first = true;

            if (__isset.Id)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Id: ");
                __sb.Append(Id);
            }
            if (Name != null && __isset.Name)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Name: ");
                __sb.Append(Name);
            }
            if (Description != null && __isset.Description)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Description: ");
                __sb.Append(Description);
            }
            if (__isset.IsCitation)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("IsCitation: ");
                __sb.Append(IsCitation);
            }
            if (__isset.IsAbstract)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("IsAbstract: ");
                __sb.Append(IsAbstract);
            }
            if (KeyValueMaps != null && __isset.KeyValueMaps)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("KeyValueMaps: ");
                __sb.Append(KeyValueMaps);
            }
            if (CitedElement != null && __isset.CitedElement)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("CitedElement: ");
                __sb.Append(CitedElement == null ? "<null>" : CitedElement.ToString());
            }
            if (DecompositionArgument != null && __isset.DecompositionArgument)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DecompositionArgument: ");
                __sb.Append(DecompositionArgument);
            }
            if (RefinedRequirements != null && __isset.RefinedRequirements)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("RefinedRequirements: ");
                __sb.Append(RefinedRequirements);
            }
            if (RequirementSource != null && __isset.RequirementSource)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("RequirementSource: ");
                __sb.Append(RequirementSource == null ? "<null>" : RequirementSource.ToString());
            }
            if (Measures != null && __isset.Measures)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Measures: ");
                __sb.Append(Measures);
            }
            if (FailureModes != null && __isset.FailureModes)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("FailureModes: ");
                __sb.Append(FailureModes);
            }
            if (AssuranceLevel != null && __isset.AssuranceLevel)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("AssuranceLevel: ");
                __sb.Append(AssuranceLevel == null ? "<null>" : AssuranceLevel.ToString());
            }
            if (MaintenanceProcedures != null && __isset.MaintenanceProcedures)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("MaintenanceProcedures: ");
                __sb.Append(MaintenanceProcedures);
            }
            if (Hazards != null && __isset.Hazards)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Hazards: ");
                __sb.Append(Hazards);
            }
            if (__isset.FailureReactionTime)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("FailureReactionTime: ");
                __sb.Append(FailureReactionTime);
            }
            if (__isset.FailureDetectionTime)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("FailureDetectionTime: ");
                __sb.Append(FailureDetectionTime);
            }
            if (__isset.FailureLatencyTime)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("FailureLatencyTime: ");
                __sb.Append(FailureLatencyTime);
            }
            if (__isset.IsSafetyGoal)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("IsSafetyGoal: ");
                __sb.Append(IsSafetyGoal);
            }
            __sb.Append(")");
            return(__sb.ToString());
        }