public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("TDDIDependabilityPackageUnion");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (DependabilityPackage != null && __isset.DependabilityPackage)
         {
             field.Name = "DependabilityPackage";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             DependabilityPackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (DependabilityPackageInterface != null && __isset.DependabilityPackageInterface)
         {
             field.Name = "DependabilityPackageInterface";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             DependabilityPackageInterface.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (DependabilityPackageBinding != null && __isset.DependabilityPackageBinding)
         {
             field.Name = "DependabilityPackageBinding";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             DependabilityPackageBinding.Write(oprot);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }
Exemplo n.º 2
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.º 3
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("TDDIODEProductPackageUnion");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (DesignPackage != null && __isset.DesignPackage)
         {
             field.Name = "DesignPackage";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             DesignPackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (FailureLogicPackage != null && __isset.FailureLogicPackage)
         {
             field.Name = "FailureLogicPackage";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             FailureLogicPackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (RequirementPackage != null && __isset.RequirementPackage)
         {
             field.Name = "RequirementPackage";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             RequirementPackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (HARAPackage != null && __isset.HARAPackage)
         {
             field.Name = "HARAPackage";
             field.Type = TType.Struct;
             field.ID   = 4;
             oprot.WriteFieldBegin(field);
             HARAPackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (DependabilityPackage != null && __isset.DependabilityPackage)
         {
             field.Name = "DependabilityPackage";
             field.Type = TType.Struct;
             field.ID   = 5;
             oprot.WriteFieldBegin(field);
             DependabilityPackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (TARAPackage != null && __isset.TARAPackage)
         {
             field.Name = "TARAPackage";
             field.Type = TType.Struct;
             field.ID   = 6;
             oprot.WriteFieldBegin(field);
             TARAPackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (DomainPackage != null && __isset.DomainPackage)
         {
             field.Name = "DomainPackage";
             field.Type = TType.Struct;
             field.ID   = 7;
             oprot.WriteFieldBegin(field);
             DomainPackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }
Exemplo n.º 4
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());
        }
Exemplo n.º 5
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("TDDIDependabilityArtifactUnion");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (DependabilityPackage != null && __isset.DependabilityPackage)
         {
             field.Name = "DependabilityPackage";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             DependabilityPackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (Measure != null && __isset.Measure)
         {
             field.Name = "Measure";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             Measure.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (MeasureType != null && __isset.MeasureType)
         {
             field.Name = "MeasureType";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             MeasureType.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (MaintenanceProcedure != null && __isset.MaintenanceProcedure)
         {
             field.Name = "MaintenanceProcedure";
             field.Type = TType.Struct;
             field.ID   = 4;
             oprot.WriteFieldBegin(field);
             MaintenanceProcedure.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (DomainElement != null && __isset.DomainElement)
         {
             field.Name = "DomainElement";
             field.Type = TType.Struct;
             field.ID   = 5;
             oprot.WriteFieldBegin(field);
             DomainElement.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (RequirementArtifact != null && __isset.RequirementArtifact)
         {
             field.Name = "RequirementArtifact";
             field.Type = TType.Struct;
             field.ID   = 6;
             oprot.WriteFieldBegin(field);
             RequirementArtifact.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (HARAArtifact != null && __isset.HARAArtifact)
         {
             field.Name = "HARAArtifact";
             field.Type = TType.Struct;
             field.ID   = 7;
             oprot.WriteFieldBegin(field);
             HARAArtifact.Write(oprot);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }