public PricingStructure(XmlNode xmlNode)
 {
     XmlNode nameNode = xmlNode.SelectSingleNode("name");
     
     if (nameNode != null)
     {
         if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null) 
         {
             if (nameNode.Attributes["id"] != null) 
             {
                 nameIDRef_ = nameNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(nameNode);
                 IDManager.SetID(nameIDRef_, ob);
             }
             else if (nameNode.Attributes["href"] != null)
             {
                 nameIDRef_ = nameNode.Attributes["href"].Value;
             }
             else
             {
                 name_ = new XsdTypeNormalizedString(nameNode);
             }
         }
         else
         {
             name_ = new XsdTypeNormalizedString(nameNode);
         }
     }
     
 
     XmlNode currencyNode = xmlNode.SelectSingleNode("currency");
     
     if (currencyNode != null)
     {
         if (currencyNode.Attributes["href"] != null || currencyNode.Attributes["id"] != null) 
         {
             if (currencyNode.Attributes["id"] != null) 
             {
                 currencyIDRef_ = currencyNode.Attributes["id"].Value;
                 Currency ob = new Currency(currencyNode);
                 IDManager.SetID(currencyIDRef_, ob);
             }
             else if (currencyNode.Attributes["href"] != null)
             {
                 currencyIDRef_ = currencyNode.Attributes["href"].Value;
             }
             else
             {
                 currency_ = new Currency(currencyNode);
             }
         }
         else
         {
             currency_ = new Currency(currencyNode);
         }
     }
     
 
 }
        public PricingStructure(XmlNode xmlNode)
        {
            XmlNodeList nameNodeList = xmlNode.SelectNodes("name");

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

            foreach (XmlNode item in nameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        nameIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                        IDManager.SetID(nameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        nameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        name = new XsdTypeNormalizedString(item);
                    }
                }
            }


            XmlNodeList currencyNodeList = xmlNode.SelectNodes("currency");

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

            foreach (XmlNode item in currencyNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        currencyIDRef = item.Attributes["id"].Name;
                        Currency ob = Currency();
                        IDManager.SetID(currencyIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        currencyIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        currency = new Currency(item);
                    }
                }
            }
        }
        public PricingStructure(XmlNode xmlNode)
        {
            XmlNode nameNode = xmlNode.SelectSingleNode("name");

            if (nameNode != null)
            {
                if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null)
                {
                    if (nameNode.Attributes["id"] != null)
                    {
                        nameIDRef_ = nameNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(nameNode);
                        IDManager.SetID(nameIDRef_, ob);
                    }
                    else if (nameNode.Attributes["href"] != null)
                    {
                        nameIDRef_ = nameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        name_ = new XsdTypeNormalizedString(nameNode);
                    }
                }
                else
                {
                    name_ = new XsdTypeNormalizedString(nameNode);
                }
            }


            XmlNode currencyNode = xmlNode.SelectSingleNode("currency");

            if (currencyNode != null)
            {
                if (currencyNode.Attributes["href"] != null || currencyNode.Attributes["id"] != null)
                {
                    if (currencyNode.Attributes["id"] != null)
                    {
                        currencyIDRef_ = currencyNode.Attributes["id"].Value;
                        Currency ob = new Currency(currencyNode);
                        IDManager.SetID(currencyIDRef_, ob);
                    }
                    else if (currencyNode.Attributes["href"] != null)
                    {
                        currencyIDRef_ = currencyNode.Attributes["href"].Value;
                    }
                    else
                    {
                        currency_ = new Currency(currencyNode);
                    }
                }
                else
                {
                    currency_ = new Currency(currencyNode);
                }
            }
        }
        public Approval(XmlNode xmlNode)
        {
            XmlNodeList typeNodeList = xmlNode.SelectNodes("type");

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

            foreach (XmlNode item in typeNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        typeIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                        IDManager.SetID(typeIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        typeIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        type = new XsdTypeNormalizedString(item);
                    }
                }
            }


            XmlNodeList statusNodeList = xmlNode.SelectNodes("status");

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

            foreach (XmlNode item in statusNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        statusIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                        IDManager.SetID(statusIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        statusIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        status = new XsdTypeNormalizedString(item);
                    }
                }
            }


            XmlNodeList approverNodeList = xmlNode.SelectNodes("approver");

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

            foreach (XmlNode item in approverNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        approverIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                        IDManager.SetID(approverIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        approverIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        approver = new XsdTypeNormalizedString(item);
                    }
                }
            }
        }
        public ContactInformation(XmlNode xmlNode)
        {
            XmlNodeList telephoneNodeList = xmlNode.SelectNodes("telephone");

            foreach (XmlNode item in telephoneNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        telephoneIDRef = item.Attributes["id"].Name;
                        List <TelephoneNumber> ob = new List <TelephoneNumber>();
                        ob.Add(new TelephoneNumber(item));
                        IDManager.SetID(telephoneIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        telephoneIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        telephone.Add(new TelephoneNumber(item));
                    }
                }
            }


            XmlNodeList emailNodeList = xmlNode.SelectNodes("email");

            foreach (XmlNode item in emailNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        emailIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString();
                        ob.Add(new XsdTypeNormalizedString(item));
                        IDManager.SetID(emailIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        emailIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        email.Add(new XsdTypeNormalizedString(item));
                    }
                }
            }


            XmlNodeList addressNodeList = xmlNode.SelectNodes("address");

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

            foreach (XmlNode item in addressNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        addressIDRef = item.Attributes["id"].Name;
                        Address ob = Address();
                        IDManager.SetID(addressIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        addressIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        address = new Address(item);
                    }
                }
            }
        }
 public Person(XmlNode xmlNode)
 {
     XmlNode honorificNode = xmlNode.SelectSingleNode("honorific");
     
     if (honorificNode != null)
     {
         if (honorificNode.Attributes["href"] != null || honorificNode.Attributes["id"] != null) 
         {
             if (honorificNode.Attributes["id"] != null) 
             {
                 honorificIDRef_ = honorificNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(honorificNode);
                 IDManager.SetID(honorificIDRef_, ob);
             }
             else if (honorificNode.Attributes["href"] != null)
             {
                 honorificIDRef_ = honorificNode.Attributes["href"].Value;
             }
             else
             {
                 honorific_ = new XsdTypeNormalizedString(honorificNode);
             }
         }
         else
         {
             honorific_ = new XsdTypeNormalizedString(honorificNode);
         }
     }
     
 
     XmlNode firstNameNode = xmlNode.SelectSingleNode("firstName");
     
     if (firstNameNode != null)
     {
         if (firstNameNode.Attributes["href"] != null || firstNameNode.Attributes["id"] != null) 
         {
             if (firstNameNode.Attributes["id"] != null) 
             {
                 firstNameIDRef_ = firstNameNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(firstNameNode);
                 IDManager.SetID(firstNameIDRef_, ob);
             }
             else if (firstNameNode.Attributes["href"] != null)
             {
                 firstNameIDRef_ = firstNameNode.Attributes["href"].Value;
             }
             else
             {
                 firstName_ = new XsdTypeNormalizedString(firstNameNode);
             }
         }
         else
         {
             firstName_ = new XsdTypeNormalizedString(firstNameNode);
         }
     }
     
 
     XmlNodeList middleNameNodeList = xmlNode.SelectNodes("middleName");
     
     if (middleNameNodeList != null)
     {
         this.middleName_ = new List<XsdTypeNormalizedString>();
         foreach (XmlNode item in middleNameNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     middleNameIDRef_ = item.Attributes["id"].Value;
                     middleName_.Add(new XsdTypeNormalizedString(item));
                     IDManager.SetID(middleNameIDRef_, middleName_[middleName_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     middleNameIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 middleName_.Add(new XsdTypeNormalizedString(item));
                 }
             }
             else
             {
                 middleName_.Add(new XsdTypeNormalizedString(item));
             }
         }
     }
     
 
     XmlNodeList initialNodeList = xmlNode.SelectNodes("initial");
     
     if (initialNodeList != null)
     {
         this.initial_ = new List<Initial>();
         foreach (XmlNode item in initialNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     initialIDRef_ = item.Attributes["id"].Value;
                     initial_.Add(new Initial(item));
                     IDManager.SetID(initialIDRef_, initial_[initial_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     initialIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 initial_.Add(new Initial(item));
                 }
             }
             else
             {
                 initial_.Add(new Initial(item));
             }
         }
     }
     
 
     XmlNode surnameNode = xmlNode.SelectSingleNode("surname");
     
     if (surnameNode != null)
     {
         if (surnameNode.Attributes["href"] != null || surnameNode.Attributes["id"] != null) 
         {
             if (surnameNode.Attributes["id"] != null) 
             {
                 surnameIDRef_ = surnameNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(surnameNode);
                 IDManager.SetID(surnameIDRef_, ob);
             }
             else if (surnameNode.Attributes["href"] != null)
             {
                 surnameIDRef_ = surnameNode.Attributes["href"].Value;
             }
             else
             {
                 surname_ = new XsdTypeNormalizedString(surnameNode);
             }
         }
         else
         {
             surname_ = new XsdTypeNormalizedString(surnameNode);
         }
     }
     
 
     XmlNode suffixNode = xmlNode.SelectSingleNode("suffix");
     
     if (suffixNode != null)
     {
         if (suffixNode.Attributes["href"] != null || suffixNode.Attributes["id"] != null) 
         {
             if (suffixNode.Attributes["id"] != null) 
             {
                 suffixIDRef_ = suffixNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(suffixNode);
                 IDManager.SetID(suffixIDRef_, ob);
             }
             else if (suffixNode.Attributes["href"] != null)
             {
                 suffixIDRef_ = suffixNode.Attributes["href"].Value;
             }
             else
             {
                 suffix_ = new XsdTypeNormalizedString(suffixNode);
             }
         }
         else
         {
             suffix_ = new XsdTypeNormalizedString(suffixNode);
         }
     }
     
 
     XmlNodeList personIdNodeList = xmlNode.SelectNodes("personId");
     
     if (personIdNodeList != null)
     {
         this.personId_ = new List<PersonId>();
         foreach (XmlNode item in personIdNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     personIdIDRef_ = item.Attributes["id"].Value;
                     personId_.Add(new PersonId(item));
                     IDManager.SetID(personIdIDRef_, personId_[personId_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     personIdIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 personId_.Add(new PersonId(item));
                 }
             }
             else
             {
                 personId_.Add(new PersonId(item));
             }
         }
     }
     
 
     XmlNode businessUnitReferenceNode = xmlNode.SelectSingleNode("businessUnitReference");
     
     if (businessUnitReferenceNode != null)
     {
         if (businessUnitReferenceNode.Attributes["href"] != null || businessUnitReferenceNode.Attributes["id"] != null) 
         {
             if (businessUnitReferenceNode.Attributes["id"] != null) 
             {
                 businessUnitReferenceIDRef_ = businessUnitReferenceNode.Attributes["id"].Value;
                 BusinessUnitReference ob = new BusinessUnitReference(businessUnitReferenceNode);
                 IDManager.SetID(businessUnitReferenceIDRef_, ob);
             }
             else if (businessUnitReferenceNode.Attributes["href"] != null)
             {
                 businessUnitReferenceIDRef_ = businessUnitReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 businessUnitReference_ = new BusinessUnitReference(businessUnitReferenceNode);
             }
         }
         else
         {
             businessUnitReference_ = new BusinessUnitReference(businessUnitReferenceNode);
         }
     }
     
 
     XmlNode contactInfoNode = xmlNode.SelectSingleNode("contactInfo");
     
     if (contactInfoNode != null)
     {
         if (contactInfoNode.Attributes["href"] != null || contactInfoNode.Attributes["id"] != null) 
         {
             if (contactInfoNode.Attributes["id"] != null) 
             {
                 contactInfoIDRef_ = contactInfoNode.Attributes["id"].Value;
                 ContactInformation ob = new ContactInformation(contactInfoNode);
                 IDManager.SetID(contactInfoIDRef_, ob);
             }
             else if (contactInfoNode.Attributes["href"] != null)
             {
                 contactInfoIDRef_ = contactInfoNode.Attributes["href"].Value;
             }
             else
             {
                 contactInfo_ = new ContactInformation(contactInfoNode);
             }
         }
         else
         {
             contactInfo_ = new ContactInformation(contactInfoNode);
         }
     }
     
 
     XmlNode countryNode = xmlNode.SelectSingleNode("country");
     
     if (countryNode != null)
     {
         if (countryNode.Attributes["href"] != null || countryNode.Attributes["id"] != null) 
         {
             if (countryNode.Attributes["id"] != null) 
             {
                 countryIDRef_ = countryNode.Attributes["id"].Value;
                 CountryCode ob = new CountryCode(countryNode);
                 IDManager.SetID(countryIDRef_, ob);
             }
             else if (countryNode.Attributes["href"] != null)
             {
                 countryIDRef_ = countryNode.Attributes["href"].Value;
             }
             else
             {
                 country_ = new CountryCode(countryNode);
             }
         }
         else
         {
             country_ = new CountryCode(countryNode);
         }
     }
     
 
 }
 public RequestCollateralAllocation(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode serviceNameNode = xmlNode.SelectSingleNode("serviceName");
     
     if (serviceNameNode != null)
     {
         if (serviceNameNode.Attributes["href"] != null || serviceNameNode.Attributes["id"] != null) 
         {
             if (serviceNameNode.Attributes["id"] != null) 
             {
                 serviceNameIDRef_ = serviceNameNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(serviceNameNode);
                 IDManager.SetID(serviceNameIDRef_, ob);
             }
             else if (serviceNameNode.Attributes["href"] != null)
             {
                 serviceNameIDRef_ = serviceNameNode.Attributes["href"].Value;
             }
             else
             {
                 serviceName_ = new XsdTypeNormalizedString(serviceNameNode);
             }
         }
         else
         {
             serviceName_ = new XsdTypeNormalizedString(serviceNameNode);
         }
     }
     
 
     XmlNode collateralGiverPartyReferenceNode = xmlNode.SelectSingleNode("collateralGiverPartyReference");
     
     if (collateralGiverPartyReferenceNode != null)
     {
         if (collateralGiverPartyReferenceNode.Attributes["href"] != null || collateralGiverPartyReferenceNode.Attributes["id"] != null) 
         {
             if (collateralGiverPartyReferenceNode.Attributes["id"] != null) 
             {
                 collateralGiverPartyReferenceIDRef_ = collateralGiverPartyReferenceNode.Attributes["id"].Value;
                 PartyReference ob = new PartyReference(collateralGiverPartyReferenceNode);
                 IDManager.SetID(collateralGiverPartyReferenceIDRef_, ob);
             }
             else if (collateralGiverPartyReferenceNode.Attributes["href"] != null)
             {
                 collateralGiverPartyReferenceIDRef_ = collateralGiverPartyReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 collateralGiverPartyReference_ = new PartyReference(collateralGiverPartyReferenceNode);
             }
         }
         else
         {
             collateralGiverPartyReference_ = new PartyReference(collateralGiverPartyReferenceNode);
         }
     }
     
 
     XmlNodeList collateralAllocationNodeList = xmlNode.SelectNodes("collateralAllocation");
     
     if (collateralAllocationNodeList != null)
     {
         this.collateralAllocation_ = new List<ProposedCollateralAllocation>();
         foreach (XmlNode item in collateralAllocationNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     collateralAllocationIDRef_ = item.Attributes["id"].Value;
                     collateralAllocation_.Add(new ProposedCollateralAllocation(item));
                     IDManager.SetID(collateralAllocationIDRef_, collateralAllocation_[collateralAllocation_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     collateralAllocationIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 collateralAllocation_.Add(new ProposedCollateralAllocation(item));
                 }
             }
             else
             {
                 collateralAllocation_.Add(new ProposedCollateralAllocation(item));
             }
         }
     }
     
 
     XmlNodeList partyNodeList = xmlNode.SelectNodes("party");
     
     if (partyNodeList != null)
     {
         this.party_ = new List<Party>();
         foreach (XmlNode item in partyNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     partyIDRef_ = item.Attributes["id"].Value;
                     party_.Add(new Party(item));
                     IDManager.SetID(partyIDRef_, party_[party_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     partyIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 party_.Add(new Party(item));
                 }
             }
             else
             {
                 party_.Add(new Party(item));
             }
         }
     }
     
 
     XmlNodeList accountNodeList = xmlNode.SelectNodes("account");
     
     if (accountNodeList != null)
     {
         this.account_ = new List<Account>();
         foreach (XmlNode item in accountNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     accountIDRef_ = item.Attributes["id"].Value;
                     account_.Add(new Account(item));
                     IDManager.SetID(accountIDRef_, account_[account_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     accountIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 account_.Add(new Account(item));
                 }
             }
             else
             {
                 account_.Add(new Account(item));
             }
         }
     }
     
 
 }
        public QueryParameter(XmlNode xmlNode)
        {
            XmlNodeList queryParameterIdNodeList = xmlNode.SelectNodes("queryParameterId");

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

            foreach (XmlNode item in queryParameterIdNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        queryParameterIdIDRef = item.Attributes["id"].Name;
                        QueryParameterId ob = QueryParameterId();
                        IDManager.SetID(queryParameterIdIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        queryParameterIdIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        queryParameterId = new QueryParameterId(item);
                    }
                }
            }


            XmlNodeList queryParameterValueNodeList = xmlNode.SelectNodes("queryParameterValue");

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

            foreach (XmlNode item in queryParameterValueNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        queryParameterValueIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                        IDManager.SetID(queryParameterValueIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        queryParameterValueIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        queryParameterValue = new XsdTypeNormalizedString(item);
                    }
                }
            }


            XmlNodeList queryParameterOperatorNodeList = xmlNode.SelectNodes("queryParameterOperator");

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

            foreach (XmlNode item in queryParameterOperatorNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        queryParameterOperatorIDRef = item.Attributes["id"].Name;
                        QueryParameterOperator ob = QueryParameterOperator();
                        IDManager.SetID(queryParameterOperatorIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        queryParameterOperatorIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        queryParameterOperator = new QueryParameterOperator(item);
                    }
                }
            }
        }
