コード例 #1
0
 public BaseInformation(XmlNode xmlNode)
 {
     XmlNodeList baseIndexesNodeList = xmlNode.SelectNodes("baseIndexes");
     if (baseIndexesNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in baseIndexesNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 baseIndexesIDRef = item.Attributes["id"].Name;
                 BaseIndexes ob = BaseIndexes();
                 IDManager.SetID(baseIndexesIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 baseIndexesIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 baseIndexes = new BaseIndexes(item);
             }
         }
     }
     
 
     XmlNodeList conventionSetNodeList = xmlNode.SelectNodes("conventionSet");
     if (conventionSetNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in conventionSetNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 conventionSetIDRef = item.Attributes["id"].Name;
                 ConventionSet ob = ConventionSet();
                 IDManager.SetID(conventionSetIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 conventionSetIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 conventionSet = new ConventionSet(item);
             }
         }
     }
     
 
 }
コード例 #2
0
 public BaseInformation(XmlNode xmlNode)
 {
     XmlNode baseIndexesNode = xmlNode.SelectSingleNode("baseIndexes");
     
     if (baseIndexesNode != null)
     {
         if (baseIndexesNode.Attributes["href"] != null || baseIndexesNode.Attributes["id"] != null) 
         {
             if (baseIndexesNode.Attributes["id"] != null) 
             {
                 baseIndexesIDRef_ = baseIndexesNode.Attributes["id"].Value;
                 BaseIndexes ob = new BaseIndexes(baseIndexesNode);
                 IDManager.SetID(baseIndexesIDRef_, ob);
             }
             else if (baseIndexesNode.Attributes["href"] != null)
             {
                 baseIndexesIDRef_ = baseIndexesNode.Attributes["href"].Value;
             }
             else
             {
                 baseIndexes_ = new BaseIndexes(baseIndexesNode);
             }
         }
         else
         {
             baseIndexes_ = new BaseIndexes(baseIndexesNode);
         }
     }
     
 
     XmlNode initialFixedValueNode = xmlNode.SelectSingleNode("initialFixedValue");
     
     if (initialFixedValueNode != null)
     {
         if (initialFixedValueNode.Attributes["href"] != null || initialFixedValueNode.Attributes["id"] != null) 
         {
             if (initialFixedValueNode.Attributes["id"] != null) 
             {
                 initialFixedValueIDRef_ = initialFixedValueNode.Attributes["id"].Value;
                 InitialFixedValue ob = new InitialFixedValue(initialFixedValueNode);
                 IDManager.SetID(initialFixedValueIDRef_, ob);
             }
             else if (initialFixedValueNode.Attributes["href"] != null)
             {
                 initialFixedValueIDRef_ = initialFixedValueNode.Attributes["href"].Value;
             }
             else
             {
                 initialFixedValue_ = new InitialFixedValue(initialFixedValueNode);
             }
         }
         else
         {
             initialFixedValue_ = new InitialFixedValue(initialFixedValueNode);
         }
     }
     
 
     XmlNode conventionSetNode = xmlNode.SelectSingleNode("conventionSet");
     
     if (conventionSetNode != null)
     {
         if (conventionSetNode.Attributes["href"] != null || conventionSetNode.Attributes["id"] != null) 
         {
             if (conventionSetNode.Attributes["id"] != null) 
             {
                 conventionSetIDRef_ = conventionSetNode.Attributes["id"].Value;
                 ConventionSet ob = new ConventionSet(conventionSetNode);
                 IDManager.SetID(conventionSetIDRef_, ob);
             }
             else if (conventionSetNode.Attributes["href"] != null)
             {
                 conventionSetIDRef_ = conventionSetNode.Attributes["href"].Value;
             }
             else
             {
                 conventionSet_ = new ConventionSet(conventionSetNode);
             }
         }
         else
         {
             conventionSet_ = new ConventionSet(conventionSetNode);
         }
     }
     
 
 }