コード例 #1
0
 public IndexCalculation(XmlNode xmlNode)
 {
     XmlNodeList timeTypeNodeList = xmlNode.SelectNodes("timeType");
     if (timeTypeNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in timeTypeNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 timeTypeIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(timeTypeIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 timeTypeIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 timeType = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList returnNodeList = xmlNode.SelectNodes("return");
     if (returnNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in returnNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 returnIDRef = item.Attributes["id"].Name;
                 ReturnTran ob = ReturnTran();
                 IDManager.SetID(returnIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 returnIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 return = new ReturnTran(item);
             }
         }
     }
     
 
     XmlNodeList minimumNodeList = xmlNode.SelectNodes("minimum");
     if (minimumNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in minimumNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 minimumIDRef = item.Attributes["id"].Name;
                 MinimumTran ob = MinimumTran();
                 IDManager.SetID(minimumIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 minimumIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 minimum = new MinimumTran(item);
             }
         }
     }
     
 
     XmlNodeList basketAverNodeList = xmlNode.SelectNodes("basketAver");
     if (basketAverNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in basketAverNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 basketAverIDRef = item.Attributes["id"].Name;
                 BasketAver ob = BasketAver();
                 IDManager.SetID(basketAverIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 basketAverIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 basketAver = new BasketAver(item);
             }
         }
     }
     
 
 }
コード例 #2
0
        public IndexCalculation(XmlNode xmlNode)
        {
            XmlNodeList timeTypeNodeList = xmlNode.SelectNodes("timeType");

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

            foreach (XmlNode item in timeTypeNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        timeTypeIDRef = item.Attributes["id"].Name;
                        XsdTypeBoolean ob = XsdTypeBoolean();
                        IDManager.SetID(timeTypeIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        timeTypeIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        timeType = new XsdTypeBoolean(item);
                    }
                }
            }


            XmlNodeList returnNodeList = xmlNode.SelectNodes("return");

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

            foreach (XmlNode item in returnNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        returnIDRef = item.Attributes["id"].Name;
                        ReturnTran ob = ReturnTran();
                        IDManager.SetID(returnIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        returnIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        return( = new ReturnTran(item));
                    }
                }
            }


            XmlNodeList minimumNodeList = xmlNode.SelectNodes("minimum");

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

            foreach (XmlNode item in minimumNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        minimumIDRef = item.Attributes["id"].Name;
                        MinimumTran ob = MinimumTran();
                        IDManager.SetID(minimumIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        minimumIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        minimum = new MinimumTran(item);
                    }
                }
            }


            XmlNodeList basketAverNodeList = xmlNode.SelectNodes("basketAver");

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

            foreach (XmlNode item in basketAverNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        basketAverIDRef = item.Attributes["id"].Name;
                        BasketAver ob = BasketAver();
                        IDManager.SetID(basketAverIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        basketAverIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        basketAver = new BasketAver(item);
                    }
                }
            }
        }
コード例 #3
0
        public IndexCalculation(XmlNode xmlNode)
        {
            XmlNode timeTypeNode = xmlNode.SelectSingleNode("timeType");

            if (timeTypeNode != null)
            {
                if (timeTypeNode.Attributes["href"] != null || timeTypeNode.Attributes["id"] != null)
                {
                    if (timeTypeNode.Attributes["id"] != null)
                    {
                        timeTypeIDRef_ = timeTypeNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(timeTypeNode);
                        IDManager.SetID(timeTypeIDRef_, ob);
                    }
                    else if (timeTypeNode.Attributes["href"] != null)
                    {
                        timeTypeIDRef_ = timeTypeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        timeType_ = new XsdTypeBoolean(timeTypeNode);
                    }
                }
                else
                {
                    timeType_ = new XsdTypeBoolean(timeTypeNode);
                }
            }


            XmlNode returnNode = xmlNode.SelectSingleNode("return");

            if (returnNode != null)
            {
                if (returnNode.Attributes["href"] != null || returnNode.Attributes["id"] != null)
                {
                    if (returnNode.Attributes["id"] != null)
                    {
                        returnIDRef_ = returnNode.Attributes["id"].Value;
                        ReturnTran ob = new ReturnTran(returnNode);
                        IDManager.SetID(returnIDRef_, ob);
                    }
                    else if (returnNode.Attributes["href"] != null)
                    {
                        returnIDRef_ = returnNode.Attributes["href"].Value;
                    }
                    else
                    {
                        return_ = new ReturnTran(returnNode);
                    }
                }
                else
                {
                    return_ = new ReturnTran(returnNode);
                }
            }


            XmlNode minimumNode = xmlNode.SelectSingleNode("minimum");

            if (minimumNode != null)
            {
                if (minimumNode.Attributes["href"] != null || minimumNode.Attributes["id"] != null)
                {
                    if (minimumNode.Attributes["id"] != null)
                    {
                        minimumIDRef_ = minimumNode.Attributes["id"].Value;
                        MinimumTran ob = new MinimumTran(minimumNode);
                        IDManager.SetID(minimumIDRef_, ob);
                    }
                    else if (minimumNode.Attributes["href"] != null)
                    {
                        minimumIDRef_ = minimumNode.Attributes["href"].Value;
                    }
                    else
                    {
                        minimum_ = new MinimumTran(minimumNode);
                    }
                }
                else
                {
                    minimum_ = new MinimumTran(minimumNode);
                }
            }


            XmlNode basketAverNode = xmlNode.SelectSingleNode("basketAver");

            if (basketAverNode != null)
            {
                if (basketAverNode.Attributes["href"] != null || basketAverNode.Attributes["id"] != null)
                {
                    if (basketAverNode.Attributes["id"] != null)
                    {
                        basketAverIDRef_ = basketAverNode.Attributes["id"].Value;
                        BasketAver ob = new BasketAver(basketAverNode);
                        IDManager.SetID(basketAverIDRef_, ob);
                    }
                    else if (basketAverNode.Attributes["href"] != null)
                    {
                        basketAverIDRef_ = basketAverNode.Attributes["href"].Value;
                    }
                    else
                    {
                        basketAver_ = new BasketAver(basketAverNode);
                    }
                }
                else
                {
                    basketAver_ = new BasketAver(basketAverNode);
                }
            }
        }