Ejemplo n.º 9
0
        public Person(XmlNode xmlNode)
        {
            XmlNodeList honorificNodeList = xmlNode.SelectNodes("honorific");

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

            foreach (XmlNode item in honorificNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        honorificIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                        IDManager.SetID(honorificIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        honorificIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        honorific = new XsdTypeNormalizedString(item);
                    }
                }
            }


            XmlNodeList firstNameNodeList = xmlNode.SelectNodes("firstName");

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

            foreach (XmlNode item in firstNameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        firstNameIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                        IDManager.SetID(firstNameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        firstNameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        firstName = new XsdTypeNormalizedString(item);
                    }
                }
            }


            XmlNodeList middleNameNodeList = xmlNode.SelectNodes("middleName");

            foreach (XmlNode item in middleNameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        middleNameIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString();
                        ob.Add(new XsdTypeNormalizedString(item));
                        IDManager.SetID(middleNameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        middleNameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        middleName.Add(new XsdTypeNormalizedString(item));
                    }
                }
            }


            XmlNodeList initialNodeList = xmlNode.SelectNodes("initial");

            foreach (XmlNode item in initialNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        initialIDRef = item.Attributes["id"].Name;
                        List <Initial> ob = new List <Initial>();
                        ob.Add(new Initial(item));
                        IDManager.SetID(initialIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        initialIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        initial.Add(new Initial(item));
                    }
                }
            }


            XmlNodeList surnameNodeList = xmlNode.SelectNodes("surname");

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

            foreach (XmlNode item in surnameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        surnameIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                        IDManager.SetID(surnameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        surnameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        surname = new XsdTypeNormalizedString(item);
                    }
                }
            }


            XmlNodeList suffixNodeList = xmlNode.SelectNodes("suffix");

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

            foreach (XmlNode item in suffixNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        suffixIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                        IDManager.SetID(suffixIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        suffixIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        suffix = new XsdTypeNormalizedString(item);
                    }
                }
            }


            XmlNodeList personIdNodeList = xmlNode.SelectNodes("personId");

            foreach (XmlNode item in personIdNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        personIdIDRef = item.Attributes["id"].Name;
                        List <PersonId> ob = new List <PersonId>();
                        ob.Add(new PersonId(item));
                        IDManager.SetID(personIdIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        personIdIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        personId.Add(new PersonId(item));
                    }
                }
            }


            XmlNodeList businessUnitReferenceNodeList = xmlNode.SelectNodes("businessUnitReference");

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

            foreach (XmlNode item in businessUnitReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        businessUnitReferenceIDRef = item.Attributes["id"].Name;
                        BusinessUnitReference ob = BusinessUnitReference();
                        IDManager.SetID(businessUnitReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        businessUnitReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        businessUnitReference = new BusinessUnitReference(item);
                    }
                }
            }


            XmlNodeList contactInfoNodeList = xmlNode.SelectNodes("contactInfo");

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

            foreach (XmlNode item in contactInfoNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        contactInfoIDRef = item.Attributes["id"].Name;
                        ContactInformation ob = ContactInformation();
                        IDManager.SetID(contactInfoIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        contactInfoIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        contactInfo = new ContactInformation(item);
                    }
                }
            }


            XmlNodeList countryNodeList = xmlNode.SelectNodes("country");

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

            foreach (XmlNode item in countryNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        countryIDRef = item.Attributes["id"].Name;
                        CountryCode ob = CountryCode();
                        IDManager.SetID(countryIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        countryIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        country = new CountryCode(item);
                    }
                }
            }
        }
        public ImplementationSpecification(XmlNode xmlNode)
        {
            XmlNode nameNode = xmlNode.SelectSingleNode("name");

            if (nameNode != null)
            {
                if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null)
                {
                    if (nameNode.Attributes["id"] != null)
                    {
                        nameIDRef_ = nameNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(nameNode);
                        IDManager.SetID(nameIDRef_, ob);
                    }
                    else if (nameNode.Attributes["href"] != null)
                    {
                        nameIDRef_ = nameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        name_ = new XsdTypeNormalizedString(nameNode);
                    }
                }
                else
                {
                    name_ = new XsdTypeNormalizedString(nameNode);
                }
            }


            XmlNode versionNode = xmlNode.SelectSingleNode("version");

            if (versionNode != null)
            {
                if (versionNode.Attributes["href"] != null || versionNode.Attributes["id"] != null)
                {
                    if (versionNode.Attributes["id"] != null)
                    {
                        versionIDRef_ = versionNode.Attributes["id"].Value;
                        ImplementationSpecificationVersion ob = new ImplementationSpecificationVersion(versionNode);
                        IDManager.SetID(versionIDRef_, ob);
                    }
                    else if (versionNode.Attributes["href"] != null)
                    {
                        versionIDRef_ = versionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        version_ = new ImplementationSpecificationVersion(versionNode);
                    }
                }
                else
                {
                    version_ = new ImplementationSpecificationVersion(versionNode);
                }
            }


            XmlNode dateNode = xmlNode.SelectSingleNode("date");

            if (dateNode != null)
            {
                if (dateNode.Attributes["href"] != null || dateNode.Attributes["id"] != null)
                {
                    if (dateNode.Attributes["id"] != null)
                    {
                        dateIDRef_ = dateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(dateNode);
                        IDManager.SetID(dateIDRef_, ob);
                    }
                    else if (dateNode.Attributes["href"] != null)
                    {
                        dateIDRef_ = dateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        date_ = new XsdTypeDate(dateNode);
                    }
                }
                else
                {
                    date_ = new XsdTypeDate(dateNode);
                }
            }
        }
 public Resource(XmlNode xmlNode)
 {
     XmlNode resourceIdNode = xmlNode.SelectSingleNode("resourceId");
     
     if (resourceIdNode != null)
     {
         if (resourceIdNode.Attributes["href"] != null || resourceIdNode.Attributes["id"] != null) 
         {
             if (resourceIdNode.Attributes["id"] != null) 
             {
                 resourceIdIDRef_ = resourceIdNode.Attributes["id"].Value;
                 ResourceId ob = new ResourceId(resourceIdNode);
                 IDManager.SetID(resourceIdIDRef_, ob);
             }
             else if (resourceIdNode.Attributes["href"] != null)
             {
                 resourceIdIDRef_ = resourceIdNode.Attributes["href"].Value;
             }
             else
             {
                 resourceId_ = new ResourceId(resourceIdNode);
             }
         }
         else
         {
             resourceId_ = new ResourceId(resourceIdNode);
         }
     }
     
 
     XmlNode resourceTypeNode = xmlNode.SelectSingleNode("resourceType");
     
     if (resourceTypeNode != null)
     {
         if (resourceTypeNode.Attributes["href"] != null || resourceTypeNode.Attributes["id"] != null) 
         {
             if (resourceTypeNode.Attributes["id"] != null) 
             {
                 resourceTypeIDRef_ = resourceTypeNode.Attributes["id"].Value;
                 ResourceType ob = new ResourceType(resourceTypeNode);
                 IDManager.SetID(resourceTypeIDRef_, ob);
             }
             else if (resourceTypeNode.Attributes["href"] != null)
             {
                 resourceTypeIDRef_ = resourceTypeNode.Attributes["href"].Value;
             }
             else
             {
                 resourceType_ = new ResourceType(resourceTypeNode);
             }
         }
         else
         {
             resourceType_ = new ResourceType(resourceTypeNode);
         }
     }
     
 
     XmlNode languageNode = xmlNode.SelectSingleNode("language");
     
     if (languageNode != null)
     {
         if (languageNode.Attributes["href"] != null || languageNode.Attributes["id"] != null) 
         {
             if (languageNode.Attributes["id"] != null) 
             {
                 languageIDRef_ = languageNode.Attributes["id"].Value;
                 Language ob = new Language(languageNode);
                 IDManager.SetID(languageIDRef_, ob);
             }
             else if (languageNode.Attributes["href"] != null)
             {
                 languageIDRef_ = languageNode.Attributes["href"].Value;
             }
             else
             {
                 language_ = new Language(languageNode);
             }
         }
         else
         {
             language_ = new Language(languageNode);
         }
     }
     
 
     XmlNode sizeInBytesNode = xmlNode.SelectSingleNode("sizeInBytes");
     
     if (sizeInBytesNode != null)
     {
         if (sizeInBytesNode.Attributes["href"] != null || sizeInBytesNode.Attributes["id"] != null) 
         {
             if (sizeInBytesNode.Attributes["id"] != null) 
             {
                 sizeInBytesIDRef_ = sizeInBytesNode.Attributes["id"].Value;
                 XsdTypeDecimal ob = new XsdTypeDecimal(sizeInBytesNode);
                 IDManager.SetID(sizeInBytesIDRef_, ob);
             }
             else if (sizeInBytesNode.Attributes["href"] != null)
             {
                 sizeInBytesIDRef_ = sizeInBytesNode.Attributes["href"].Value;
             }
             else
             {
                 sizeInBytes_ = new XsdTypeDecimal(sizeInBytesNode);
             }
         }
         else
         {
             sizeInBytes_ = new XsdTypeDecimal(sizeInBytesNode);
         }
     }
     
 
     XmlNode lengthNode = xmlNode.SelectSingleNode("length");
     
     if (lengthNode != null)
     {
         if (lengthNode.Attributes["href"] != null || lengthNode.Attributes["id"] != null) 
         {
             if (lengthNode.Attributes["id"] != null) 
             {
                 lengthIDRef_ = lengthNode.Attributes["id"].Value;
                 ResourceLength ob = new ResourceLength(lengthNode);
                 IDManager.SetID(lengthIDRef_, ob);
             }
             else if (lengthNode.Attributes["href"] != null)
             {
                 lengthIDRef_ = lengthNode.Attributes["href"].Value;
             }
             else
             {
                 length_ = new ResourceLength(lengthNode);
             }
         }
         else
         {
             length_ = new ResourceLength(lengthNode);
         }
     }
     
 
     XmlNode mimeTypeNode = xmlNode.SelectSingleNode("mimeType");
     
     if (mimeTypeNode != null)
     {
         if (mimeTypeNode.Attributes["href"] != null || mimeTypeNode.Attributes["id"] != null) 
         {
             if (mimeTypeNode.Attributes["id"] != null) 
             {
                 mimeTypeIDRef_ = mimeTypeNode.Attributes["id"].Value;
                 MimeType ob = new MimeType(mimeTypeNode);
                 IDManager.SetID(mimeTypeIDRef_, ob);
             }
             else if (mimeTypeNode.Attributes["href"] != null)
             {
                 mimeTypeIDRef_ = mimeTypeNode.Attributes["href"].Value;
             }
             else
             {
                 mimeType_ = new MimeType(mimeTypeNode);
             }
         }
         else
         {
             mimeType_ = new MimeType(mimeTypeNode);
         }
     }
     
 
     XmlNode nameNode = xmlNode.SelectSingleNode("name");
     
     if (nameNode != null)
     {
         if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null) 
         {
             if (nameNode.Attributes["id"] != null) 
             {
                 nameIDRef_ = nameNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(nameNode);
                 IDManager.SetID(nameIDRef_, ob);
             }
             else if (nameNode.Attributes["href"] != null)
             {
                 nameIDRef_ = nameNode.Attributes["href"].Value;
             }
             else
             {
                 name_ = new XsdTypeNormalizedString(nameNode);
             }
         }
         else
         {
             name_ = new XsdTypeNormalizedString(nameNode);
         }
     }
     
 
     XmlNode commentsNode = xmlNode.SelectSingleNode("comments");
     
     if (commentsNode != null)
     {
         if (commentsNode.Attributes["href"] != null || commentsNode.Attributes["id"] != null) 
         {
             if (commentsNode.Attributes["id"] != null) 
             {
                 commentsIDRef_ = commentsNode.Attributes["id"].Value;
                 XsdTypeString ob = new XsdTypeString(commentsNode);
                 IDManager.SetID(commentsIDRef_, ob);
             }
             else if (commentsNode.Attributes["href"] != null)
             {
                 commentsIDRef_ = commentsNode.Attributes["href"].Value;
             }
             else
             {
                 comments_ = new XsdTypeString(commentsNode);
             }
         }
         else
         {
             comments_ = new XsdTypeString(commentsNode);
         }
     }
     
 
     XmlNode stringNode = xmlNode.SelectSingleNode("string");
     
     if (stringNode != null)
     {
         if (stringNode.Attributes["href"] != null || stringNode.Attributes["id"] != null) 
         {
             if (stringNode.Attributes["id"] != null) 
             {
                 stringIDRef_ = stringNode.Attributes["id"].Value;
                 XsdTypeString ob = new XsdTypeString(stringNode);
                 IDManager.SetID(stringIDRef_, ob);
             }
             else if (stringNode.Attributes["href"] != null)
             {
                 stringIDRef_ = stringNode.Attributes["href"].Value;
             }
             else
             {
                 string_ = new XsdTypeString(stringNode);
             }
         }
         else
         {
             string_ = new XsdTypeString(stringNode);
         }
     }
     
 
     XmlNode hexadecimalBinaryNode = xmlNode.SelectSingleNode("hexadecimalBinary");
     
     if (hexadecimalBinaryNode != null)
     {
         if (hexadecimalBinaryNode.Attributes["href"] != null || hexadecimalBinaryNode.Attributes["id"] != null) 
         {
             if (hexadecimalBinaryNode.Attributes["id"] != null) 
             {
                 hexadecimalBinaryIDRef_ = hexadecimalBinaryNode.Attributes["id"].Value;
                 XsdTypeHexBinary ob = new XsdTypeHexBinary(hexadecimalBinaryNode);
                 IDManager.SetID(hexadecimalBinaryIDRef_, ob);
             }
             else if (hexadecimalBinaryNode.Attributes["href"] != null)
             {
                 hexadecimalBinaryIDRef_ = hexadecimalBinaryNode.Attributes["href"].Value;
             }
             else
             {
                 hexadecimalBinary_ = new XsdTypeHexBinary(hexadecimalBinaryNode);
             }
         }
         else
         {
             hexadecimalBinary_ = new XsdTypeHexBinary(hexadecimalBinaryNode);
         }
     }
     
 
     XmlNode base64BinaryNode = xmlNode.SelectSingleNode("base64Binary");
     
     if (base64BinaryNode != null)
     {
         if (base64BinaryNode.Attributes["href"] != null || base64BinaryNode.Attributes["id"] != null) 
         {
             if (base64BinaryNode.Attributes["id"] != null) 
             {
                 base64BinaryIDRef_ = base64BinaryNode.Attributes["id"].Value;
                 XsdTypeBase64Binary ob = new XsdTypeBase64Binary(base64BinaryNode);
                 IDManager.SetID(base64BinaryIDRef_, ob);
             }
             else if (base64BinaryNode.Attributes["href"] != null)
             {
                 base64BinaryIDRef_ = base64BinaryNode.Attributes["href"].Value;
             }
             else
             {
                 base64Binary_ = new XsdTypeBase64Binary(base64BinaryNode);
             }
         }
         else
         {
             base64Binary_ = new XsdTypeBase64Binary(base64BinaryNode);
         }
     }
     
 
     XmlNode urlNode = xmlNode.SelectSingleNode("url");
     
     if (urlNode != null)
     {
         if (urlNode.Attributes["href"] != null || urlNode.Attributes["id"] != null) 
         {
             if (urlNode.Attributes["id"] != null) 
             {
                 urlIDRef_ = urlNode.Attributes["id"].Value;
                 XsdTypeAnyURI ob = new XsdTypeAnyURI(urlNode);
                 IDManager.SetID(urlIDRef_, ob);
             }
             else if (urlNode.Attributes["href"] != null)
             {
                 urlIDRef_ = urlNode.Attributes["href"].Value;
             }
             else
             {
                 url_ = new XsdTypeAnyURI(urlNode);
             }
         }
         else
         {
             url_ = new XsdTypeAnyURI(urlNode);
         }
     }
     
 
 }
        public QueryParameter(XmlNode xmlNode)
        {
            XmlNode queryParameterIdNode = xmlNode.SelectSingleNode("queryParameterId");

            if (queryParameterIdNode != null)
            {
                if (queryParameterIdNode.Attributes["href"] != null || queryParameterIdNode.Attributes["id"] != null)
                {
                    if (queryParameterIdNode.Attributes["id"] != null)
                    {
                        queryParameterIdIDRef_ = queryParameterIdNode.Attributes["id"].Value;
                        QueryParameterId ob = new QueryParameterId(queryParameterIdNode);
                        IDManager.SetID(queryParameterIdIDRef_, ob);
                    }
                    else if (queryParameterIdNode.Attributes["href"] != null)
                    {
                        queryParameterIdIDRef_ = queryParameterIdNode.Attributes["href"].Value;
                    }
                    else
                    {
                        queryParameterId_ = new QueryParameterId(queryParameterIdNode);
                    }
                }
                else
                {
                    queryParameterId_ = new QueryParameterId(queryParameterIdNode);
                }
            }


            XmlNode queryParameterValueNode = xmlNode.SelectSingleNode("queryParameterValue");

            if (queryParameterValueNode != null)
            {
                if (queryParameterValueNode.Attributes["href"] != null || queryParameterValueNode.Attributes["id"] != null)
                {
                    if (queryParameterValueNode.Attributes["id"] != null)
                    {
                        queryParameterValueIDRef_ = queryParameterValueNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(queryParameterValueNode);
                        IDManager.SetID(queryParameterValueIDRef_, ob);
                    }
                    else if (queryParameterValueNode.Attributes["href"] != null)
                    {
                        queryParameterValueIDRef_ = queryParameterValueNode.Attributes["href"].Value;
                    }
                    else
                    {
                        queryParameterValue_ = new XsdTypeNormalizedString(queryParameterValueNode);
                    }
                }
                else
                {
                    queryParameterValue_ = new XsdTypeNormalizedString(queryParameterValueNode);
                }
            }


            XmlNode queryParameterOperatorNode = xmlNode.SelectSingleNode("queryParameterOperator");

            if (queryParameterOperatorNode != null)
            {
                if (queryParameterOperatorNode.Attributes["href"] != null || queryParameterOperatorNode.Attributes["id"] != null)
                {
                    if (queryParameterOperatorNode.Attributes["id"] != null)
                    {
                        queryParameterOperatorIDRef_ = queryParameterOperatorNode.Attributes["id"].Value;
                        QueryParameterOperator ob = new QueryParameterOperator(queryParameterOperatorNode);
                        IDManager.SetID(queryParameterOperatorIDRef_, ob);
                    }
                    else if (queryParameterOperatorNode.Attributes["href"] != null)
                    {
                        queryParameterOperatorIDRef_ = queryParameterOperatorNode.Attributes["href"].Value;
                    }
                    else
                    {
                        queryParameterOperator_ = new QueryParameterOperator(queryParameterOperatorNode);
                    }
                }
                else
                {
                    queryParameterOperator_ = new QueryParameterOperator(queryParameterOperatorNode);
                }
            }
        }
