public Excel_condi_structuredAccrualCouponSchedule(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode eventDateNode = xmlNode.SelectSingleNode("eventDate");

            if (eventDateNode != null)
            {
                if (eventDateNode.Attributes["href"] != null || eventDateNode.Attributes["id"] != null)
                {
                    if (eventDateNode.Attributes["id"] != null)
                    {
                        eventDateIDRef_ = eventDateNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(eventDateNode);
                        IDManager.SetID(eventDateIDRef_, ob);
                    }
                    else if (eventDateNode.Attributes["href"] != null)
                    {
                        eventDateIDRef_ = eventDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        eventDate_ = new XsdTypeToken(eventDateNode);
                    }
                }
                else
                {
                    eventDate_ = new XsdTypeToken(eventDateNode);
                }
            }


            XmlNode range1DNode = xmlNode.SelectSingleNode("range1D");

            if (range1DNode != null)
            {
                if (range1DNode.Attributes["href"] != null || range1DNode.Attributes["id"] != null)
                {
                    if (range1DNode.Attributes["id"] != null)
                    {
                        range1DIDRef_ = range1DNode.Attributes["id"].Value;
                        Range1D ob = new Range1D(range1DNode);
                        IDManager.SetID(range1DIDRef_, ob);
                    }
                    else if (range1DNode.Attributes["href"] != null)
                    {
                        range1DIDRef_ = range1DNode.Attributes["href"].Value;
                    }
                    else
                    {
                        range1D_ = new Range1D(range1DNode);
                    }
                }
                else
                {
                    range1D_ = new Range1D(range1DNode);
                }
            }


            XmlNode excel_returnCalcInfoNode = xmlNode.SelectSingleNode("excel_returnCalcInfo");

            if (excel_returnCalcInfoNode != null)
            {
                if (excel_returnCalcInfoNode.Attributes["href"] != null || excel_returnCalcInfoNode.Attributes["id"] != null)
                {
                    if (excel_returnCalcInfoNode.Attributes["id"] != null)
                    {
                        excel_returnCalcInfoIDRef_ = excel_returnCalcInfoNode.Attributes["id"].Value;
                        Excel_returnCalcInfo ob = new Excel_returnCalcInfo(excel_returnCalcInfoNode);
                        IDManager.SetID(excel_returnCalcInfoIDRef_, ob);
                    }
                    else if (excel_returnCalcInfoNode.Attributes["href"] != null)
                    {
                        excel_returnCalcInfoIDRef_ = excel_returnCalcInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_returnCalcInfo_ = new Excel_returnCalcInfo(excel_returnCalcInfoNode);
                    }
                }
                else
                {
                    excel_returnCalcInfo_ = new Excel_returnCalcInfo(excel_returnCalcInfoNode);
                }
            }


            XmlNode dayCounterNode = xmlNode.SelectSingleNode("dayCounter");

            if (dayCounterNode != null)
            {
                if (dayCounterNode.Attributes["href"] != null || dayCounterNode.Attributes["id"] != null)
                {
                    if (dayCounterNode.Attributes["id"] != null)
                    {
                        dayCounterIDRef_ = dayCounterNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(dayCounterNode);
                        IDManager.SetID(dayCounterIDRef_, ob);
                    }
                    else if (dayCounterNode.Attributes["href"] != null)
                    {
                        dayCounterIDRef_ = dayCounterNode.Attributes["href"].Value;
                    }
                    else
                    {
                        dayCounter_ = new XsdTypeToken(dayCounterNode);
                    }
                }
                else
                {
                    dayCounter_ = new XsdTypeToken(dayCounterNode);
                }
            }


            XmlNode calculationStartDateNode = xmlNode.SelectSingleNode("calculationStartDate");

            if (calculationStartDateNode != null)
            {
                if (calculationStartDateNode.Attributes["href"] != null || calculationStartDateNode.Attributes["id"] != null)
                {
                    if (calculationStartDateNode.Attributes["id"] != null)
                    {
                        calculationStartDateIDRef_ = calculationStartDateNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(calculationStartDateNode);
                        IDManager.SetID(calculationStartDateIDRef_, ob);
                    }
                    else if (calculationStartDateNode.Attributes["href"] != null)
                    {
                        calculationStartDateIDRef_ = calculationStartDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        calculationStartDate_ = new XsdTypeToken(calculationStartDateNode);
                    }
                }
                else
                {
                    calculationStartDate_ = new XsdTypeToken(calculationStartDateNode);
                }
            }


            XmlNode calculationEndDateNode = xmlNode.SelectSingleNode("calculationEndDate");

            if (calculationEndDateNode != null)
            {
                if (calculationEndDateNode.Attributes["href"] != null || calculationEndDateNode.Attributes["id"] != null)
                {
                    if (calculationEndDateNode.Attributes["id"] != null)
                    {
                        calculationEndDateIDRef_ = calculationEndDateNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(calculationEndDateNode);
                        IDManager.SetID(calculationEndDateIDRef_, ob);
                    }
                    else if (calculationEndDateNode.Attributes["href"] != null)
                    {
                        calculationEndDateIDRef_ = calculationEndDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        calculationEndDate_ = new XsdTypeToken(calculationEndDateNode);
                    }
                }
                else
                {
                    calculationEndDate_ = new XsdTypeToken(calculationEndDateNode);
                }
            }


            XmlNode paymentDateNode = xmlNode.SelectSingleNode("paymentDate");

            if (paymentDateNode != null)
            {
                if (paymentDateNode.Attributes["href"] != null || paymentDateNode.Attributes["id"] != null)
                {
                    if (paymentDateNode.Attributes["id"] != null)
                    {
                        paymentDateIDRef_ = paymentDateNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(paymentDateNode);
                        IDManager.SetID(paymentDateIDRef_, ob);
                    }
                    else if (paymentDateNode.Attributes["href"] != null)
                    {
                        paymentDateIDRef_ = paymentDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        paymentDate_ = new XsdTypeToken(paymentDateNode);
                    }
                }
                else
                {
                    paymentDate_ = new XsdTypeToken(paymentDateNode);
                }
            }


            XmlNode detailScheduleTypeNode = xmlNode.SelectSingleNode("detailScheduleType");

            if (detailScheduleTypeNode != null)
            {
                if (detailScheduleTypeNode.Attributes["href"] != null || detailScheduleTypeNode.Attributes["id"] != null)
                {
                    if (detailScheduleTypeNode.Attributes["id"] != null)
                    {
                        detailScheduleTypeIDRef_ = detailScheduleTypeNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(detailScheduleTypeNode);
                        IDManager.SetID(detailScheduleTypeIDRef_, ob);
                    }
                    else if (detailScheduleTypeNode.Attributes["href"] != null)
                    {
                        detailScheduleTypeIDRef_ = detailScheduleTypeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        detailScheduleType_ = new XsdTypeToken(detailScheduleTypeNode);
                    }
                }
                else
                {
                    detailScheduleType_ = new XsdTypeToken(detailScheduleTypeNode);
                }
            }


            XmlNode descriptionNode = xmlNode.SelectSingleNode("description");

            if (descriptionNode != null)
            {
                if (descriptionNode.Attributes["href"] != null || descriptionNode.Attributes["id"] != null)
                {
                    if (descriptionNode.Attributes["id"] != null)
                    {
                        descriptionIDRef_ = descriptionNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(descriptionNode);
                        IDManager.SetID(descriptionIDRef_, ob);
                    }
                    else if (descriptionNode.Attributes["href"] != null)
                    {
                        descriptionIDRef_ = descriptionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        description_ = new XsdTypeToken(descriptionNode);
                    }
                }
                else
                {
                    description_ = new XsdTypeToken(descriptionNode);
                }
            }
        }
 public Excel_condi_structuredAccrualCouponSchedule(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode eventDateNode = xmlNode.SelectSingleNode("eventDate");
     
     if (eventDateNode != null)
     {
         if (eventDateNode.Attributes["href"] != null || eventDateNode.Attributes["id"] != null) 
         {
             if (eventDateNode.Attributes["id"] != null) 
             {
                 eventDateIDRef_ = eventDateNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(eventDateNode);
                 IDManager.SetID(eventDateIDRef_, ob);
             }
             else if (eventDateNode.Attributes["href"] != null)
             {
                 eventDateIDRef_ = eventDateNode.Attributes["href"].Value;
             }
             else
             {
                 eventDate_ = new XsdTypeToken(eventDateNode);
             }
         }
         else
         {
             eventDate_ = new XsdTypeToken(eventDateNode);
         }
     }
     
 
     XmlNode payoffDateNode = xmlNode.SelectSingleNode("payoffDate");
     
     if (payoffDateNode != null)
     {
         if (payoffDateNode.Attributes["href"] != null || payoffDateNode.Attributes["id"] != null) 
         {
             if (payoffDateNode.Attributes["id"] != null) 
             {
                 payoffDateIDRef_ = payoffDateNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(payoffDateNode);
                 IDManager.SetID(payoffDateIDRef_, ob);
             }
             else if (payoffDateNode.Attributes["href"] != null)
             {
                 payoffDateIDRef_ = payoffDateNode.Attributes["href"].Value;
             }
             else
             {
                 payoffDate_ = new XsdTypeToken(payoffDateNode);
             }
         }
         else
         {
             payoffDate_ = new XsdTypeToken(payoffDateNode);
         }
     }
     
 
     XmlNode calculationStartDateNode = xmlNode.SelectSingleNode("calculationStartDate");
     
     if (calculationStartDateNode != null)
     {
         if (calculationStartDateNode.Attributes["href"] != null || calculationStartDateNode.Attributes["id"] != null) 
         {
             if (calculationStartDateNode.Attributes["id"] != null) 
             {
                 calculationStartDateIDRef_ = calculationStartDateNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(calculationStartDateNode);
                 IDManager.SetID(calculationStartDateIDRef_, ob);
             }
             else if (calculationStartDateNode.Attributes["href"] != null)
             {
                 calculationStartDateIDRef_ = calculationStartDateNode.Attributes["href"].Value;
             }
             else
             {
                 calculationStartDate_ = new XsdTypeToken(calculationStartDateNode);
             }
         }
         else
         {
             calculationStartDate_ = new XsdTypeToken(calculationStartDateNode);
         }
     }
     
 
     XmlNode calculationEndDateNode = xmlNode.SelectSingleNode("calculationEndDate");
     
     if (calculationEndDateNode != null)
     {
         if (calculationEndDateNode.Attributes["href"] != null || calculationEndDateNode.Attributes["id"] != null) 
         {
             if (calculationEndDateNode.Attributes["id"] != null) 
             {
                 calculationEndDateIDRef_ = calculationEndDateNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(calculationEndDateNode);
                 IDManager.SetID(calculationEndDateIDRef_, ob);
             }
             else if (calculationEndDateNode.Attributes["href"] != null)
             {
                 calculationEndDateIDRef_ = calculationEndDateNode.Attributes["href"].Value;
             }
             else
             {
                 calculationEndDate_ = new XsdTypeToken(calculationEndDateNode);
             }
         }
         else
         {
             calculationEndDate_ = new XsdTypeToken(calculationEndDateNode);
         }
     }
     
 
     XmlNode descriptionNode = xmlNode.SelectSingleNode("description");
     
     if (descriptionNode != null)
     {
         if (descriptionNode.Attributes["href"] != null || descriptionNode.Attributes["id"] != null) 
         {
             if (descriptionNode.Attributes["id"] != null) 
             {
                 descriptionIDRef_ = descriptionNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(descriptionNode);
                 IDManager.SetID(descriptionIDRef_, ob);
             }
             else if (descriptionNode.Attributes["href"] != null)
             {
                 descriptionIDRef_ = descriptionNode.Attributes["href"].Value;
             }
             else
             {
                 description_ = new XsdTypeToken(descriptionNode);
             }
         }
         else
         {
             description_ = new XsdTypeToken(descriptionNode);
         }
     }
     
 
     XmlNode vba_descriptionNode = xmlNode.SelectSingleNode("vba_description");
     
     if (vba_descriptionNode != null)
     {
         if (vba_descriptionNode.Attributes["href"] != null || vba_descriptionNode.Attributes["id"] != null) 
         {
             if (vba_descriptionNode.Attributes["id"] != null) 
             {
                 vba_descriptionIDRef_ = vba_descriptionNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(vba_descriptionNode);
                 IDManager.SetID(vba_descriptionIDRef_, ob);
             }
             else if (vba_descriptionNode.Attributes["href"] != null)
             {
                 vba_descriptionIDRef_ = vba_descriptionNode.Attributes["href"].Value;
             }
             else
             {
                 vba_description_ = new XsdTypeToken(vba_descriptionNode);
             }
         }
         else
         {
             vba_description_ = new XsdTypeToken(vba_descriptionNode);
         }
     }
     
 
     XmlNode range1DNode = xmlNode.SelectSingleNode("range1D");
     
     if (range1DNode != null)
     {
         if (range1DNode.Attributes["href"] != null || range1DNode.Attributes["id"] != null) 
         {
             if (range1DNode.Attributes["id"] != null) 
             {
                 range1DIDRef_ = range1DNode.Attributes["id"].Value;
                 Range1D ob = new Range1D(range1DNode);
                 IDManager.SetID(range1DIDRef_, ob);
             }
             else if (range1DNode.Attributes["href"] != null)
             {
                 range1DIDRef_ = range1DNode.Attributes["href"].Value;
             }
             else
             {
                 range1D_ = new Range1D(range1DNode);
             }
         }
         else
         {
             range1D_ = new Range1D(range1DNode);
         }
     }
     
 
     XmlNode excel_returnCalcInfoNode = xmlNode.SelectSingleNode("excel_returnCalcInfo");
     
     if (excel_returnCalcInfoNode != null)
     {
         if (excel_returnCalcInfoNode.Attributes["href"] != null || excel_returnCalcInfoNode.Attributes["id"] != null) 
         {
             if (excel_returnCalcInfoNode.Attributes["id"] != null) 
             {
                 excel_returnCalcInfoIDRef_ = excel_returnCalcInfoNode.Attributes["id"].Value;
                 Excel_returnCalcInfo ob = new Excel_returnCalcInfo(excel_returnCalcInfoNode);
                 IDManager.SetID(excel_returnCalcInfoIDRef_, ob);
             }
             else if (excel_returnCalcInfoNode.Attributes["href"] != null)
             {
                 excel_returnCalcInfoIDRef_ = excel_returnCalcInfoNode.Attributes["href"].Value;
             }
             else
             {
                 excel_returnCalcInfo_ = new Excel_returnCalcInfo(excel_returnCalcInfoNode);
             }
         }
         else
         {
             excel_returnCalcInfo_ = new Excel_returnCalcInfo(excel_returnCalcInfoNode);
         }
     }
     
 
     XmlNode dayCounterNode = xmlNode.SelectSingleNode("dayCounter");
     
     if (dayCounterNode != null)
     {
         if (dayCounterNode.Attributes["href"] != null || dayCounterNode.Attributes["id"] != null) 
         {
             if (dayCounterNode.Attributes["id"] != null) 
             {
                 dayCounterIDRef_ = dayCounterNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(dayCounterNode);
                 IDManager.SetID(dayCounterIDRef_, ob);
             }
             else if (dayCounterNode.Attributes["href"] != null)
             {
                 dayCounterIDRef_ = dayCounterNode.Attributes["href"].Value;
             }
             else
             {
                 dayCounter_ = new XsdTypeToken(dayCounterNode);
             }
         }
         else
         {
             dayCounter_ = new XsdTypeToken(dayCounterNode);
         }
     }
     
 
     XmlNode detailScheduleTypeNode = xmlNode.SelectSingleNode("detailScheduleType");
     
     if (detailScheduleTypeNode != null)
     {
         if (detailScheduleTypeNode.Attributes["href"] != null || detailScheduleTypeNode.Attributes["id"] != null) 
         {
             if (detailScheduleTypeNode.Attributes["id"] != null) 
             {
                 detailScheduleTypeIDRef_ = detailScheduleTypeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(detailScheduleTypeNode);
                 IDManager.SetID(detailScheduleTypeIDRef_, ob);
             }
             else if (detailScheduleTypeNode.Attributes["href"] != null)
             {
                 detailScheduleTypeIDRef_ = detailScheduleTypeNode.Attributes["href"].Value;
             }
             else
             {
                 detailScheduleType_ = new XsdTypeToken(detailScheduleTypeNode);
             }
         }
         else
         {
             detailScheduleType_ = new XsdTypeToken(detailScheduleTypeNode);
         }
     }
     
 
 }
