コード例 #1
0
 public VariableValue(XmlNode xmlNode)
 {
     XmlNode indexRefNode = xmlNode.SelectSingleNode("indexRef");
     
     if (indexRefNode != null)
     {
         if (indexRefNode.Attributes["href"] != null || indexRefNode.Attributes["id"] != null) 
         {
             if (indexRefNode.Attributes["id"] != null) 
             {
                 indexRefIDRef_ = indexRefNode.Attributes["id"].Value;
                 IndexRef ob = new IndexRef(indexRefNode);
                 IDManager.SetID(indexRefIDRef_, ob);
             }
             else if (indexRefNode.Attributes["href"] != null)
             {
                 indexRefIDRef_ = indexRefNode.Attributes["href"].Value;
             }
             else
             {
                 indexRef_ = new IndexRef(indexRefNode);
             }
         }
         else
         {
             indexRef_ = new IndexRef(indexRefNode);
         }
     }
     
 
     XmlNode indexTimeRefNode = xmlNode.SelectSingleNode("indexTimeRef");
     
     if (indexTimeRefNode != null)
     {
         if (indexTimeRefNode.Attributes["href"] != null || indexTimeRefNode.Attributes["id"] != null) 
         {
             if (indexTimeRefNode.Attributes["id"] != null) 
             {
                 indexTimeRefIDRef_ = indexTimeRefNode.Attributes["id"].Value;
                 IndexTimeRef ob = new IndexTimeRef(indexTimeRefNode);
                 IDManager.SetID(indexTimeRefIDRef_, ob);
             }
             else if (indexTimeRefNode.Attributes["href"] != null)
             {
                 indexTimeRefIDRef_ = indexTimeRefNode.Attributes["href"].Value;
             }
             else
             {
                 indexTimeRef_ = new IndexTimeRef(indexTimeRefNode);
             }
         }
         else
         {
             indexTimeRef_ = new IndexTimeRef(indexTimeRefNode);
         }
     }
     
 
     XmlNode symbolNameNode = xmlNode.SelectSingleNode("symbolName");
     
     if (symbolNameNode != null)
     {
         if (symbolNameNode.Attributes["href"] != null || symbolNameNode.Attributes["id"] != null) 
         {
             if (symbolNameNode.Attributes["id"] != null) 
             {
                 symbolNameIDRef_ = symbolNameNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(symbolNameNode);
                 IDManager.SetID(symbolNameIDRef_, ob);
             }
             else if (symbolNameNode.Attributes["href"] != null)
             {
                 symbolNameIDRef_ = symbolNameNode.Attributes["href"].Value;
             }
             else
             {
                 symbolName_ = new XsdTypeToken(symbolNameNode);
             }
         }
         else
         {
             symbolName_ = new XsdTypeToken(symbolNameNode);
         }
     }
     
 
     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;
                 XsdTypeDouble ob = new XsdTypeDouble(constValueNode);
                 IDManager.SetID(constValueIDRef_, ob);
             }
             else if (constValueNode.Attributes["href"] != null)
             {
                 constValueIDRef_ = constValueNode.Attributes["href"].Value;
             }
             else
             {
                 constValue_ = new XsdTypeDouble(constValueNode);
             }
         }
         else
         {
             constValue_ = new XsdTypeDouble(constValueNode);
         }
     }
     
 
 }
コード例 #2
0
        public VariableValue(XmlNode xmlNode)
        {
            XmlNodeList indexRefNodeList = xmlNode.SelectNodes("indexRef");

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

            foreach (XmlNode item in indexRefNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        indexRefIDRef = item.Attributes["id"].Name;
                        IndexRef ob = IndexRef();
                        IDManager.SetID(indexRefIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        indexRefIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        indexRef = new IndexRef(item);
                    }
                }
            }


            XmlNodeList indexTimeRefNodeList = xmlNode.SelectNodes("indexTimeRef");

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

            foreach (XmlNode item in indexTimeRefNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        indexTimeRefIDRef = item.Attributes["id"].Name;
                        IndexTimeRef ob = IndexTimeRef();
                        IDManager.SetID(indexTimeRefIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        indexTimeRefIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        indexTimeRef = new IndexTimeRef(item);
                    }
                }
            }


            XmlNodeList symbolNameNodeList = xmlNode.SelectNodes("symbolName");

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

            foreach (XmlNode item in symbolNameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        symbolNameIDRef = item.Attributes["id"].Name;
                        XsdTypeToken ob = XsdTypeToken();
                        IDManager.SetID(symbolNameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        symbolNameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        symbolName = new XsdTypeToken(item);
                    }
                }
            }


            XmlNodeList constValueNodeList = xmlNode.SelectNodes("constValue");

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

            foreach (XmlNode item in constValueNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        constValueIDRef = item.Attributes["id"].Name;
                        XsdTypeDouble ob = XsdTypeDouble();
                        IDManager.SetID(constValueIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        constValueIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        constValue = new XsdTypeDouble(item);
                    }
                }
            }
        }