Ejemplo n.º 13
0
        public CashflowNotional(XmlNode xmlNode)
        {
            XmlNode currencyNode = xmlNode.SelectSingleNode("currency");

            if (currencyNode != null)
            {
                if (currencyNode.Attributes["href"] != null || currencyNode.Attributes["id"] != null)
                {
                    if (currencyNode.Attributes["id"] != null)
                    {
                        currencyIDRef_ = currencyNode.Attributes["id"].Value;
                        Currency ob = new Currency(currencyNode);
                        IDManager.SetID(currencyIDRef_, ob);
                    }
                    else if (currencyNode.Attributes["href"] != null)
                    {
                        currencyIDRef_ = currencyNode.Attributes["href"].Value;
                    }
                    else
                    {
                        currency_ = new Currency(currencyNode);
                    }
                }
                else
                {
                    currency_ = new Currency(currencyNode);
                }
            }


            XmlNode unitsNode = xmlNode.SelectSingleNode("units");

            if (unitsNode != null)
            {
                if (unitsNode.Attributes["href"] != null || unitsNode.Attributes["id"] != null)
                {
                    if (unitsNode.Attributes["id"] != null)
                    {
                        unitsIDRef_ = unitsNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(unitsNode);
                        IDManager.SetID(unitsIDRef_, ob);
                    }
                    else if (unitsNode.Attributes["href"] != null)
                    {
                        unitsIDRef_ = unitsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        units_ = new XsdTypeNormalizedString(unitsNode);
                    }
                }
                else
                {
                    units_ = new XsdTypeNormalizedString(unitsNode);
                }
            }


            XmlNode amountNode = xmlNode.SelectSingleNode("amount");

            if (amountNode != null)
            {
                if (amountNode.Attributes["href"] != null || amountNode.Attributes["id"] != null)
                {
                    if (amountNode.Attributes["id"] != null)
                    {
                        amountIDRef_ = amountNode.Attributes["id"].Value;
                        XsdTypeDecimal ob = new XsdTypeDecimal(amountNode);
                        IDManager.SetID(amountIDRef_, ob);
                    }
                    else if (amountNode.Attributes["href"] != null)
                    {
                        amountIDRef_ = amountNode.Attributes["href"].Value;
                    }
                    else
                    {
                        amount_ = new XsdTypeDecimal(amountNode);
                    }
                }
                else
                {
                    amount_ = new XsdTypeDecimal(amountNode);
                }
            }
        }
        public Resource(XmlNode xmlNode)
        {
            XmlNodeList resourceIdNodeList = xmlNode.SelectNodes("resourceId");

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

            foreach (XmlNode item in resourceIdNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        resourceIdIDRef = item.Attributes["id"].Name;
                        ResourceId ob = ResourceId();
                        IDManager.SetID(resourceIdIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        resourceIdIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        resourceId = new ResourceId(item);
                    }
                }
            }


            XmlNodeList resourceTypeNodeList = xmlNode.SelectNodes("resourceType");

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

            foreach (XmlNode item in resourceTypeNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        resourceTypeIDRef = item.Attributes["id"].Name;
                        ResourceType ob = ResourceType();
                        IDManager.SetID(resourceTypeIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        resourceTypeIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        resourceType = new ResourceType(item);
                    }
                }
            }


            XmlNodeList languageNodeList = xmlNode.SelectNodes("language");

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

            foreach (XmlNode item in languageNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        languageIDRef = item.Attributes["id"].Name;
                        Language ob = Language();
                        IDManager.SetID(languageIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        languageIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        language = new Language(item);
                    }
                }
            }


            XmlNodeList sizeInBytesNodeList = xmlNode.SelectNodes("sizeInBytes");

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

            foreach (XmlNode item in sizeInBytesNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        sizeInBytesIDRef = item.Attributes["id"].Name;
                        XsdTypeDecimal ob = XsdTypeDecimal();
                        IDManager.SetID(sizeInBytesIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        sizeInBytesIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        sizeInBytes = new XsdTypeDecimal(item);
                    }
                }
            }


            XmlNodeList lengthNodeList = xmlNode.SelectNodes("length");

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

            foreach (XmlNode item in lengthNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        lengthIDRef = item.Attributes["id"].Name;
                        ResourceLength ob = ResourceLength();
                        IDManager.SetID(lengthIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        lengthIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        length = new ResourceLength(item);
                    }
                }
            }


            XmlNodeList mimeTypeNodeList = xmlNode.SelectNodes("mimeType");

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

            foreach (XmlNode item in mimeTypeNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        mimeTypeIDRef = item.Attributes["id"].Name;
                        MimeType ob = MimeType();
                        IDManager.SetID(mimeTypeIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        mimeTypeIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        mimeType = new MimeType(item);
                    }
                }
            }


            XmlNodeList nameNodeList = xmlNode.SelectNodes("name");

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

            foreach (XmlNode item in nameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        nameIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                        IDManager.SetID(nameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        nameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        name = new XsdTypeNormalizedString(item);
                    }
                }
            }


            XmlNodeList commentsNodeList = xmlNode.SelectNodes("comments");

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

            foreach (XmlNode item in commentsNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        commentsIDRef = item.Attributes["id"].Name;
                        XsdTypeString ob = XsdTypeString();
                        IDManager.SetID(commentsIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        commentsIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        comments = new XsdTypeString(item);
                    }
                }
            }


            XmlNodeList stringNodeList = xmlNode.SelectNodes("string");

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

            foreach (XmlNode item in stringNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        stringIDRef = item.Attributes["id"].Name;
                        XsdTypeString ob = XsdTypeString();
                        IDManager.SetID(stringIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        stringIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        string = new XsdTypeString(item);
                    }
                }
            }


            XmlNodeList hexadecimalBinaryNodeList = xmlNode.SelectNodes("hexadecimalBinary");

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

            foreach (XmlNode item in hexadecimalBinaryNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        hexadecimalBinaryIDRef = item.Attributes["id"].Name;
                        XsdTypeHexBinary ob = XsdTypeHexBinary();
                        IDManager.SetID(hexadecimalBinaryIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        hexadecimalBinaryIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        hexadecimalBinary = new XsdTypeHexBinary(item);
                    }
                }
            }


            XmlNodeList base64BinaryNodeList = xmlNode.SelectNodes("base64Binary");

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

            foreach (XmlNode item in base64BinaryNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        base64BinaryIDRef = item.Attributes["id"].Name;
                        XsdTypeBase64Binary ob = XsdTypeBase64Binary();
                        IDManager.SetID(base64BinaryIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        base64BinaryIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        base64Binary = new XsdTypeBase64Binary(item);
                    }
                }
            }


            XmlNodeList urlNodeList = xmlNode.SelectNodes("url");

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

            foreach (XmlNode item in urlNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        urlIDRef = item.Attributes["id"].Name;
                        XsdTypeAnyURI ob = XsdTypeAnyURI();
                        IDManager.SetID(urlIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        urlIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        url = new XsdTypeAnyURI(item);
                    }
                }
            }
        }
 public Approval(XmlNode xmlNode)
 {
     XmlNode typeNode = xmlNode.SelectSingleNode("type");
     
     if (typeNode != null)
     {
         if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null) 
         {
             if (typeNode.Attributes["id"] != null) 
             {
                 typeIDRef_ = typeNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(typeNode);
                 IDManager.SetID(typeIDRef_, ob);
             }
             else if (typeNode.Attributes["href"] != null)
             {
                 typeIDRef_ = typeNode.Attributes["href"].Value;
             }
             else
             {
                 type_ = new XsdTypeNormalizedString(typeNode);
             }
         }
         else
         {
             type_ = new XsdTypeNormalizedString(typeNode);
         }
     }
     
 
     XmlNode statusNode = xmlNode.SelectSingleNode("status");
     
     if (statusNode != null)
     {
         if (statusNode.Attributes["href"] != null || statusNode.Attributes["id"] != null) 
         {
             if (statusNode.Attributes["id"] != null) 
             {
                 statusIDRef_ = statusNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(statusNode);
                 IDManager.SetID(statusIDRef_, ob);
             }
             else if (statusNode.Attributes["href"] != null)
             {
                 statusIDRef_ = statusNode.Attributes["href"].Value;
             }
             else
             {
                 status_ = new XsdTypeNormalizedString(statusNode);
             }
         }
         else
         {
             status_ = new XsdTypeNormalizedString(statusNode);
         }
     }
     
 
     XmlNode approverNode = xmlNode.SelectSingleNode("approver");
     
     if (approverNode != null)
     {
         if (approverNode.Attributes["href"] != null || approverNode.Attributes["id"] != null) 
         {
             if (approverNode.Attributes["id"] != null) 
             {
                 approverIDRef_ = approverNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(approverNode);
                 IDManager.SetID(approverIDRef_, ob);
             }
             else if (approverNode.Attributes["href"] != null)
             {
                 approverIDRef_ = approverNode.Attributes["href"].Value;
             }
             else
             {
                 approver_ = new XsdTypeNormalizedString(approverNode);
             }
         }
         else
         {
             approver_ = new XsdTypeNormalizedString(approverNode);
         }
     }
     
 
 }
