예제 #1
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("TDDIAssuranceCasePackageUnion");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (AssuranceCasePackage != null && __isset.AssuranceCasePackage)
         {
             field.Name = "AssuranceCasePackage";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             AssuranceCasePackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (AssuranceCasePackageInterface != null && __isset.AssuranceCasePackageInterface)
         {
             field.Name = "AssuranceCasePackageInterface";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             AssuranceCasePackageInterface.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (AssuranceCasePackageBinding != null && __isset.AssuranceCasePackageBinding)
         {
             field.Name = "AssuranceCasePackageBinding";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             AssuranceCasePackageBinding.Write(oprot);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("TDDIArtifactElementUnion");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (TerminologyElement != null && __isset.TerminologyElement)
         {
             field.Name = "TerminologyElement";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             TerminologyElement.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (AssuranceCasePackage != null && __isset.AssuranceCasePackage)
         {
             field.Name = "AssuranceCasePackage";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             AssuranceCasePackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ArtifactPackage != null && __isset.ArtifactPackage)
         {
             field.Name = "ArtifactPackage";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             ArtifactPackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ArtifactGroup != null && __isset.ArtifactGroup)
         {
             field.Name = "ArtifactGroup";
             field.Type = TType.Struct;
             field.ID   = 4;
             oprot.WriteFieldBegin(field);
             ArtifactGroup.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ArtifactAsset != null && __isset.ArtifactAsset)
         {
             field.Name = "ArtifactAsset";
             field.Type = TType.Struct;
             field.ID   = 5;
             oprot.WriteFieldBegin(field);
             ArtifactAsset.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ArgumentationElement != null && __isset.ArgumentationElement)
         {
             field.Name = "ArgumentationElement";
             field.Type = TType.Struct;
             field.ID   = 6;
             oprot.WriteFieldBegin(field);
             ArgumentationElement.Write(oprot);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }