Exemplo n.º 1
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("TDDIODEProductPackageUnion(");
            bool          __first = true;

            if (DesignPackage != null && __isset.DesignPackage)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DesignPackage: ");
                __sb.Append(DesignPackage == null ? "<null>" : DesignPackage.ToString());
            }
            if (FailureLogicPackage != null && __isset.FailureLogicPackage)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("FailureLogicPackage: ");
                __sb.Append(FailureLogicPackage == null ? "<null>" : FailureLogicPackage.ToString());
            }
            if (RequirementPackage != null && __isset.RequirementPackage)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("RequirementPackage: ");
                __sb.Append(RequirementPackage);
            }
            if (HARAPackage != null && __isset.HARAPackage)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("HARAPackage: ");
                __sb.Append(HARAPackage == null ? "<null>" : HARAPackage.ToString());
            }
            if (DependabilityPackage != null && __isset.DependabilityPackage)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DependabilityPackage: ");
                __sb.Append(DependabilityPackage == null ? "<null>" : DependabilityPackage.ToString());
            }
            if (TARAPackage != null && __isset.TARAPackage)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("TARAPackage: ");
                __sb.Append(TARAPackage);
            }
            if (DomainPackage != null && __isset.DomainPackage)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DomainPackage: ");
                __sb.Append(DomainPackage == null ? "<null>" : DomainPackage.ToString());
            }
            __sb.Append(")");
            return(__sb.ToString());
        }
Exemplo n.º 2
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("TDDIDependabilityArtifactUnion(");
            bool          __first = true;

            if (DependabilityPackage != null && __isset.DependabilityPackage)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DependabilityPackage: ");
                __sb.Append(DependabilityPackage == null ? "<null>" : DependabilityPackage.ToString());
            }
            if (Measure != null && __isset.Measure)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Measure: ");
                __sb.Append(Measure == null ? "<null>" : Measure.ToString());
            }
            if (MeasureType != null && __isset.MeasureType)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("MeasureType: ");
                __sb.Append(MeasureType == null ? "<null>" : MeasureType.ToString());
            }
            if (MaintenanceProcedure != null && __isset.MaintenanceProcedure)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("MaintenanceProcedure: ");
                __sb.Append(MaintenanceProcedure == null ? "<null>" : MaintenanceProcedure.ToString());
            }
            if (DomainElement != null && __isset.DomainElement)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DomainElement: ");
                __sb.Append(DomainElement);
            }
            if (RequirementArtifact != null && __isset.RequirementArtifact)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("RequirementArtifact: ");
                __sb.Append(RequirementArtifact);
            }
            if (HARAArtifact != null && __isset.HARAArtifact)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("HARAArtifact: ");
                __sb.Append(HARAArtifact);
            }
            __sb.Append(")");
            return(__sb.ToString());
        }