Ejemplo n.º 16
0
        public Approval(XmlNode xmlNode)
        {
            XmlNode typeNode = xmlNode.SelectSingleNode("type");

            if (typeNode != null)
            {
                if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null)
                {
                    if (typeNode.Attributes["id"] != null)
                    {
                        typeIDRef_ = typeNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(typeNode);
                        IDManager.SetID(typeIDRef_, ob);
                    }
                    else if (typeNode.Attributes["href"] != null)
                    {
                        typeIDRef_ = typeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        type_ = new XsdTypeNormalizedString(typeNode);
                    }
                }
                else
                {
                    type_ = new XsdTypeNormalizedString(typeNode);
                }
            }


            XmlNode statusNode = xmlNode.SelectSingleNode("status");

            if (statusNode != null)
            {
                if (statusNode.Attributes["href"] != null || statusNode.Attributes["id"] != null)
                {
                    if (statusNode.Attributes["id"] != null)
                    {
                        statusIDRef_ = statusNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(statusNode);
                        IDManager.SetID(statusIDRef_, ob);
                    }
                    else if (statusNode.Attributes["href"] != null)
                    {
                        statusIDRef_ = statusNode.Attributes["href"].Value;
                    }
                    else
                    {
                        status_ = new XsdTypeNormalizedString(statusNode);
                    }
                }
                else
                {
                    status_ = new XsdTypeNormalizedString(statusNode);
                }
            }


            XmlNode approverNode = xmlNode.SelectSingleNode("approver");

            if (approverNode != null)
            {
                if (approverNode.Attributes["href"] != null || approverNode.Attributes["id"] != null)
                {
                    if (approverNode.Attributes["id"] != null)
                    {
                        approverIDRef_ = approverNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(approverNode);
                        IDManager.SetID(approverIDRef_, ob);
                    }
                    else if (approverNode.Attributes["href"] != null)
                    {
                        approverIDRef_ = approverNode.Attributes["href"].Value;
                    }
                    else
                    {
                        approver_ = new XsdTypeNormalizedString(approverNode);
                    }
                }
                else
                {
                    approver_ = new XsdTypeNormalizedString(approverNode);
                }
            }
        }
