コード例 #1
0
        public EventCheckBase(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode eventIndexTransformationNode = xmlNode.SelectSingleNode("eventIndexTransformation");

            if (eventIndexTransformationNode != null)
            {
                if (eventIndexTransformationNode.Attributes["href"] != null || eventIndexTransformationNode.Attributes["id"] != null)
                {
                    if (eventIndexTransformationNode.Attributes["id"] != null)
                    {
                        eventIndexTransformationIDRef_ = eventIndexTransformationNode.Attributes["id"].Value;
                        EventIndexTransformation ob = new EventIndexTransformation(eventIndexTransformationNode);
                        IDManager.SetID(eventIndexTransformationIDRef_, ob);
                    }
                    else if (eventIndexTransformationNode.Attributes["href"] != null)
                    {
                        eventIndexTransformationIDRef_ = eventIndexTransformationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        eventIndexTransformation_ = new EventIndexTransformation(eventIndexTransformationNode);
                    }
                }
                else
                {
                    eventIndexTransformation_ = new EventIndexTransformation(eventIndexTransformationNode);
                }
            }


            XmlNode functionEventsNode = xmlNode.SelectSingleNode("functionEvents");

            if (functionEventsNode != null)
            {
                if (functionEventsNode.Attributes["href"] != null || functionEventsNode.Attributes["id"] != null)
                {
                    if (functionEventsNode.Attributes["id"] != null)
                    {
                        functionEventsIDRef_ = functionEventsNode.Attributes["id"].Value;
                        FunctionEvents ob = new FunctionEvents(functionEventsNode);
                        IDManager.SetID(functionEventsIDRef_, ob);
                    }
                    else if (functionEventsNode.Attributes["href"] != null)
                    {
                        functionEventsIDRef_ = functionEventsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        functionEvents_ = new FunctionEvents(functionEventsNode);
                    }
                }
                else
                {
                    functionEvents_ = new FunctionEvents(functionEventsNode);
                }
            }


            XmlNode payoffBaseNode = xmlNode.SelectSingleNode("payoffBase");

            if (payoffBaseNode != null)
            {
                if (payoffBaseNode.Attributes["href"] != null || payoffBaseNode.Attributes["id"] != null)
                {
                    if (payoffBaseNode.Attributes["id"] != null)
                    {
                        payoffBaseIDRef_ = payoffBaseNode.Attributes["id"].Value;
                        PayoffBase ob = new PayoffBase(payoffBaseNode);
                        IDManager.SetID(payoffBaseIDRef_, ob);
                    }
                    else if (payoffBaseNode.Attributes["href"] != null)
                    {
                        payoffBaseIDRef_ = payoffBaseNode.Attributes["href"].Value;
                    }
                    else
                    {
                        payoffBase_ = new PayoffBase(payoffBaseNode);
                    }
                }
                else
                {
                    payoffBase_ = new PayoffBase(payoffBaseNode);
                }
            }


            XmlNode subEventNode = xmlNode.SelectSingleNode("subEvent");

            if (subEventNode != null)
            {
                if (subEventNode.Attributes["href"] != null || subEventNode.Attributes["id"] != null)
                {
                    if (subEventNode.Attributes["id"] != null)
                    {
                        subEventIDRef_ = subEventNode.Attributes["id"].Value;
                        SubEvent ob = new SubEvent(subEventNode);
                        IDManager.SetID(subEventIDRef_, ob);
                    }
                    else if (subEventNode.Attributes["href"] != null)
                    {
                        subEventIDRef_ = subEventNode.Attributes["href"].Value;
                    }
                    else
                    {
                        subEvent_ = new SubEvent(subEventNode);
                    }
                }
                else
                {
                    subEvent_ = new SubEvent(subEventNode);
                }
            }


            XmlNode jointSubEventNode = xmlNode.SelectSingleNode("jointSubEvent");

            if (jointSubEventNode != null)
            {
                if (jointSubEventNode.Attributes["href"] != null || jointSubEventNode.Attributes["id"] != null)
                {
                    if (jointSubEventNode.Attributes["id"] != null)
                    {
                        jointSubEventIDRef_ = jointSubEventNode.Attributes["id"].Value;
                        JointSubEvent ob = new JointSubEvent(jointSubEventNode);
                        IDManager.SetID(jointSubEventIDRef_, ob);
                    }
                    else if (jointSubEventNode.Attributes["href"] != null)
                    {
                        jointSubEventIDRef_ = jointSubEventNode.Attributes["href"].Value;
                    }
                    else
                    {
                        jointSubEvent_ = new JointSubEvent(jointSubEventNode);
                    }
                }
                else
                {
                    jointSubEvent_ = new JointSubEvent(jointSubEventNode);
                }
            }


            XmlNode jointFSubEventNode = xmlNode.SelectSingleNode("jointFSubEvent");

            if (jointFSubEventNode != null)
            {
                if (jointFSubEventNode.Attributes["href"] != null || jointFSubEventNode.Attributes["id"] != null)
                {
                    if (jointFSubEventNode.Attributes["id"] != null)
                    {
                        jointFSubEventIDRef_ = jointFSubEventNode.Attributes["id"].Value;
                        JointFSubEvent ob = new JointFSubEvent(jointFSubEventNode);
                        IDManager.SetID(jointFSubEventIDRef_, ob);
                    }
                    else if (jointFSubEventNode.Attributes["href"] != null)
                    {
                        jointFSubEventIDRef_ = jointFSubEventNode.Attributes["href"].Value;
                    }
                    else
                    {
                        jointFSubEvent_ = new JointFSubEvent(jointFSubEventNode);
                    }
                }
                else
                {
                    jointFSubEvent_ = new JointFSubEvent(jointFSubEventNode);
                }
            }
        }