コード例 #3
0
        public SimpleRangeEventCal(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode range1DNode = xmlNode.SelectSingleNode("range1D");

            if (range1DNode != null)
            {
                if (range1DNode.Attributes["href"] != null || range1DNode.Attributes["id"] != null)
                {
                    if (range1DNode.Attributes["id"] != null)
                    {
                        range1DIDRef_ = range1DNode.Attributes["id"].Value;
                        Range1D ob = new Range1D(range1DNode);
                        IDManager.SetID(range1DIDRef_, ob);
                    }
                    else if (range1DNode.Attributes["href"] != null)
                    {
                        range1DIDRef_ = range1DNode.Attributes["href"].Value;
                    }
                    else
                    {
                        range1D_ = new Range1D(range1DNode);
                    }
                }
                else
                {
                    range1D_ = new Range1D(range1DNode);
                }
            }


            XmlNode referenceCalculationInfoNode = xmlNode.SelectSingleNode("referenceCalculationInfo");

            if (referenceCalculationInfoNode != null)
            {
                if (referenceCalculationInfoNode.Attributes["href"] != null || referenceCalculationInfoNode.Attributes["id"] != null)
                {
                    if (referenceCalculationInfoNode.Attributes["id"] != null)
                    {
                        referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["id"].Value;
                        ReferenceCalculationInfo ob = new ReferenceCalculationInfo(referenceCalculationInfoNode);
                        IDManager.SetID(referenceCalculationInfoIDRef_, ob);
                    }
                    else if (referenceCalculationInfoNode.Attributes["href"] != null)
                    {
                        referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode);
                    }
                }
                else
                {
                    referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode);
                }
            }


            XmlNode dateInformationNode = xmlNode.SelectSingleNode("dateInformation");

            if (dateInformationNode != null)
            {
                if (dateInformationNode.Attributes["href"] != null || dateInformationNode.Attributes["id"] != null)
                {
                    if (dateInformationNode.Attributes["id"] != null)
                    {
                        dateInformationIDRef_ = dateInformationNode.Attributes["id"].Value;
                        DateInformation ob = new DateInformation(dateInformationNode);
                        IDManager.SetID(dateInformationIDRef_, ob);
                    }
                    else if (dateInformationNode.Attributes["href"] != null)
                    {
                        dateInformationIDRef_ = dateInformationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        dateInformation_ = new DateInformation(dateInformationNode);
                    }
                }
                else
                {
                    dateInformation_ = new DateInformation(dateInformationNode);
                }
            }


            XmlNode jointSimpleCalculationNode = xmlNode.SelectSingleNode("jointSimpleCalculation");

            if (jointSimpleCalculationNode != null)
            {
                if (jointSimpleCalculationNode.Attributes["href"] != null || jointSimpleCalculationNode.Attributes["id"] != null)
                {
                    if (jointSimpleCalculationNode.Attributes["id"] != null)
                    {
                        jointSimpleCalculationIDRef_ = jointSimpleCalculationNode.Attributes["id"].Value;
                        JointSimpleCalculation ob = new JointSimpleCalculation(jointSimpleCalculationNode);
                        IDManager.SetID(jointSimpleCalculationIDRef_, ob);
                    }
                    else if (jointSimpleCalculationNode.Attributes["href"] != null)
                    {
                        jointSimpleCalculationIDRef_ = jointSimpleCalculationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        jointSimpleCalculation_ = new JointSimpleCalculation(jointSimpleCalculationNode);
                    }
                }
                else
                {
                    jointSimpleCalculation_ = new JointSimpleCalculation(jointSimpleCalculationNode);
                }
            }
        }