Ejemplo n.º 17
0
        public Person(XmlNode xmlNode)
        {
            XmlNode honorificNode = xmlNode.SelectSingleNode("honorific");

            if (honorificNode != null)
            {
                if (honorificNode.Attributes["href"] != null || honorificNode.Attributes["id"] != null)
                {
                    if (honorificNode.Attributes["id"] != null)
                    {
                        honorificIDRef_ = honorificNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(honorificNode);
                        IDManager.SetID(honorificIDRef_, ob);
                    }
                    else if (honorificNode.Attributes["href"] != null)
                    {
                        honorificIDRef_ = honorificNode.Attributes["href"].Value;
                    }
                    else
                    {
                        honorific_ = new XsdTypeNormalizedString(honorificNode);
                    }
                }
                else
                {
                    honorific_ = new XsdTypeNormalizedString(honorificNode);
                }
            }


            XmlNode firstNameNode = xmlNode.SelectSingleNode("firstName");

            if (firstNameNode != null)
            {
                if (firstNameNode.Attributes["href"] != null || firstNameNode.Attributes["id"] != null)
                {
                    if (firstNameNode.Attributes["id"] != null)
                    {
                        firstNameIDRef_ = firstNameNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(firstNameNode);
                        IDManager.SetID(firstNameIDRef_, ob);
                    }
                    else if (firstNameNode.Attributes["href"] != null)
                    {
                        firstNameIDRef_ = firstNameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        firstName_ = new XsdTypeNormalizedString(firstNameNode);
                    }
                }
                else
                {
                    firstName_ = new XsdTypeNormalizedString(firstNameNode);
                }
            }


            XmlNodeList middleNameNodeList = xmlNode.SelectNodes("middleName");

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


            XmlNodeList initialNodeList = xmlNode.SelectNodes("initial");

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


            XmlNode surnameNode = xmlNode.SelectSingleNode("surname");

            if (surnameNode != null)
            {
                if (surnameNode.Attributes["href"] != null || surnameNode.Attributes["id"] != null)
                {
                    if (surnameNode.Attributes["id"] != null)
                    {
                        surnameIDRef_ = surnameNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(surnameNode);
                        IDManager.SetID(surnameIDRef_, ob);
                    }
                    else if (surnameNode.Attributes["href"] != null)
                    {
                        surnameIDRef_ = surnameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        surname_ = new XsdTypeNormalizedString(surnameNode);
                    }
                }
                else
                {
                    surname_ = new XsdTypeNormalizedString(surnameNode);
                }
            }


            XmlNode suffixNode = xmlNode.SelectSingleNode("suffix");

            if (suffixNode != null)
            {
                if (suffixNode.Attributes["href"] != null || suffixNode.Attributes["id"] != null)
                {
                    if (suffixNode.Attributes["id"] != null)
                    {
                        suffixIDRef_ = suffixNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(suffixNode);
                        IDManager.SetID(suffixIDRef_, ob);
                    }
                    else if (suffixNode.Attributes["href"] != null)
                    {
                        suffixIDRef_ = suffixNode.Attributes["href"].Value;
                    }
                    else
                    {
                        suffix_ = new XsdTypeNormalizedString(suffixNode);
                    }
                }
                else
                {
                    suffix_ = new XsdTypeNormalizedString(suffixNode);
                }
            }


            XmlNodeList personIdNodeList = xmlNode.SelectNodes("personId");

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


            XmlNode businessUnitReferenceNode = xmlNode.SelectSingleNode("businessUnitReference");

            if (businessUnitReferenceNode != null)
            {
                if (businessUnitReferenceNode.Attributes["href"] != null || businessUnitReferenceNode.Attributes["id"] != null)
                {
                    if (businessUnitReferenceNode.Attributes["id"] != null)
                    {
                        businessUnitReferenceIDRef_ = businessUnitReferenceNode.Attributes["id"].Value;
                        BusinessUnitReference ob = new BusinessUnitReference(businessUnitReferenceNode);
                        IDManager.SetID(businessUnitReferenceIDRef_, ob);
                    }
                    else if (businessUnitReferenceNode.Attributes["href"] != null)
                    {
                        businessUnitReferenceIDRef_ = businessUnitReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        businessUnitReference_ = new BusinessUnitReference(businessUnitReferenceNode);
                    }
                }
                else
                {
                    businessUnitReference_ = new BusinessUnitReference(businessUnitReferenceNode);
                }
            }


            XmlNode contactInfoNode = xmlNode.SelectSingleNode("contactInfo");

            if (contactInfoNode != null)
            {
                if (contactInfoNode.Attributes["href"] != null || contactInfoNode.Attributes["id"] != null)
                {
                    if (contactInfoNode.Attributes["id"] != null)
                    {
                        contactInfoIDRef_ = contactInfoNode.Attributes["id"].Value;
                        ContactInformation ob = new ContactInformation(contactInfoNode);
                        IDManager.SetID(contactInfoIDRef_, ob);
                    }
                    else if (contactInfoNode.Attributes["href"] != null)
                    {
                        contactInfoIDRef_ = contactInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        contactInfo_ = new ContactInformation(contactInfoNode);
                    }
                }
                else
                {
                    contactInfo_ = new ContactInformation(contactInfoNode);
                }
            }


            XmlNode countryNode = xmlNode.SelectSingleNode("country");

            if (countryNode != null)
            {
                if (countryNode.Attributes["href"] != null || countryNode.Attributes["id"] != null)
                {
                    if (countryNode.Attributes["id"] != null)
                    {
                        countryIDRef_ = countryNode.Attributes["id"].Value;
                        CountryCode ob = new CountryCode(countryNode);
                        IDManager.SetID(countryIDRef_, ob);
                    }
                    else if (countryNode.Attributes["href"] != null)
                    {
                        countryIDRef_ = countryNode.Attributes["href"].Value;
                    }
                    else
                    {
                        country_ = new CountryCode(countryNode);
                    }
                }
                else
                {
                    country_ = new CountryCode(countryNode);
                }
            }
        }
        public ServiceNotification(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList serviceNameNodeList = xmlNode.SelectNodes("serviceName");

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

            foreach (XmlNode item in serviceNameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        serviceNameIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                        IDManager.SetID(serviceNameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        serviceNameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        serviceName = new XsdTypeNormalizedString(item);
                    }
                }
            }


            XmlNodeList statusNodeList = xmlNode.SelectNodes("status");

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

            foreach (XmlNode item in statusNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        statusIDRef = item.Attributes["id"].Name;
                        ServiceStatus ob = ServiceStatus();
                        IDManager.SetID(statusIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        statusIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        status = new ServiceStatus(item);
                    }
                }
            }


            XmlNodeList processingStatusNodeList = xmlNode.SelectNodes("processingStatus");

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

            foreach (XmlNode item in processingStatusNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        processingStatusIDRef = item.Attributes["id"].Name;
                        ServiceProcessingStatus ob = ServiceProcessingStatus();
                        IDManager.SetID(processingStatusIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        processingStatusIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        processingStatus = new ServiceProcessingStatus(item);
                    }
                }
            }


            XmlNodeList advisoryNodeList = xmlNode.SelectNodes("advisory");

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

            foreach (XmlNode item in advisoryNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        advisoryIDRef = item.Attributes["id"].Name;
                        ServiceAdvisory ob = ServiceAdvisory();
                        IDManager.SetID(advisoryIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        advisoryIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        advisory = new ServiceAdvisory(item);
                    }
                }
            }
        }
 public ImplementationSpecification(XmlNode xmlNode)
 {
     XmlNode nameNode = xmlNode.SelectSingleNode("name");
     
     if (nameNode != null)
     {
         if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null) 
         {
             if (nameNode.Attributes["id"] != null) 
             {
                 nameIDRef_ = nameNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(nameNode);
                 IDManager.SetID(nameIDRef_, ob);
             }
             else if (nameNode.Attributes["href"] != null)
             {
                 nameIDRef_ = nameNode.Attributes["href"].Value;
             }
             else
             {
                 name_ = new XsdTypeNormalizedString(nameNode);
             }
         }
         else
         {
             name_ = new XsdTypeNormalizedString(nameNode);
         }
     }
     
 
     XmlNode versionNode = xmlNode.SelectSingleNode("version");
     
     if (versionNode != null)
     {
         if (versionNode.Attributes["href"] != null || versionNode.Attributes["id"] != null) 
         {
             if (versionNode.Attributes["id"] != null) 
             {
                 versionIDRef_ = versionNode.Attributes["id"].Value;
                 ImplementationSpecificationVersion ob = new ImplementationSpecificationVersion(versionNode);
                 IDManager.SetID(versionIDRef_, ob);
             }
             else if (versionNode.Attributes["href"] != null)
             {
                 versionIDRef_ = versionNode.Attributes["href"].Value;
             }
             else
             {
                 version_ = new ImplementationSpecificationVersion(versionNode);
             }
         }
         else
         {
             version_ = new ImplementationSpecificationVersion(versionNode);
         }
     }
     
 
     XmlNode dateNode = xmlNode.SelectSingleNode("date");
     
     if (dateNode != null)
     {
         if (dateNode.Attributes["href"] != null || dateNode.Attributes["id"] != null) 
         {
             if (dateNode.Attributes["id"] != null) 
             {
                 dateIDRef_ = dateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(dateNode);
                 IDManager.SetID(dateIDRef_, ob);
             }
             else if (dateNode.Attributes["href"] != null)
             {
                 dateIDRef_ = dateNode.Attributes["href"].Value;
             }
             else
             {
                 date_ = new XsdTypeDate(dateNode);
             }
         }
         else
         {
             date_ = new XsdTypeDate(dateNode);
         }
     }
     
 
 }