コード例 #2
0
 public EventCheckBase(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList eventIndexTransformationNodeList = xmlNode.SelectNodes("eventIndexTransformation");
     if (eventIndexTransformationNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in eventIndexTransformationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 eventIndexTransformationIDRef = item.Attributes["id"].Name;
                 EventIndexTransformation ob = EventIndexTransformation();
                 IDManager.SetID(eventIndexTransformationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 eventIndexTransformationIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 eventIndexTransformation = new EventIndexTransformation(item);
             }
         }
     }
     
 
     XmlNodeList functionEventsNodeList = xmlNode.SelectNodes("functionEvents");
     if (functionEventsNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in functionEventsNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 functionEventsIDRef = item.Attributes["id"].Name;
                 FunctionEvents ob = FunctionEvents();
                 IDManager.SetID(functionEventsIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 functionEventsIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 functionEvents = new FunctionEvents(item);
             }
         }
     }
     
 
     XmlNodeList payoffBaseNodeList = xmlNode.SelectNodes("payoffBase");
     if (payoffBaseNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in payoffBaseNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 payoffBaseIDRef = item.Attributes["id"].Name;
                 PayoffBase ob = PayoffBase();
                 IDManager.SetID(payoffBaseIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 payoffBaseIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 payoffBase = new PayoffBase(item);
             }
         }
     }
     
 
     XmlNodeList subEventNodeList = xmlNode.SelectNodes("subEvent");
     if (subEventNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in subEventNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 subEventIDRef = item.Attributes["id"].Name;
                 SubEvent ob = SubEvent();
                 IDManager.SetID(subEventIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 subEventIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 subEvent = new SubEvent(item);
             }
         }
     }
     
 
     XmlNodeList jointSubEventNodeList = xmlNode.SelectNodes("jointSubEvent");
     if (jointSubEventNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in jointSubEventNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 jointSubEventIDRef = item.Attributes["id"].Name;
                 JointSubEvent ob = JointSubEvent();
                 IDManager.SetID(jointSubEventIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 jointSubEventIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 jointSubEvent = new JointSubEvent(item);
             }
         }
     }
     
 
     XmlNodeList jointFSubEventNodeList = xmlNode.SelectNodes("jointFSubEvent");
     if (jointFSubEventNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in jointFSubEventNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 jointFSubEventIDRef = item.Attributes["id"].Name;
                 JointFSubEvent ob = JointFSubEvent();
                 IDManager.SetID(jointFSubEventIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 jointFSubEventIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 jointFSubEvent = new JointFSubEvent(item);
             }
         }
     }
     
 
 }