コード例 #4
0
 public RangeCondition1D(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode range1DNode = xmlNode.SelectSingleNode("range1D");
     
     if (range1DNode != null)
     {
         if (range1DNode.Attributes["href"] != null || range1DNode.Attributes["id"] != null) 
         {
             if (range1DNode.Attributes["id"] != null) 
             {
                 range1DIDRef_ = range1DNode.Attributes["id"].Value;
                 Range1D ob = new Range1D(range1DNode);
                 IDManager.SetID(range1DIDRef_, ob);
             }
             else if (range1DNode.Attributes["href"] != null)
             {
                 range1DIDRef_ = range1DNode.Attributes["href"].Value;
             }
             else
             {
                 range1D_ = new Range1D(range1DNode);
             }
         }
         else
         {
             range1D_ = new Range1D(range1DNode);
         }
     }
     
 
     XmlNode constValueNode = xmlNode.SelectSingleNode("constValue");
     
     if (constValueNode != null)
     {
         if (constValueNode.Attributes["href"] != null || constValueNode.Attributes["id"] != null) 
         {
             if (constValueNode.Attributes["id"] != null) 
             {
                 constValueIDRef_ = constValueNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(constValueNode);
                 IDManager.SetID(constValueIDRef_, ob);
             }
             else if (constValueNode.Attributes["href"] != null)
             {
                 constValueIDRef_ = constValueNode.Attributes["href"].Value;
             }
             else
             {
                 constValue_ = new XsdTypeToken(constValueNode);
             }
         }
         else
         {
             constValue_ = new XsdTypeToken(constValueNode);
         }
     }
     
 
     XmlNode refNameNode = xmlNode.SelectSingleNode("refName");
     
     if (refNameNode != null)
     {
         if (refNameNode.Attributes["href"] != null || refNameNode.Attributes["id"] != null) 
         {
             if (refNameNode.Attributes["id"] != null) 
             {
                 refNameIDRef_ = refNameNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(refNameNode);
                 IDManager.SetID(refNameIDRef_, ob);
             }
             else if (refNameNode.Attributes["href"] != null)
             {
                 refNameIDRef_ = refNameNode.Attributes["href"].Value;
             }
             else
             {
                 refName_ = new XsdTypeToken(refNameNode);
             }
         }
         else
         {
             refName_ = new XsdTypeToken(refNameNode);
         }
     }
     
 
 }