Ejemplo n.º 20
0
        public ParametricAdjustment(XmlNode xmlNode)
        {
            XmlNodeList nameNodeList = xmlNode.SelectNodes("name");

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

            foreach (XmlNode item in nameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        nameIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                        IDManager.SetID(nameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        nameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        name = new XsdTypeNormalizedString(item);
                    }
                }
            }


            XmlNodeList inputUnitsNodeList = xmlNode.SelectNodes("inputUnits");

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

            foreach (XmlNode item in inputUnitsNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        inputUnitsIDRef = item.Attributes["id"].Name;
                        PriceQuoteUnits ob = PriceQuoteUnits();
                        IDManager.SetID(inputUnitsIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        inputUnitsIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        inputUnits = new PriceQuoteUnits(item);
                    }
                }
            }


            XmlNodeList datapointNodeList = xmlNode.SelectNodes("datapoint");

            foreach (XmlNode item in datapointNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        datapointIDRef = item.Attributes["id"].Name;
                        List <ParametricAdjustmentPoint> ob = new List <ParametricAdjustmentPoint>();
                        ob.Add(new ParametricAdjustmentPoint(item));
                        IDManager.SetID(datapointIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        datapointIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        datapoint.Add(new ParametricAdjustmentPoint(item));
                    }
                }
            }
        }
 public ServiceNotification(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode serviceNameNode = xmlNode.SelectSingleNode("serviceName");
     
     if (serviceNameNode != null)
     {
         if (serviceNameNode.Attributes["href"] != null || serviceNameNode.Attributes["id"] != null) 
         {
             if (serviceNameNode.Attributes["id"] != null) 
             {
                 serviceNameIDRef_ = serviceNameNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(serviceNameNode);
                 IDManager.SetID(serviceNameIDRef_, ob);
             }
             else if (serviceNameNode.Attributes["href"] != null)
             {
                 serviceNameIDRef_ = serviceNameNode.Attributes["href"].Value;
             }
             else
             {
                 serviceName_ = new XsdTypeNormalizedString(serviceNameNode);
             }
         }
         else
         {
             serviceName_ = new XsdTypeNormalizedString(serviceNameNode);
         }
     }
     
 
     XmlNode statusNode = xmlNode.SelectSingleNode("status");
     
     if (statusNode != null)
     {
         if (statusNode.Attributes["href"] != null || statusNode.Attributes["id"] != null) 
         {
             if (statusNode.Attributes["id"] != null) 
             {
                 statusIDRef_ = statusNode.Attributes["id"].Value;
                 ServiceStatus ob = new ServiceStatus(statusNode);
                 IDManager.SetID(statusIDRef_, ob);
             }
             else if (statusNode.Attributes["href"] != null)
             {
                 statusIDRef_ = statusNode.Attributes["href"].Value;
             }
             else
             {
                 status_ = new ServiceStatus(statusNode);
             }
         }
         else
         {
             status_ = new ServiceStatus(statusNode);
         }
     }
     
 
     XmlNode processingStatusNode = xmlNode.SelectSingleNode("processingStatus");
     
     if (processingStatusNode != null)
     {
         if (processingStatusNode.Attributes["href"] != null || processingStatusNode.Attributes["id"] != null) 
         {
             if (processingStatusNode.Attributes["id"] != null) 
             {
                 processingStatusIDRef_ = processingStatusNode.Attributes["id"].Value;
                 ServiceProcessingStatus ob = new ServiceProcessingStatus(processingStatusNode);
                 IDManager.SetID(processingStatusIDRef_, ob);
             }
             else if (processingStatusNode.Attributes["href"] != null)
             {
                 processingStatusIDRef_ = processingStatusNode.Attributes["href"].Value;
             }
             else
             {
                 processingStatus_ = new ServiceProcessingStatus(processingStatusNode);
             }
         }
         else
         {
             processingStatus_ = new ServiceProcessingStatus(processingStatusNode);
         }
     }
     
 
     XmlNode advisoryNode = xmlNode.SelectSingleNode("advisory");
     
     if (advisoryNode != null)
     {
         if (advisoryNode.Attributes["href"] != null || advisoryNode.Attributes["id"] != null) 
         {
             if (advisoryNode.Attributes["id"] != null) 
             {
                 advisoryIDRef_ = advisoryNode.Attributes["id"].Value;
                 ServiceAdvisory ob = new ServiceAdvisory(advisoryNode);
                 IDManager.SetID(advisoryIDRef_, ob);
             }
             else if (advisoryNode.Attributes["href"] != null)
             {
                 advisoryIDRef_ = advisoryNode.Attributes["href"].Value;
             }
             else
             {
                 advisory_ = new ServiceAdvisory(advisoryNode);
             }
         }
         else
         {
             advisory_ = new ServiceAdvisory(advisoryNode);
         }
     }
     
 
 }
        public ImplementationSpecification(XmlNode xmlNode)
        {
            XmlNodeList nameNodeList = xmlNode.SelectNodes("name");

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

            foreach (XmlNode item in nameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        nameIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                        IDManager.SetID(nameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        nameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        name = new XsdTypeNormalizedString(item);
                    }
                }
            }


            XmlNodeList versionNodeList = xmlNode.SelectNodes("version");

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

            foreach (XmlNode item in versionNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        versionIDRef = item.Attributes["id"].Name;
                        ImplementationSpecificationVersion ob = ImplementationSpecificationVersion();
                        IDManager.SetID(versionIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        versionIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        version = new ImplementationSpecificationVersion(item);
                    }
                }
            }


            XmlNodeList dateNodeList = xmlNode.SelectNodes("date");

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

            foreach (XmlNode item in dateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        dateIDRef = item.Attributes["id"].Name;
                        XsdTypeDate ob = XsdTypeDate();
                        IDManager.SetID(dateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        dateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        date = new XsdTypeDate(item);
                    }
                }
            }
        }
Ejemplo n.º 23
0
        public ParametricAdjustment(XmlNode xmlNode)
        {
            XmlNode nameNode = xmlNode.SelectSingleNode("name");

            if (nameNode != null)
            {
                if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null)
                {
                    if (nameNode.Attributes["id"] != null)
                    {
                        nameIDRef_ = nameNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(nameNode);
                        IDManager.SetID(nameIDRef_, ob);
                    }
                    else if (nameNode.Attributes["href"] != null)
                    {
                        nameIDRef_ = nameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        name_ = new XsdTypeNormalizedString(nameNode);
                    }
                }
                else
                {
                    name_ = new XsdTypeNormalizedString(nameNode);
                }
            }


            XmlNode inputUnitsNode = xmlNode.SelectSingleNode("inputUnits");

            if (inputUnitsNode != null)
            {
                if (inputUnitsNode.Attributes["href"] != null || inputUnitsNode.Attributes["id"] != null)
                {
                    if (inputUnitsNode.Attributes["id"] != null)
                    {
                        inputUnitsIDRef_ = inputUnitsNode.Attributes["id"].Value;
                        PriceQuoteUnits ob = new PriceQuoteUnits(inputUnitsNode);
                        IDManager.SetID(inputUnitsIDRef_, ob);
                    }
                    else if (inputUnitsNode.Attributes["href"] != null)
                    {
                        inputUnitsIDRef_ = inputUnitsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        inputUnits_ = new PriceQuoteUnits(inputUnitsNode);
                    }
                }
                else
                {
                    inputUnits_ = new PriceQuoteUnits(inputUnitsNode);
                }
            }


            XmlNodeList datapointNodeList = xmlNode.SelectNodes("datapoint");

            if (datapointNodeList != null)
            {
                this.datapoint_ = new List <ParametricAdjustmentPoint>();
                foreach (XmlNode item in datapointNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            datapointIDRef_ = item.Attributes["id"].Value;
                            datapoint_.Add(new ParametricAdjustmentPoint(item));
                            IDManager.SetID(datapointIDRef_, datapoint_[datapoint_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            datapointIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            datapoint_.Add(new ParametricAdjustmentPoint(item));
                        }
                    }
                    else
                    {
                        datapoint_.Add(new ParametricAdjustmentPoint(item));
                    }
                }
            }
        }
        public RequestCollateralAllocation(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList serviceNameNodeList = xmlNode.SelectNodes("serviceName");

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

            foreach (XmlNode item in serviceNameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        serviceNameIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                        IDManager.SetID(serviceNameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        serviceNameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        serviceName = new XsdTypeNormalizedString(item);
                    }
                }
            }


            XmlNodeList collateralGiverPartyReferenceNodeList = xmlNode.SelectNodes("collateralGiverPartyReference");

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

            foreach (XmlNode item in collateralGiverPartyReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        collateralGiverPartyReferenceIDRef = item.Attributes["id"].Name;
                        PartyReference ob = PartyReference();
                        IDManager.SetID(collateralGiverPartyReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        collateralGiverPartyReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        collateralGiverPartyReference = new PartyReference(item);
                    }
                }
            }


            XmlNodeList collateralAllocationNodeList = xmlNode.SelectNodes("collateralAllocation");

            foreach (XmlNode item in collateralAllocationNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        collateralAllocationIDRef = item.Attributes["id"].Name;
                        List <ProposedCollateralAllocation> ob = new List <ProposedCollateralAllocation>();
                        ob.Add(new ProposedCollateralAllocation(item));
                        IDManager.SetID(collateralAllocationIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        collateralAllocationIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        collateralAllocation.Add(new ProposedCollateralAllocation(item));
                    }
                }
            }


            XmlNodeList partyNodeList = xmlNode.SelectNodes("party");

            foreach (XmlNode item in partyNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        partyIDRef = item.Attributes["id"].Name;
                        List <Party> ob = new List <Party>();
                        ob.Add(new Party(item));
                        IDManager.SetID(partyIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        partyIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        party.Add(new Party(item));
                    }
                }
            }


            XmlNodeList accountNodeList = xmlNode.SelectNodes("account");

            foreach (XmlNode item in accountNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        accountIDRef = item.Attributes["id"].Name;
                        List <Account> ob = new List <Account>();
                        ob.Add(new Account(item));
                        IDManager.SetID(accountIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        accountIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        account.Add(new Account(item));
                    }
                }
            }
        }
 public QueryParameter(XmlNode xmlNode)
 {
     XmlNode queryParameterIdNode = xmlNode.SelectSingleNode("queryParameterId");
     
     if (queryParameterIdNode != null)
     {
         if (queryParameterIdNode.Attributes["href"] != null || queryParameterIdNode.Attributes["id"] != null) 
         {
             if (queryParameterIdNode.Attributes["id"] != null) 
             {
                 queryParameterIdIDRef_ = queryParameterIdNode.Attributes["id"].Value;
                 QueryParameterId ob = new QueryParameterId(queryParameterIdNode);
                 IDManager.SetID(queryParameterIdIDRef_, ob);
             }
             else if (queryParameterIdNode.Attributes["href"] != null)
             {
                 queryParameterIdIDRef_ = queryParameterIdNode.Attributes["href"].Value;
             }
             else
             {
                 queryParameterId_ = new QueryParameterId(queryParameterIdNode);
             }
         }
         else
         {
             queryParameterId_ = new QueryParameterId(queryParameterIdNode);
         }
     }
     
 
     XmlNode queryParameterValueNode = xmlNode.SelectSingleNode("queryParameterValue");
     
     if (queryParameterValueNode != null)
     {
         if (queryParameterValueNode.Attributes["href"] != null || queryParameterValueNode.Attributes["id"] != null) 
         {
             if (queryParameterValueNode.Attributes["id"] != null) 
             {
                 queryParameterValueIDRef_ = queryParameterValueNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(queryParameterValueNode);
                 IDManager.SetID(queryParameterValueIDRef_, ob);
             }
             else if (queryParameterValueNode.Attributes["href"] != null)
             {
                 queryParameterValueIDRef_ = queryParameterValueNode.Attributes["href"].Value;
             }
             else
             {
                 queryParameterValue_ = new XsdTypeNormalizedString(queryParameterValueNode);
             }
         }
         else
         {
             queryParameterValue_ = new XsdTypeNormalizedString(queryParameterValueNode);
         }
     }
     
 
     XmlNode queryParameterOperatorNode = xmlNode.SelectSingleNode("queryParameterOperator");
     
     if (queryParameterOperatorNode != null)
     {
         if (queryParameterOperatorNode.Attributes["href"] != null || queryParameterOperatorNode.Attributes["id"] != null) 
         {
             if (queryParameterOperatorNode.Attributes["id"] != null) 
             {
                 queryParameterOperatorIDRef_ = queryParameterOperatorNode.Attributes["id"].Value;
                 QueryParameterOperator ob = new QueryParameterOperator(queryParameterOperatorNode);
                 IDManager.SetID(queryParameterOperatorIDRef_, ob);
             }
             else if (queryParameterOperatorNode.Attributes["href"] != null)
             {
                 queryParameterOperatorIDRef_ = queryParameterOperatorNode.Attributes["href"].Value;
             }
             else
             {
                 queryParameterOperator_ = new QueryParameterOperator(queryParameterOperatorNode);
             }
         }
         else
         {
             queryParameterOperator_ = new QueryParameterOperator(queryParameterOperatorNode);
         }
     }
     
 
 }
        public RequestCollateralAllocation(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode serviceNameNode = xmlNode.SelectSingleNode("serviceName");

            if (serviceNameNode != null)
            {
                if (serviceNameNode.Attributes["href"] != null || serviceNameNode.Attributes["id"] != null)
                {
                    if (serviceNameNode.Attributes["id"] != null)
                    {
                        serviceNameIDRef_ = serviceNameNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(serviceNameNode);
                        IDManager.SetID(serviceNameIDRef_, ob);
                    }
                    else if (serviceNameNode.Attributes["href"] != null)
                    {
                        serviceNameIDRef_ = serviceNameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        serviceName_ = new XsdTypeNormalizedString(serviceNameNode);
                    }
                }
                else
                {
                    serviceName_ = new XsdTypeNormalizedString(serviceNameNode);
                }
            }


            XmlNode collateralGiverPartyReferenceNode = xmlNode.SelectSingleNode("collateralGiverPartyReference");

            if (collateralGiverPartyReferenceNode != null)
            {
                if (collateralGiverPartyReferenceNode.Attributes["href"] != null || collateralGiverPartyReferenceNode.Attributes["id"] != null)
                {
                    if (collateralGiverPartyReferenceNode.Attributes["id"] != null)
                    {
                        collateralGiverPartyReferenceIDRef_ = collateralGiverPartyReferenceNode.Attributes["id"].Value;
                        PartyReference ob = new PartyReference(collateralGiverPartyReferenceNode);
                        IDManager.SetID(collateralGiverPartyReferenceIDRef_, ob);
                    }
                    else if (collateralGiverPartyReferenceNode.Attributes["href"] != null)
                    {
                        collateralGiverPartyReferenceIDRef_ = collateralGiverPartyReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        collateralGiverPartyReference_ = new PartyReference(collateralGiverPartyReferenceNode);
                    }
                }
                else
                {
                    collateralGiverPartyReference_ = new PartyReference(collateralGiverPartyReferenceNode);
                }
            }


            XmlNodeList collateralAllocationNodeList = xmlNode.SelectNodes("collateralAllocation");

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


            XmlNodeList partyNodeList = xmlNode.SelectNodes("party");

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


            XmlNodeList accountNodeList = xmlNode.SelectNodes("account");

            if (accountNodeList != null)
            {
                this.account_ = new List <Account>();
                foreach (XmlNode item in accountNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            accountIDRef_ = item.Attributes["id"].Value;
                            account_.Add(new Account(item));
                            IDManager.SetID(accountIDRef_, account_[account_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            accountIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            account_.Add(new Account(item));
                        }
                    }
                    else
                    {
                        account_.Add(new Account(item));
                    }
                }
            }
        }