コード例 #4
0
 public IndexCalculation(XmlNode xmlNode)
 {
     XmlNode timeTypeNode = xmlNode.SelectSingleNode("timeType");
     
     if (timeTypeNode != null)
     {
         if (timeTypeNode.Attributes["href"] != null || timeTypeNode.Attributes["id"] != null) 
         {
             if (timeTypeNode.Attributes["id"] != null) 
             {
                 timeTypeIDRef_ = timeTypeNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(timeTypeNode);
                 IDManager.SetID(timeTypeIDRef_, ob);
             }
             else if (timeTypeNode.Attributes["href"] != null)
             {
                 timeTypeIDRef_ = timeTypeNode.Attributes["href"].Value;
             }
             else
             {
                 timeType_ = new XsdTypeBoolean(timeTypeNode);
             }
         }
         else
         {
             timeType_ = new XsdTypeBoolean(timeTypeNode);
         }
     }
     
 
     XmlNode returnNode = xmlNode.SelectSingleNode("return");
     
     if (returnNode != null)
     {
         if (returnNode.Attributes["href"] != null || returnNode.Attributes["id"] != null) 
         {
             if (returnNode.Attributes["id"] != null) 
             {
                 returnIDRef_ = returnNode.Attributes["id"].Value;
                 ReturnTran ob = new ReturnTran(returnNode);
                 IDManager.SetID(returnIDRef_, ob);
             }
             else if (returnNode.Attributes["href"] != null)
             {
                 returnIDRef_ = returnNode.Attributes["href"].Value;
             }
             else
             {
                 return_ = new ReturnTran(returnNode);
             }
         }
         else
         {
             return_ = new ReturnTran(returnNode);
         }
     }
     
 
     XmlNode minimumNode = xmlNode.SelectSingleNode("minimum");
     
     if (minimumNode != null)
     {
         if (minimumNode.Attributes["href"] != null || minimumNode.Attributes["id"] != null) 
         {
             if (minimumNode.Attributes["id"] != null) 
             {
                 minimumIDRef_ = minimumNode.Attributes["id"].Value;
                 MinimumTran ob = new MinimumTran(minimumNode);
                 IDManager.SetID(minimumIDRef_, ob);
             }
             else if (minimumNode.Attributes["href"] != null)
             {
                 minimumIDRef_ = minimumNode.Attributes["href"].Value;
             }
             else
             {
                 minimum_ = new MinimumTran(minimumNode);
             }
         }
         else
         {
             minimum_ = new MinimumTran(minimumNode);
         }
     }
     
 
     XmlNode basketAverNode = xmlNode.SelectSingleNode("basketAver");
     
     if (basketAverNode != null)
     {
         if (basketAverNode.Attributes["href"] != null || basketAverNode.Attributes["id"] != null) 
         {
             if (basketAverNode.Attributes["id"] != null) 
             {
                 basketAverIDRef_ = basketAverNode.Attributes["id"].Value;
                 BasketAver ob = new BasketAver(basketAverNode);
                 IDManager.SetID(basketAverIDRef_, ob);
             }
             else if (basketAverNode.Attributes["href"] != null)
             {
                 basketAverIDRef_ = basketAverNode.Attributes["href"].Value;
             }
             else
             {
                 basketAver_ = new BasketAver(basketAverNode);
             }
         }
         else
         {
             basketAver_ = new BasketAver(basketAverNode);
         }
     }
     
 
 }