コード例 #5
0
 public SimpleRangeEventCal(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode range1DNode = xmlNode.SelectSingleNode("range1D");
     
     if (range1DNode != null)
     {
         if (range1DNode.Attributes["href"] != null || range1DNode.Attributes["id"] != null) 
         {
             if (range1DNode.Attributes["id"] != null) 
             {
                 range1DIDRef_ = range1DNode.Attributes["id"].Value;
                 Range1D ob = new Range1D(range1DNode);
                 IDManager.SetID(range1DIDRef_, ob);
             }
             else if (range1DNode.Attributes["href"] != null)
             {
                 range1DIDRef_ = range1DNode.Attributes["href"].Value;
             }
             else
             {
                 range1D_ = new Range1D(range1DNode);
             }
         }
         else
         {
             range1D_ = new Range1D(range1DNode);
         }
     }
     
 
     XmlNode referenceCalculationInfoNode = xmlNode.SelectSingleNode("referenceCalculationInfo");
     
     if (referenceCalculationInfoNode != null)
     {
         if (referenceCalculationInfoNode.Attributes["href"] != null || referenceCalculationInfoNode.Attributes["id"] != null) 
         {
             if (referenceCalculationInfoNode.Attributes["id"] != null) 
             {
                 referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["id"].Value;
                 ReferenceCalculationInfo ob = new ReferenceCalculationInfo(referenceCalculationInfoNode);
                 IDManager.SetID(referenceCalculationInfoIDRef_, ob);
             }
             else if (referenceCalculationInfoNode.Attributes["href"] != null)
             {
                 referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["href"].Value;
             }
             else
             {
                 referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode);
             }
         }
         else
         {
             referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode);
         }
     }
     
 
     XmlNode dateInformationNode = xmlNode.SelectSingleNode("dateInformation");
     
     if (dateInformationNode != null)
     {
         if (dateInformationNode.Attributes["href"] != null || dateInformationNode.Attributes["id"] != null) 
         {
             if (dateInformationNode.Attributes["id"] != null) 
             {
                 dateInformationIDRef_ = dateInformationNode.Attributes["id"].Value;
                 DateInformation ob = new DateInformation(dateInformationNode);
                 IDManager.SetID(dateInformationIDRef_, ob);
             }
             else if (dateInformationNode.Attributes["href"] != null)
             {
                 dateInformationIDRef_ = dateInformationNode.Attributes["href"].Value;
             }
             else
             {
                 dateInformation_ = new DateInformation(dateInformationNode);
             }
         }
         else
         {
             dateInformation_ = new DateInformation(dateInformationNode);
         }
     }
     
 
     XmlNode jointSimpleCalculationNode = xmlNode.SelectSingleNode("jointSimpleCalculation");
     
     if (jointSimpleCalculationNode != null)
     {
         if (jointSimpleCalculationNode.Attributes["href"] != null || jointSimpleCalculationNode.Attributes["id"] != null) 
         {
             if (jointSimpleCalculationNode.Attributes["id"] != null) 
             {
                 jointSimpleCalculationIDRef_ = jointSimpleCalculationNode.Attributes["id"].Value;
                 JointSimpleCalculation ob = new JointSimpleCalculation(jointSimpleCalculationNode);
                 IDManager.SetID(jointSimpleCalculationIDRef_, ob);
             }
             else if (jointSimpleCalculationNode.Attributes["href"] != null)
             {
                 jointSimpleCalculationIDRef_ = jointSimpleCalculationNode.Attributes["href"].Value;
             }
             else
             {
                 jointSimpleCalculation_ = new JointSimpleCalculation(jointSimpleCalculationNode);
             }
         }
         else
         {
             jointSimpleCalculation_ = new JointSimpleCalculation(jointSimpleCalculationNode);
         }
     }
     
 
 }
