public ComplexNDReturnCal(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode variableCalListNode = xmlNode.SelectSingleNode("variableCalList");
     
     if (variableCalListNode != null)
     {
         if (variableCalListNode.Attributes["href"] != null || variableCalListNode.Attributes["id"] != null) 
         {
             if (variableCalListNode.Attributes["id"] != null) 
             {
                 variableCalListIDRef_ = variableCalListNode.Attributes["id"].Value;
                 VariableCalList ob = new VariableCalList(variableCalListNode);
                 IDManager.SetID(variableCalListIDRef_, ob);
             }
             else if (variableCalListNode.Attributes["href"] != null)
             {
                 variableCalListIDRef_ = variableCalListNode.Attributes["href"].Value;
             }
             else
             {
                 variableCalList_ = new VariableCalList(variableCalListNode);
             }
         }
         else
         {
             variableCalList_ = new VariableCalList(variableCalListNode);
         }
     }
     
 
     XmlNode operatorNDNode = xmlNode.SelectSingleNode("operatorND");
     
     if (operatorNDNode != null)
     {
         if (operatorNDNode.Attributes["href"] != null || operatorNDNode.Attributes["id"] != null) 
         {
             if (operatorNDNode.Attributes["id"] != null) 
             {
                 operatorNDIDRef_ = operatorNDNode.Attributes["id"].Value;
                 OperatorND ob = new OperatorND(operatorNDNode);
                 IDManager.SetID(operatorNDIDRef_, ob);
             }
             else if (operatorNDNode.Attributes["href"] != null)
             {
                 operatorNDIDRef_ = operatorNDNode.Attributes["href"].Value;
             }
             else
             {
                 operatorND_ = new OperatorND(operatorNDNode);
             }
         }
         else
         {
             operatorND_ = new OperatorND(operatorNDNode);
         }
     }
     
 
 }
        public ComplexNDReturnCal(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode variableCalListNode = xmlNode.SelectSingleNode("variableCalList");

            if (variableCalListNode != null)
            {
                if (variableCalListNode.Attributes["href"] != null || variableCalListNode.Attributes["id"] != null)
                {
                    if (variableCalListNode.Attributes["id"] != null)
                    {
                        variableCalListIDRef_ = variableCalListNode.Attributes["id"].Value;
                        VariableCalList ob = new VariableCalList(variableCalListNode);
                        IDManager.SetID(variableCalListIDRef_, ob);
                    }
                    else if (variableCalListNode.Attributes["href"] != null)
                    {
                        variableCalListIDRef_ = variableCalListNode.Attributes["href"].Value;
                    }
                    else
                    {
                        variableCalList_ = new VariableCalList(variableCalListNode);
                    }
                }
                else
                {
                    variableCalList_ = new VariableCalList(variableCalListNode);
                }
            }


            XmlNode operatorNDNode = xmlNode.SelectSingleNode("operatorND");

            if (operatorNDNode != null)
            {
                if (operatorNDNode.Attributes["href"] != null || operatorNDNode.Attributes["id"] != null)
                {
                    if (operatorNDNode.Attributes["id"] != null)
                    {
                        operatorNDIDRef_ = operatorNDNode.Attributes["id"].Value;
                        OperatorND ob = new OperatorND(operatorNDNode);
                        IDManager.SetID(operatorNDIDRef_, ob);
                    }
                    else if (operatorNDNode.Attributes["href"] != null)
                    {
                        operatorNDIDRef_ = operatorNDNode.Attributes["href"].Value;
                    }
                    else
                    {
                        operatorND_ = new OperatorND(operatorNDNode);
                    }
                }
                else
                {
                    operatorND_ = new OperatorND(operatorNDNode);
                }
            }
        }
 public ReferenceCalculationInfo(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode fixingInformationNode = xmlNode.SelectSingleNode("fixingInformation");
     
     if (fixingInformationNode != null)
     {
         if (fixingInformationNode.Attributes["href"] != null || fixingInformationNode.Attributes["id"] != null) 
         {
             if (fixingInformationNode.Attributes["id"] != null) 
             {
                 fixingInformationIDRef_ = fixingInformationNode.Attributes["id"].Value;
                 FixingInformation ob = new FixingInformation(fixingInformationNode);
                 IDManager.SetID(fixingInformationIDRef_, ob);
             }
             else if (fixingInformationNode.Attributes["href"] != null)
             {
                 fixingInformationIDRef_ = fixingInformationNode.Attributes["href"].Value;
             }
             else
             {
                 fixingInformation_ = new FixingInformation(fixingInformationNode);
             }
         }
         else
         {
             fixingInformation_ = new FixingInformation(fixingInformationNode);
         }
     }
     
 
     XmlNodeList referenceCalculationNodeList = xmlNode.SelectNodes("referenceCalculation");
     
     if (referenceCalculationNodeList != null)
     {
         this.referenceCalculation_ = new List<ReferenceCalculation>();
         foreach (XmlNode item in referenceCalculationNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     referenceCalculationIDRef_ = item.Attributes["id"].Value;
                     referenceCalculation_.Add(new ReferenceCalculation(item));
                     IDManager.SetID(referenceCalculationIDRef_, referenceCalculation_[referenceCalculation_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     referenceCalculationIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 referenceCalculation_.Add(new ReferenceCalculation(item));
                 }
             }
             else
             {
                 referenceCalculation_.Add(new ReferenceCalculation(item));
             }
         }
     }
     
 
     XmlNode operatorNDNode = xmlNode.SelectSingleNode("operatorND");
     
     if (operatorNDNode != null)
     {
         if (operatorNDNode.Attributes["href"] != null || operatorNDNode.Attributes["id"] != null) 
         {
             if (operatorNDNode.Attributes["id"] != null) 
             {
                 operatorNDIDRef_ = operatorNDNode.Attributes["id"].Value;
                 OperatorND ob = new OperatorND(operatorNDNode);
                 IDManager.SetID(operatorNDIDRef_, ob);
             }
             else if (operatorNDNode.Attributes["href"] != null)
             {
                 operatorNDIDRef_ = operatorNDNode.Attributes["href"].Value;
             }
             else
             {
                 operatorND_ = new OperatorND(operatorNDNode);
             }
         }
         else
         {
             operatorND_ = new OperatorND(operatorNDNode);
         }
     }
     
 
     XmlNode postCalculationNode = xmlNode.SelectSingleNode("postCalculation");
     
     if (postCalculationNode != null)
     {
         if (postCalculationNode.Attributes["href"] != null || postCalculationNode.Attributes["id"] != null) 
         {
             if (postCalculationNode.Attributes["id"] != null) 
             {
                 postCalculationIDRef_ = postCalculationNode.Attributes["id"].Value;
                 PostCalculation ob = new PostCalculation(postCalculationNode);
                 IDManager.SetID(postCalculationIDRef_, ob);
             }
             else if (postCalculationNode.Attributes["href"] != null)
             {
                 postCalculationIDRef_ = postCalculationNode.Attributes["href"].Value;
             }
             else
             {
                 postCalculation_ = new PostCalculation(postCalculationNode);
             }
         }
         else
         {
             postCalculation_ = new PostCalculation(postCalculationNode);
         }
     }
     
 
     XmlNode refVariable_referenceValueNode = xmlNode.SelectSingleNode("refVariable_referenceValue");
     
     if (refVariable_referenceValueNode != null)
     {
         if (refVariable_referenceValueNode.Attributes["href"] != null || refVariable_referenceValueNode.Attributes["id"] != null) 
         {
             if (refVariable_referenceValueNode.Attributes["id"] != null) 
             {
                 refVariable_referenceValueIDRef_ = refVariable_referenceValueNode.Attributes["id"].Value;
                 RefVariable_referenceValue ob = new RefVariable_referenceValue(refVariable_referenceValueNode);
                 IDManager.SetID(refVariable_referenceValueIDRef_, ob);
             }
             else if (refVariable_referenceValueNode.Attributes["href"] != null)
             {
                 refVariable_referenceValueIDRef_ = refVariable_referenceValueNode.Attributes["href"].Value;
             }
             else
             {
                 refVariable_referenceValue_ = new RefVariable_referenceValue(refVariable_referenceValueNode);
             }
         }
         else
         {
             refVariable_referenceValue_ = new RefVariable_referenceValue(refVariable_referenceValueNode);
         }
     }
     
 
 }