Ejemplo n.º 27
0
        public CashflowNotional(XmlNode xmlNode)
        {
            XmlNodeList currencyNodeList = xmlNode.SelectNodes("currency");

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

            foreach (XmlNode item in currencyNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        currencyIDRef = item.Attributes["id"].Name;
                        Currency ob = Currency();
                        IDManager.SetID(currencyIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        currencyIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        currency = new Currency(item);
                    }
                }
            }


            XmlNodeList unitsNodeList = xmlNode.SelectNodes("units");

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

            foreach (XmlNode item in unitsNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        unitsIDRef = item.Attributes["id"].Name;
                        XsdTypeNormalizedString ob = XsdTypeNormalizedString();
                        IDManager.SetID(unitsIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        unitsIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        units = new XsdTypeNormalizedString(item);
                    }
                }
            }


            XmlNodeList amountNodeList = xmlNode.SelectNodes("amount");

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

            foreach (XmlNode item in amountNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        amountIDRef = item.Attributes["id"].Name;
                        XsdTypeDecimal ob = XsdTypeDecimal();
                        IDManager.SetID(amountIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        amountIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        amount = new XsdTypeDecimal(item);
                    }
                }
            }
        }
 public CashflowNotional(XmlNode xmlNode)
 {
     XmlNode currencyNode = xmlNode.SelectSingleNode("currency");
     
     if (currencyNode != null)
     {
         if (currencyNode.Attributes["href"] != null || currencyNode.Attributes["id"] != null) 
         {
             if (currencyNode.Attributes["id"] != null) 
             {
                 currencyIDRef_ = currencyNode.Attributes["id"].Value;
                 Currency ob = new Currency(currencyNode);
                 IDManager.SetID(currencyIDRef_, ob);
             }
             else if (currencyNode.Attributes["href"] != null)
             {
                 currencyIDRef_ = currencyNode.Attributes["href"].Value;
             }
             else
             {
                 currency_ = new Currency(currencyNode);
             }
         }
         else
         {
             currency_ = new Currency(currencyNode);
         }
     }
     
 
     XmlNode unitsNode = xmlNode.SelectSingleNode("units");
     
     if (unitsNode != null)
     {
         if (unitsNode.Attributes["href"] != null || unitsNode.Attributes["id"] != null) 
         {
             if (unitsNode.Attributes["id"] != null) 
             {
                 unitsIDRef_ = unitsNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(unitsNode);
                 IDManager.SetID(unitsIDRef_, ob);
             }
             else if (unitsNode.Attributes["href"] != null)
             {
                 unitsIDRef_ = unitsNode.Attributes["href"].Value;
             }
             else
             {
                 units_ = new XsdTypeNormalizedString(unitsNode);
             }
         }
         else
         {
             units_ = new XsdTypeNormalizedString(unitsNode);
         }
     }
     
 
     XmlNode amountNode = xmlNode.SelectSingleNode("amount");
     
     if (amountNode != null)
     {
         if (amountNode.Attributes["href"] != null || amountNode.Attributes["id"] != null) 
         {
             if (amountNode.Attributes["id"] != null) 
             {
                 amountIDRef_ = amountNode.Attributes["id"].Value;
                 XsdTypeDecimal ob = new XsdTypeDecimal(amountNode);
                 IDManager.SetID(amountIDRef_, ob);
             }
             else if (amountNode.Attributes["href"] != null)
             {
                 amountIDRef_ = amountNode.Attributes["href"].Value;
             }
             else
             {
                 amount_ = new XsdTypeDecimal(amountNode);
             }
         }
         else
         {
             amount_ = new XsdTypeDecimal(amountNode);
         }
     }
     
 
 }
