public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("TDDIHARAPackageUnion");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (HARAPackage != null && __isset.HARAPackage)
         {
             field.Name = "HARAPackage";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             HARAPackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (HARAPackageInterface != null && __isset.HARAPackageInterface)
         {
             field.Name = "HARAPackageInterface";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             HARAPackageInterface.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (HARAPackageBinding != null && __isset.HARAPackageBinding)
         {
             field.Name = "HARAPackageBinding";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             HARAPackageBinding.Write(oprot);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("TDDIHARAPackageUnion(");
            bool          __first = true;

            if (HARAPackage != null && __isset.HARAPackage)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("HARAPackage: ");
                __sb.Append(HARAPackage == null ? "<null>" : HARAPackage.ToString());
            }
            if (HARAPackageInterface != null && __isset.HARAPackageInterface)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("HARAPackageInterface: ");
                __sb.Append(HARAPackageInterface == null ? "<null>" : HARAPackageInterface.ToString());
            }
            if (HARAPackageBinding != null && __isset.HARAPackageBinding)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("HARAPackageBinding: ");
                __sb.Append(HARAPackageBinding == null ? "<null>" : HARAPackageBinding.ToString());
            }
            __sb.Append(")");
            return(__sb.ToString());
        }
 public void Write(TProtocol oprot) {
   oprot.IncrementRecursionDepth();
   try
   {
     TStruct struc = new TStruct("TDDIHARAArtifactUnion");
     oprot.WriteStructBegin(struc);
     TField field = new TField();
     if (HARAPackage != null && __isset.HARAPackage) {
       field.Name = "HARAPackage";
       field.Type = TType.Struct;
       field.ID = 1;
       oprot.WriteFieldBegin(field);
       HARAPackage.Write(oprot);
       oprot.WriteFieldEnd();
     }
     if (HazardTypeSystem != null && __isset.HazardTypeSystem) {
       field.Name = "HazardTypeSystem";
       field.Type = TType.Struct;
       field.ID = 2;
       oprot.WriteFieldBegin(field);
       HazardTypeSystem.Write(oprot);
       oprot.WriteFieldEnd();
     }
     if (RiskParameter != null && __isset.RiskParameter) {
       field.Name = "RiskParameter";
       field.Type = TType.Struct;
       field.ID = 3;
       oprot.WriteFieldBegin(field);
       RiskParameter.Write(oprot);
       oprot.WriteFieldEnd();
     }
     if (RiskAssessment != null && __isset.RiskAssessment) {
       field.Name = "RiskAssessment";
       field.Type = TType.Struct;
       field.ID = 4;
       oprot.WriteFieldBegin(field);
       RiskAssessment.Write(oprot);
       oprot.WriteFieldEnd();
     }
     if (HazardType != null && __isset.HazardType) {
       field.Name = "HazardType";
       field.Type = TType.Struct;
       field.ID = 5;
       oprot.WriteFieldBegin(field);
       HazardType.Write(oprot);
       oprot.WriteFieldEnd();
     }
     if (MalFunction != null && __isset.MalFunction) {
       field.Name = "MalFunction";
       field.Type = TType.Struct;
       field.ID = 6;
       oprot.WriteFieldBegin(field);
       MalFunction.Write(oprot);
       oprot.WriteFieldEnd();
     }
     if (Hazard != null && __isset.Hazard) {
       field.Name = "Hazard";
       field.Type = TType.Struct;
       field.ID = 7;
       oprot.WriteFieldBegin(field);
       Hazard.Write(oprot);
       oprot.WriteFieldEnd();
     }
     oprot.WriteFieldStop();
     oprot.WriteStructEnd();
   }
   finally
   {
     oprot.DecrementRecursionDepth();
   }
 }
Esempio n. 4
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());
        }
Esempio n. 5
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();
     }
 }