コード例 #6
0
        public RangeCondition1D(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode range1DNode = xmlNode.SelectSingleNode("range1D");

            if (range1DNode != null)
            {
                if (range1DNode.Attributes["href"] != null || range1DNode.Attributes["id"] != null)
                {
                    if (range1DNode.Attributes["id"] != null)
                    {
                        range1DIDRef_ = range1DNode.Attributes["id"].Value;
                        Range1D ob = new Range1D(range1DNode);
                        IDManager.SetID(range1DIDRef_, ob);
                    }
                    else if (range1DNode.Attributes["href"] != null)
                    {
                        range1DIDRef_ = range1DNode.Attributes["href"].Value;
                    }
                    else
                    {
                        range1D_ = new Range1D(range1DNode);
                    }
                }
                else
                {
                    range1D_ = new Range1D(range1DNode);
                }
            }


            XmlNode constValueNode = xmlNode.SelectSingleNode("constValue");

            if (constValueNode != null)
            {
                if (constValueNode.Attributes["href"] != null || constValueNode.Attributes["id"] != null)
                {
                    if (constValueNode.Attributes["id"] != null)
                    {
                        constValueIDRef_ = constValueNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(constValueNode);
                        IDManager.SetID(constValueIDRef_, ob);
                    }
                    else if (constValueNode.Attributes["href"] != null)
                    {
                        constValueIDRef_ = constValueNode.Attributes["href"].Value;
                    }
                    else
                    {
                        constValue_ = new XsdTypeToken(constValueNode);
                    }
                }
                else
                {
                    constValue_ = new XsdTypeToken(constValueNode);
                }
            }


            XmlNode refNameNode = xmlNode.SelectSingleNode("refName");

            if (refNameNode != null)
            {
                if (refNameNode.Attributes["href"] != null || refNameNode.Attributes["id"] != null)
                {
                    if (refNameNode.Attributes["id"] != null)
                    {
                        refNameIDRef_ = refNameNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(refNameNode);
                        IDManager.SetID(refNameIDRef_, ob);
                    }
                    else if (refNameNode.Attributes["href"] != null)
                    {
                        refNameIDRef_ = refNameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        refName_ = new XsdTypeToken(refNameNode);
                    }
                }
                else
                {
                    refName_ = new XsdTypeToken(refNameNode);
                }
            }
        }