Ejemplo n.º 29
0
        public Resource(XmlNode xmlNode)
        {
            XmlNode resourceIdNode = xmlNode.SelectSingleNode("resourceId");

            if (resourceIdNode != null)
            {
                if (resourceIdNode.Attributes["href"] != null || resourceIdNode.Attributes["id"] != null)
                {
                    if (resourceIdNode.Attributes["id"] != null)
                    {
                        resourceIdIDRef_ = resourceIdNode.Attributes["id"].Value;
                        ResourceId ob = new ResourceId(resourceIdNode);
                        IDManager.SetID(resourceIdIDRef_, ob);
                    }
                    else if (resourceIdNode.Attributes["href"] != null)
                    {
                        resourceIdIDRef_ = resourceIdNode.Attributes["href"].Value;
                    }
                    else
                    {
                        resourceId_ = new ResourceId(resourceIdNode);
                    }
                }
                else
                {
                    resourceId_ = new ResourceId(resourceIdNode);
                }
            }


            XmlNode resourceTypeNode = xmlNode.SelectSingleNode("resourceType");

            if (resourceTypeNode != null)
            {
                if (resourceTypeNode.Attributes["href"] != null || resourceTypeNode.Attributes["id"] != null)
                {
                    if (resourceTypeNode.Attributes["id"] != null)
                    {
                        resourceTypeIDRef_ = resourceTypeNode.Attributes["id"].Value;
                        ResourceType ob = new ResourceType(resourceTypeNode);
                        IDManager.SetID(resourceTypeIDRef_, ob);
                    }
                    else if (resourceTypeNode.Attributes["href"] != null)
                    {
                        resourceTypeIDRef_ = resourceTypeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        resourceType_ = new ResourceType(resourceTypeNode);
                    }
                }
                else
                {
                    resourceType_ = new ResourceType(resourceTypeNode);
                }
            }


            XmlNode languageNode = xmlNode.SelectSingleNode("language");

            if (languageNode != null)
            {
                if (languageNode.Attributes["href"] != null || languageNode.Attributes["id"] != null)
                {
                    if (languageNode.Attributes["id"] != null)
                    {
                        languageIDRef_ = languageNode.Attributes["id"].Value;
                        Language ob = new Language(languageNode);
                        IDManager.SetID(languageIDRef_, ob);
                    }
                    else if (languageNode.Attributes["href"] != null)
                    {
                        languageIDRef_ = languageNode.Attributes["href"].Value;
                    }
                    else
                    {
                        language_ = new Language(languageNode);
                    }
                }
                else
                {
                    language_ = new Language(languageNode);
                }
            }


            XmlNode sizeInBytesNode = xmlNode.SelectSingleNode("sizeInBytes");

            if (sizeInBytesNode != null)
            {
                if (sizeInBytesNode.Attributes["href"] != null || sizeInBytesNode.Attributes["id"] != null)
                {
                    if (sizeInBytesNode.Attributes["id"] != null)
                    {
                        sizeInBytesIDRef_ = sizeInBytesNode.Attributes["id"].Value;
                        XsdTypeDecimal ob = new XsdTypeDecimal(sizeInBytesNode);
                        IDManager.SetID(sizeInBytesIDRef_, ob);
                    }
                    else if (sizeInBytesNode.Attributes["href"] != null)
                    {
                        sizeInBytesIDRef_ = sizeInBytesNode.Attributes["href"].Value;
                    }
                    else
                    {
                        sizeInBytes_ = new XsdTypeDecimal(sizeInBytesNode);
                    }
                }
                else
                {
                    sizeInBytes_ = new XsdTypeDecimal(sizeInBytesNode);
                }
            }


            XmlNode lengthNode = xmlNode.SelectSingleNode("length");

            if (lengthNode != null)
            {
                if (lengthNode.Attributes["href"] != null || lengthNode.Attributes["id"] != null)
                {
                    if (lengthNode.Attributes["id"] != null)
                    {
                        lengthIDRef_ = lengthNode.Attributes["id"].Value;
                        ResourceLength ob = new ResourceLength(lengthNode);
                        IDManager.SetID(lengthIDRef_, ob);
                    }
                    else if (lengthNode.Attributes["href"] != null)
                    {
                        lengthIDRef_ = lengthNode.Attributes["href"].Value;
                    }
                    else
                    {
                        length_ = new ResourceLength(lengthNode);
                    }
                }
                else
                {
                    length_ = new ResourceLength(lengthNode);
                }
            }


            XmlNode mimeTypeNode = xmlNode.SelectSingleNode("mimeType");

            if (mimeTypeNode != null)
            {
                if (mimeTypeNode.Attributes["href"] != null || mimeTypeNode.Attributes["id"] != null)
                {
                    if (mimeTypeNode.Attributes["id"] != null)
                    {
                        mimeTypeIDRef_ = mimeTypeNode.Attributes["id"].Value;
                        MimeType ob = new MimeType(mimeTypeNode);
                        IDManager.SetID(mimeTypeIDRef_, ob);
                    }
                    else if (mimeTypeNode.Attributes["href"] != null)
                    {
                        mimeTypeIDRef_ = mimeTypeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        mimeType_ = new MimeType(mimeTypeNode);
                    }
                }
                else
                {
                    mimeType_ = new MimeType(mimeTypeNode);
                }
            }


            XmlNode nameNode = xmlNode.SelectSingleNode("name");

            if (nameNode != null)
            {
                if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null)
                {
                    if (nameNode.Attributes["id"] != null)
                    {
                        nameIDRef_ = nameNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(nameNode);
                        IDManager.SetID(nameIDRef_, ob);
                    }
                    else if (nameNode.Attributes["href"] != null)
                    {
                        nameIDRef_ = nameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        name_ = new XsdTypeNormalizedString(nameNode);
                    }
                }
                else
                {
                    name_ = new XsdTypeNormalizedString(nameNode);
                }
            }


            XmlNode commentsNode = xmlNode.SelectSingleNode("comments");

            if (commentsNode != null)
            {
                if (commentsNode.Attributes["href"] != null || commentsNode.Attributes["id"] != null)
                {
                    if (commentsNode.Attributes["id"] != null)
                    {
                        commentsIDRef_ = commentsNode.Attributes["id"].Value;
                        XsdTypeString ob = new XsdTypeString(commentsNode);
                        IDManager.SetID(commentsIDRef_, ob);
                    }
                    else if (commentsNode.Attributes["href"] != null)
                    {
                        commentsIDRef_ = commentsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        comments_ = new XsdTypeString(commentsNode);
                    }
                }
                else
                {
                    comments_ = new XsdTypeString(commentsNode);
                }
            }


            XmlNode stringNode = xmlNode.SelectSingleNode("string");

            if (stringNode != null)
            {
                if (stringNode.Attributes["href"] != null || stringNode.Attributes["id"] != null)
                {
                    if (stringNode.Attributes["id"] != null)
                    {
                        stringIDRef_ = stringNode.Attributes["id"].Value;
                        XsdTypeString ob = new XsdTypeString(stringNode);
                        IDManager.SetID(stringIDRef_, ob);
                    }
                    else if (stringNode.Attributes["href"] != null)
                    {
                        stringIDRef_ = stringNode.Attributes["href"].Value;
                    }
                    else
                    {
                        string_ = new XsdTypeString(stringNode);
                    }
                }
                else
                {
                    string_ = new XsdTypeString(stringNode);
                }
            }


            XmlNode hexadecimalBinaryNode = xmlNode.SelectSingleNode("hexadecimalBinary");

            if (hexadecimalBinaryNode != null)
            {
                if (hexadecimalBinaryNode.Attributes["href"] != null || hexadecimalBinaryNode.Attributes["id"] != null)
                {
                    if (hexadecimalBinaryNode.Attributes["id"] != null)
                    {
                        hexadecimalBinaryIDRef_ = hexadecimalBinaryNode.Attributes["id"].Value;
                        XsdTypeHexBinary ob = new XsdTypeHexBinary(hexadecimalBinaryNode);
                        IDManager.SetID(hexadecimalBinaryIDRef_, ob);
                    }
                    else if (hexadecimalBinaryNode.Attributes["href"] != null)
                    {
                        hexadecimalBinaryIDRef_ = hexadecimalBinaryNode.Attributes["href"].Value;
                    }
                    else
                    {
                        hexadecimalBinary_ = new XsdTypeHexBinary(hexadecimalBinaryNode);
                    }
                }
                else
                {
                    hexadecimalBinary_ = new XsdTypeHexBinary(hexadecimalBinaryNode);
                }
            }


            XmlNode base64BinaryNode = xmlNode.SelectSingleNode("base64Binary");

            if (base64BinaryNode != null)
            {
                if (base64BinaryNode.Attributes["href"] != null || base64BinaryNode.Attributes["id"] != null)
                {
                    if (base64BinaryNode.Attributes["id"] != null)
                    {
                        base64BinaryIDRef_ = base64BinaryNode.Attributes["id"].Value;
                        XsdTypeBase64Binary ob = new XsdTypeBase64Binary(base64BinaryNode);
                        IDManager.SetID(base64BinaryIDRef_, ob);
                    }
                    else if (base64BinaryNode.Attributes["href"] != null)
                    {
                        base64BinaryIDRef_ = base64BinaryNode.Attributes["href"].Value;
                    }
                    else
                    {
                        base64Binary_ = new XsdTypeBase64Binary(base64BinaryNode);
                    }
                }
                else
                {
                    base64Binary_ = new XsdTypeBase64Binary(base64BinaryNode);
                }
            }


            XmlNode urlNode = xmlNode.SelectSingleNode("url");

            if (urlNode != null)
            {
                if (urlNode.Attributes["href"] != null || urlNode.Attributes["id"] != null)
                {
                    if (urlNode.Attributes["id"] != null)
                    {
                        urlIDRef_ = urlNode.Attributes["id"].Value;
                        XsdTypeAnyURI ob = new XsdTypeAnyURI(urlNode);
                        IDManager.SetID(urlIDRef_, ob);
                    }
                    else if (urlNode.Attributes["href"] != null)
                    {
                        urlIDRef_ = urlNode.Attributes["href"].Value;
                    }
                    else
                    {
                        url_ = new XsdTypeAnyURI(urlNode);
                    }
                }
                else
                {
                    url_ = new XsdTypeAnyURI(urlNode);
                }
            }
        }
Ejemplo n.º 30
0
        public ServiceNotification(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode serviceNameNode = xmlNode.SelectSingleNode("serviceName");

            if (serviceNameNode != null)
            {
                if (serviceNameNode.Attributes["href"] != null || serviceNameNode.Attributes["id"] != null)
                {
                    if (serviceNameNode.Attributes["id"] != null)
                    {
                        serviceNameIDRef_ = serviceNameNode.Attributes["id"].Value;
                        XsdTypeNormalizedString ob = new XsdTypeNormalizedString(serviceNameNode);
                        IDManager.SetID(serviceNameIDRef_, ob);
                    }
                    else if (serviceNameNode.Attributes["href"] != null)
                    {
                        serviceNameIDRef_ = serviceNameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        serviceName_ = new XsdTypeNormalizedString(serviceNameNode);
                    }
                }
                else
                {
                    serviceName_ = new XsdTypeNormalizedString(serviceNameNode);
                }
            }


            XmlNode statusNode = xmlNode.SelectSingleNode("status");

            if (statusNode != null)
            {
                if (statusNode.Attributes["href"] != null || statusNode.Attributes["id"] != null)
                {
                    if (statusNode.Attributes["id"] != null)
                    {
                        statusIDRef_ = statusNode.Attributes["id"].Value;
                        ServiceStatus ob = new ServiceStatus(statusNode);
                        IDManager.SetID(statusIDRef_, ob);
                    }
                    else if (statusNode.Attributes["href"] != null)
                    {
                        statusIDRef_ = statusNode.Attributes["href"].Value;
                    }
                    else
                    {
                        status_ = new ServiceStatus(statusNode);
                    }
                }
                else
                {
                    status_ = new ServiceStatus(statusNode);
                }
            }


            XmlNode processingStatusNode = xmlNode.SelectSingleNode("processingStatus");

            if (processingStatusNode != null)
            {
                if (processingStatusNode.Attributes["href"] != null || processingStatusNode.Attributes["id"] != null)
                {
                    if (processingStatusNode.Attributes["id"] != null)
                    {
                        processingStatusIDRef_ = processingStatusNode.Attributes["id"].Value;
                        ServiceProcessingStatus ob = new ServiceProcessingStatus(processingStatusNode);
                        IDManager.SetID(processingStatusIDRef_, ob);
                    }
                    else if (processingStatusNode.Attributes["href"] != null)
                    {
                        processingStatusIDRef_ = processingStatusNode.Attributes["href"].Value;
                    }
                    else
                    {
                        processingStatus_ = new ServiceProcessingStatus(processingStatusNode);
                    }
                }
                else
                {
                    processingStatus_ = new ServiceProcessingStatus(processingStatusNode);
                }
            }


            XmlNode advisoryNode = xmlNode.SelectSingleNode("advisory");

            if (advisoryNode != null)
            {
                if (advisoryNode.Attributes["href"] != null || advisoryNode.Attributes["id"] != null)
                {
                    if (advisoryNode.Attributes["id"] != null)
                    {
                        advisoryIDRef_ = advisoryNode.Attributes["id"].Value;
                        ServiceAdvisory ob = new ServiceAdvisory(advisoryNode);
                        IDManager.SetID(advisoryIDRef_, ob);
                    }
                    else if (advisoryNode.Attributes["href"] != null)
                    {
                        advisoryIDRef_ = advisoryNode.Attributes["href"].Value;
                    }
                    else
                    {
                        advisory_ = new ServiceAdvisory(advisoryNode);
                    }
                }
                else
                {
                    advisory_ = new ServiceAdvisory(advisoryNode);
                }
            }
        }
 public ParametricAdjustment(XmlNode xmlNode)
 {
     XmlNode nameNode = xmlNode.SelectSingleNode("name");
     
     if (nameNode != null)
     {
         if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null) 
         {
             if (nameNode.Attributes["id"] != null) 
             {
                 nameIDRef_ = nameNode.Attributes["id"].Value;
                 XsdTypeNormalizedString ob = new XsdTypeNormalizedString(nameNode);
                 IDManager.SetID(nameIDRef_, ob);
             }
             else if (nameNode.Attributes["href"] != null)
             {
                 nameIDRef_ = nameNode.Attributes["href"].Value;
             }
             else
             {
                 name_ = new XsdTypeNormalizedString(nameNode);
             }
         }
         else
         {
             name_ = new XsdTypeNormalizedString(nameNode);
         }
     }
     
 
     XmlNode inputUnitsNode = xmlNode.SelectSingleNode("inputUnits");
     
     if (inputUnitsNode != null)
     {
         if (inputUnitsNode.Attributes["href"] != null || inputUnitsNode.Attributes["id"] != null) 
         {
             if (inputUnitsNode.Attributes["id"] != null) 
             {
                 inputUnitsIDRef_ = inputUnitsNode.Attributes["id"].Value;
                 PriceQuoteUnits ob = new PriceQuoteUnits(inputUnitsNode);
                 IDManager.SetID(inputUnitsIDRef_, ob);
             }
             else if (inputUnitsNode.Attributes["href"] != null)
             {
                 inputUnitsIDRef_ = inputUnitsNode.Attributes["href"].Value;
             }
             else
             {
                 inputUnits_ = new PriceQuoteUnits(inputUnitsNode);
             }
         }
         else
         {
             inputUnits_ = new PriceQuoteUnits(inputUnitsNode);
         }
     }
     
 
     XmlNodeList datapointNodeList = xmlNode.SelectNodes("datapoint");
     
     if (datapointNodeList != null)
     {
         this.datapoint_ = new List<ParametricAdjustmentPoint>();
         foreach (XmlNode item in datapointNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     datapointIDRef_ = item.Attributes["id"].Value;
                     datapoint_.Add(new ParametricAdjustmentPoint(item));
                     IDManager.SetID(datapointIDRef_, datapoint_[datapoint_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     datapointIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 datapoint_.Add(new ParametricAdjustmentPoint(item));
                 }
             }
             else
             {
                 datapoint_.Add(new ParametricAdjustmentPoint(item));
             }
         }
     }
     
 
 }