Exemplo n.º 1
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();
     }
 }