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();
     }
 }
Beispiel #2
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();
     }
 }
Beispiel #3
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();
     }
 }