コード例 #3
0
 public EventCheckBase(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode eventIndexTransformationNode = xmlNode.SelectSingleNode("eventIndexTransformation");
     
     if (eventIndexTransformationNode != null)
     {
         if (eventIndexTransformationNode.Attributes["href"] != null || eventIndexTransformationNode.Attributes["id"] != null) 
         {
             if (eventIndexTransformationNode.Attributes["id"] != null) 
             {
                 eventIndexTransformationIDRef_ = eventIndexTransformationNode.Attributes["id"].Value;
                 EventIndexTransformation ob = new EventIndexTransformation(eventIndexTransformationNode);
                 IDManager.SetID(eventIndexTransformationIDRef_, ob);
             }
             else if (eventIndexTransformationNode.Attributes["href"] != null)
             {
                 eventIndexTransformationIDRef_ = eventIndexTransformationNode.Attributes["href"].Value;
             }
             else
             {
                 eventIndexTransformation_ = new EventIndexTransformation(eventIndexTransformationNode);
             }
         }
         else
         {
             eventIndexTransformation_ = new EventIndexTransformation(eventIndexTransformationNode);
         }
     }
     
 
     XmlNode functionEventsNode = xmlNode.SelectSingleNode("functionEvents");
     
     if (functionEventsNode != null)
     {
         if (functionEventsNode.Attributes["href"] != null || functionEventsNode.Attributes["id"] != null) 
         {
             if (functionEventsNode.Attributes["id"] != null) 
             {
                 functionEventsIDRef_ = functionEventsNode.Attributes["id"].Value;
                 FunctionEvents ob = new FunctionEvents(functionEventsNode);
                 IDManager.SetID(functionEventsIDRef_, ob);
             }
             else if (functionEventsNode.Attributes["href"] != null)
             {
                 functionEventsIDRef_ = functionEventsNode.Attributes["href"].Value;
             }
             else
             {
                 functionEvents_ = new FunctionEvents(functionEventsNode);
             }
         }
         else
         {
             functionEvents_ = new FunctionEvents(functionEventsNode);
         }
     }
     
 
     XmlNode payoffBaseNode = xmlNode.SelectSingleNode("payoffBase");
     
     if (payoffBaseNode != null)
     {
         if (payoffBaseNode.Attributes["href"] != null || payoffBaseNode.Attributes["id"] != null) 
         {
             if (payoffBaseNode.Attributes["id"] != null) 
             {
                 payoffBaseIDRef_ = payoffBaseNode.Attributes["id"].Value;
                 PayoffBase ob = new PayoffBase(payoffBaseNode);
                 IDManager.SetID(payoffBaseIDRef_, ob);
             }
             else if (payoffBaseNode.Attributes["href"] != null)
             {
                 payoffBaseIDRef_ = payoffBaseNode.Attributes["href"].Value;
             }
             else
             {
                 payoffBase_ = new PayoffBase(payoffBaseNode);
             }
         }
         else
         {
             payoffBase_ = new PayoffBase(payoffBaseNode);
         }
     }
     
 
     XmlNode subEventNode = xmlNode.SelectSingleNode("subEvent");
     
     if (subEventNode != null)
     {
         if (subEventNode.Attributes["href"] != null || subEventNode.Attributes["id"] != null) 
         {
             if (subEventNode.Attributes["id"] != null) 
             {
                 subEventIDRef_ = subEventNode.Attributes["id"].Value;
                 SubEvent ob = new SubEvent(subEventNode);
                 IDManager.SetID(subEventIDRef_, ob);
             }
             else if (subEventNode.Attributes["href"] != null)
             {
                 subEventIDRef_ = subEventNode.Attributes["href"].Value;
             }
             else
             {
                 subEvent_ = new SubEvent(subEventNode);
             }
         }
         else
         {
             subEvent_ = new SubEvent(subEventNode);
         }
     }
     
 
     XmlNode jointSubEventNode = xmlNode.SelectSingleNode("jointSubEvent");
     
     if (jointSubEventNode != null)
     {
         if (jointSubEventNode.Attributes["href"] != null || jointSubEventNode.Attributes["id"] != null) 
         {
             if (jointSubEventNode.Attributes["id"] != null) 
             {
                 jointSubEventIDRef_ = jointSubEventNode.Attributes["id"].Value;
                 JointSubEvent ob = new JointSubEvent(jointSubEventNode);
                 IDManager.SetID(jointSubEventIDRef_, ob);
             }
             else if (jointSubEventNode.Attributes["href"] != null)
             {
                 jointSubEventIDRef_ = jointSubEventNode.Attributes["href"].Value;
             }
             else
             {
                 jointSubEvent_ = new JointSubEvent(jointSubEventNode);
             }
         }
         else
         {
             jointSubEvent_ = new JointSubEvent(jointSubEventNode);
         }
     }
     
 
     XmlNode jointFSubEventNode = xmlNode.SelectSingleNode("jointFSubEvent");
     
     if (jointFSubEventNode != null)
     {
         if (jointFSubEventNode.Attributes["href"] != null || jointFSubEventNode.Attributes["id"] != null) 
         {
             if (jointFSubEventNode.Attributes["id"] != null) 
             {
                 jointFSubEventIDRef_ = jointFSubEventNode.Attributes["id"].Value;
                 JointFSubEvent ob = new JointFSubEvent(jointFSubEventNode);
                 IDManager.SetID(jointFSubEventIDRef_, ob);
             }
             else if (jointFSubEventNode.Attributes["href"] != null)
             {
                 jointFSubEventIDRef_ = jointFSubEventNode.Attributes["href"].Value;
             }
             else
             {
                 jointFSubEvent_ = new JointFSubEvent(jointFSubEventNode);
             }
         }
         else
         {
             jointFSubEvent_ = new JointFSubEvent(jointFSubEventNode);
         }
     }
     
 
 }