Beispiel #4
0
        public ReturnCalculationInfo(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList returnCalculationNodeList = xmlNode.SelectNodes("returnCalculation");

            if (returnCalculationNodeList != null)
            {
                this.returnCalculation_ = new List <ReturnCalculation>();
                foreach (XmlNode item in returnCalculationNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            returnCalculationIDRef_ = item.Attributes["id"].Value;
                            returnCalculation_.Add(new ReturnCalculation(item));
                            IDManager.SetID(returnCalculationIDRef_, returnCalculation_[returnCalculation_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            returnCalculationIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            returnCalculation_.Add(new ReturnCalculation(item));
                        }
                    }
                    else
                    {
                        returnCalculation_.Add(new ReturnCalculation(item));
                    }
                }
            }


            XmlNode operatorNDNode = xmlNode.SelectSingleNode("operatorND");

            if (operatorNDNode != null)
            {
                if (operatorNDNode.Attributes["href"] != null || operatorNDNode.Attributes["id"] != null)
                {
                    if (operatorNDNode.Attributes["id"] != null)
                    {
                        operatorNDIDRef_ = operatorNDNode.Attributes["id"].Value;
                        OperatorND ob = new OperatorND(operatorNDNode);
                        IDManager.SetID(operatorNDIDRef_, ob);
                    }
                    else if (operatorNDNode.Attributes["href"] != null)
                    {
                        operatorNDIDRef_ = operatorNDNode.Attributes["href"].Value;
                    }
                    else
                    {
                        operatorND_ = new OperatorND(operatorNDNode);
                    }
                }
                else
                {
                    operatorND_ = new OperatorND(operatorNDNode);
                }
            }
        }
        public ReferenceCalculationInfo(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode fixingInformationNode = xmlNode.SelectSingleNode("fixingInformation");

            if (fixingInformationNode != null)
            {
                if (fixingInformationNode.Attributes["href"] != null || fixingInformationNode.Attributes["id"] != null)
                {
                    if (fixingInformationNode.Attributes["id"] != null)
                    {
                        fixingInformationIDRef_ = fixingInformationNode.Attributes["id"].Value;
                        FixingInformation ob = new FixingInformation(fixingInformationNode);
                        IDManager.SetID(fixingInformationIDRef_, ob);
                    }
                    else if (fixingInformationNode.Attributes["href"] != null)
                    {
                        fixingInformationIDRef_ = fixingInformationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fixingInformation_ = new FixingInformation(fixingInformationNode);
                    }
                }
                else
                {
                    fixingInformation_ = new FixingInformation(fixingInformationNode);
                }
            }


            XmlNodeList referenceCalculationNodeList = xmlNode.SelectNodes("referenceCalculation");

            if (referenceCalculationNodeList != null)
            {
                this.referenceCalculation_ = new List <ReferenceCalculation>();
                foreach (XmlNode item in referenceCalculationNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            referenceCalculationIDRef_ = item.Attributes["id"].Value;
                            referenceCalculation_.Add(new ReferenceCalculation(item));
                            IDManager.SetID(referenceCalculationIDRef_, referenceCalculation_[referenceCalculation_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            referenceCalculationIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            referenceCalculation_.Add(new ReferenceCalculation(item));
                        }
                    }
                    else
                    {
                        referenceCalculation_.Add(new ReferenceCalculation(item));
                    }
                }
            }


            XmlNode operatorNDNode = xmlNode.SelectSingleNode("operatorND");

            if (operatorNDNode != null)
            {
                if (operatorNDNode.Attributes["href"] != null || operatorNDNode.Attributes["id"] != null)
                {
                    if (operatorNDNode.Attributes["id"] != null)
                    {
                        operatorNDIDRef_ = operatorNDNode.Attributes["id"].Value;
                        OperatorND ob = new OperatorND(operatorNDNode);
                        IDManager.SetID(operatorNDIDRef_, ob);
                    }
                    else if (operatorNDNode.Attributes["href"] != null)
                    {
                        operatorNDIDRef_ = operatorNDNode.Attributes["href"].Value;
                    }
                    else
                    {
                        operatorND_ = new OperatorND(operatorNDNode);
                    }
                }
                else
                {
                    operatorND_ = new OperatorND(operatorNDNode);
                }
            }


            XmlNode postCalculationNode = xmlNode.SelectSingleNode("postCalculation");

            if (postCalculationNode != null)
            {
                if (postCalculationNode.Attributes["href"] != null || postCalculationNode.Attributes["id"] != null)
                {
                    if (postCalculationNode.Attributes["id"] != null)
                    {
                        postCalculationIDRef_ = postCalculationNode.Attributes["id"].Value;
                        PostCalculation ob = new PostCalculation(postCalculationNode);
                        IDManager.SetID(postCalculationIDRef_, ob);
                    }
                    else if (postCalculationNode.Attributes["href"] != null)
                    {
                        postCalculationIDRef_ = postCalculationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        postCalculation_ = new PostCalculation(postCalculationNode);
                    }
                }
                else
                {
                    postCalculation_ = new PostCalculation(postCalculationNode);
                }
            }


            XmlNode refVariable_referenceValueNode = xmlNode.SelectSingleNode("refVariable_referenceValue");

            if (refVariable_referenceValueNode != null)
            {
                if (refVariable_referenceValueNode.Attributes["href"] != null || refVariable_referenceValueNode.Attributes["id"] != null)
                {
                    if (refVariable_referenceValueNode.Attributes["id"] != null)
                    {
                        refVariable_referenceValueIDRef_ = refVariable_referenceValueNode.Attributes["id"].Value;
                        RefVariable_referenceValue ob = new RefVariable_referenceValue(refVariable_referenceValueNode);
                        IDManager.SetID(refVariable_referenceValueIDRef_, ob);
                    }
                    else if (refVariable_referenceValueNode.Attributes["href"] != null)
                    {
                        refVariable_referenceValueIDRef_ = refVariable_referenceValueNode.Attributes["href"].Value;
                    }
                    else
                    {
                        refVariable_referenceValue_ = new RefVariable_referenceValue(refVariable_referenceValueNode);
                    }
                }
                else
                {
                    refVariable_referenceValue_ = new RefVariable_referenceValue(refVariable_referenceValueNode);
                }
            }
        }
 public ReturnCalculationInfo(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList returnCalculationNodeList = xmlNode.SelectNodes("returnCalculation");
     
     if (returnCalculationNodeList != null)
     {
         this.returnCalculation_ = new List<ReturnCalculation>();
         foreach (XmlNode item in returnCalculationNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     returnCalculationIDRef_ = item.Attributes["id"].Value;
                     returnCalculation_.Add(new ReturnCalculation(item));
                     IDManager.SetID(returnCalculationIDRef_, returnCalculation_[returnCalculation_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     returnCalculationIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 returnCalculation_.Add(new ReturnCalculation(item));
                 }
             }
             else
             {
                 returnCalculation_.Add(new ReturnCalculation(item));
             }
         }
     }
     
 
     XmlNode operatorNDNode = xmlNode.SelectSingleNode("operatorND");
     
     if (operatorNDNode != null)
     {
         if (operatorNDNode.Attributes["href"] != null || operatorNDNode.Attributes["id"] != null) 
         {
             if (operatorNDNode.Attributes["id"] != null) 
             {
                 operatorNDIDRef_ = operatorNDNode.Attributes["id"].Value;
                 OperatorND ob = new OperatorND(operatorNDNode);
                 IDManager.SetID(operatorNDIDRef_, ob);
             }
             else if (operatorNDNode.Attributes["href"] != null)
             {
                 operatorNDIDRef_ = operatorNDNode.Attributes["href"].Value;
             }
             else
             {
                 operatorND_ = new OperatorND(operatorNDNode);
             }
         }
         else
         {
             operatorND_ = new OperatorND(operatorNDNode);
         }
     }
     
 
 }