コード例 #3
0
        public VariableValue(XmlNode xmlNode)
        {
            XmlNode indexRefNode = xmlNode.SelectSingleNode("indexRef");

            if (indexRefNode != null)
            {
                if (indexRefNode.Attributes["href"] != null || indexRefNode.Attributes["id"] != null)
                {
                    if (indexRefNode.Attributes["id"] != null)
                    {
                        indexRefIDRef_ = indexRefNode.Attributes["id"].Value;
                        IndexRef ob = new IndexRef(indexRefNode);
                        IDManager.SetID(indexRefIDRef_, ob);
                    }
                    else if (indexRefNode.Attributes["href"] != null)
                    {
                        indexRefIDRef_ = indexRefNode.Attributes["href"].Value;
                    }
                    else
                    {
                        indexRef_ = new IndexRef(indexRefNode);
                    }
                }
                else
                {
                    indexRef_ = new IndexRef(indexRefNode);
                }
            }


            XmlNode indexTimeRefNode = xmlNode.SelectSingleNode("indexTimeRef");

            if (indexTimeRefNode != null)
            {
                if (indexTimeRefNode.Attributes["href"] != null || indexTimeRefNode.Attributes["id"] != null)
                {
                    if (indexTimeRefNode.Attributes["id"] != null)
                    {
                        indexTimeRefIDRef_ = indexTimeRefNode.Attributes["id"].Value;
                        IndexTimeRef ob = new IndexTimeRef(indexTimeRefNode);
                        IDManager.SetID(indexTimeRefIDRef_, ob);
                    }
                    else if (indexTimeRefNode.Attributes["href"] != null)
                    {
                        indexTimeRefIDRef_ = indexTimeRefNode.Attributes["href"].Value;
                    }
                    else
                    {
                        indexTimeRef_ = new IndexTimeRef(indexTimeRefNode);
                    }
                }
                else
                {
                    indexTimeRef_ = new IndexTimeRef(indexTimeRefNode);
                }
            }


            XmlNode symbolNameNode = xmlNode.SelectSingleNode("symbolName");

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


            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;
                        XsdTypeDouble ob = new XsdTypeDouble(constValueNode);
                        IDManager.SetID(constValueIDRef_, ob);
                    }
                    else if (constValueNode.Attributes["href"] != null)
                    {
                        constValueIDRef_ = constValueNode.Attributes["href"].Value;
                    }
                    else
                    {
                        constValue_ = new XsdTypeDouble(constValueNode);
                    }
                }
                else
                {
                    constValue_ = new XsdTypeDouble(constValueNode);
                }
            }
        }
コード例 #4
0
 public VariableValue(XmlNode xmlNode)
 {
     XmlNodeList indexRefNodeList = xmlNode.SelectNodes("indexRef");
     if (indexRefNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in indexRefNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 indexRefIDRef = item.Attributes["id"].Name;
                 IndexRef ob = IndexRef();
                 IDManager.SetID(indexRefIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 indexRefIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 indexRef = new IndexRef(item);
             }
         }
     }
     
 
     XmlNodeList indexTimeRefNodeList = xmlNode.SelectNodes("indexTimeRef");
     if (indexTimeRefNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in indexTimeRefNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 indexTimeRefIDRef = item.Attributes["id"].Name;
                 IndexTimeRef ob = IndexTimeRef();
                 IDManager.SetID(indexTimeRefIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 indexTimeRefIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 indexTimeRef = new IndexTimeRef(item);
             }
         }
     }
     
 
     XmlNodeList symbolNameNodeList = xmlNode.SelectNodes("symbolName");
     if (symbolNameNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in symbolNameNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 symbolNameIDRef = item.Attributes["id"].Name;
                 XsdTypeToken ob = XsdTypeToken();
                 IDManager.SetID(symbolNameIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 symbolNameIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 symbolName = new XsdTypeToken(item);
             }
         }
     }
     
 
     XmlNodeList constValueNodeList = xmlNode.SelectNodes("constValue");
     if (constValueNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in constValueNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 constValueIDRef = item.Attributes["id"].Name;
                 XsdTypeDouble ob = XsdTypeDouble();
                 IDManager.SetID(constValueIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 constValueIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 constValue = new XsdTypeDouble(item);
             }
         }
     }
     
 
 }