コード例 #4
0
        public EventCheckBase(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList eventIndexTransformationNodeList = xmlNode.SelectNodes("eventIndexTransformation");

            if (eventIndexTransformationNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in eventIndexTransformationNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        eventIndexTransformationIDRef = item.Attributes["id"].Name;
                        EventIndexTransformation ob = EventIndexTransformation();
                        IDManager.SetID(eventIndexTransformationIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        eventIndexTransformationIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        eventIndexTransformation = new EventIndexTransformation(item);
                    }
                }
            }


            XmlNodeList functionEventsNodeList = xmlNode.SelectNodes("functionEvents");

            if (functionEventsNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in functionEventsNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        functionEventsIDRef = item.Attributes["id"].Name;
                        FunctionEvents ob = FunctionEvents();
                        IDManager.SetID(functionEventsIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        functionEventsIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        functionEvents = new FunctionEvents(item);
                    }
                }
            }


            XmlNodeList payoffBaseNodeList = xmlNode.SelectNodes("payoffBase");

            if (payoffBaseNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in payoffBaseNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        payoffBaseIDRef = item.Attributes["id"].Name;
                        PayoffBase ob = PayoffBase();
                        IDManager.SetID(payoffBaseIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        payoffBaseIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        payoffBase = new PayoffBase(item);
                    }
                }
            }


            XmlNodeList subEventNodeList = xmlNode.SelectNodes("subEvent");

            if (subEventNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in subEventNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        subEventIDRef = item.Attributes["id"].Name;
                        SubEvent ob = SubEvent();
                        IDManager.SetID(subEventIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        subEventIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        subEvent = new SubEvent(item);
                    }
                }
            }


            XmlNodeList jointSubEventNodeList = xmlNode.SelectNodes("jointSubEvent");

            if (jointSubEventNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in jointSubEventNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        jointSubEventIDRef = item.Attributes["id"].Name;
                        JointSubEvent ob = JointSubEvent();
                        IDManager.SetID(jointSubEventIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        jointSubEventIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        jointSubEvent = new JointSubEvent(item);
                    }
                }
            }


            XmlNodeList jointFSubEventNodeList = xmlNode.SelectNodes("jointFSubEvent");

            if (jointFSubEventNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in jointFSubEventNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        jointFSubEventIDRef = item.Attributes["id"].Name;
                        JointFSubEvent ob = JointFSubEvent();
                        IDManager.SetID(jointFSubEventIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        jointFSubEventIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        jointFSubEvent = new JointFSubEvent(item);
                    }
                }
            }
        }