public VersionedContractId(XmlNode xmlNode) { XmlNode contractIdNode = xmlNode.SelectSingleNode("contractId"); if (contractIdNode != null) { if (contractIdNode.Attributes["href"] != null || contractIdNode.Attributes["id"] != null) { if (contractIdNode.Attributes["id"] != null) { contractIdIDRef_ = contractIdNode.Attributes["id"].Value; ContractId ob = new ContractId(contractIdNode); IDManager.SetID(contractIdIDRef_, ob); } else if (contractIdNode.Attributes["href"] != null) { contractIdIDRef_ = contractIdNode.Attributes["href"].Value; } else { contractId_ = new ContractId(contractIdNode); } } else { contractId_ = new ContractId(contractIdNode); } } 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; XsdTypeNonNegativeInteger ob = new XsdTypeNonNegativeInteger(versionNode); IDManager.SetID(versionIDRef_, ob); } else if (versionNode.Attributes["href"] != null) { versionIDRef_ = versionNode.Attributes["href"].Value; } else { version_ = new XsdTypeNonNegativeInteger(versionNode); } } else { version_ = new XsdTypeNonNegativeInteger(versionNode); } } XmlNode effectiveDateNode = xmlNode.SelectSingleNode("effectiveDate"); if (effectiveDateNode != null) { if (effectiveDateNode.Attributes["href"] != null || effectiveDateNode.Attributes["id"] != null) { if (effectiveDateNode.Attributes["id"] != null) { effectiveDateIDRef_ = effectiveDateNode.Attributes["id"].Value; IdentifiedDate ob = new IdentifiedDate(effectiveDateNode); IDManager.SetID(effectiveDateIDRef_, ob); } else if (effectiveDateNode.Attributes["href"] != null) { effectiveDateIDRef_ = effectiveDateNode.Attributes["href"].Value; } else { effectiveDate_ = new IdentifiedDate(effectiveDateNode); } } else { effectiveDate_ = new IdentifiedDate(effectiveDateNode); } } }
public VersionedContractId(XmlNode xmlNode) { XmlNodeList contractIdNodeList = xmlNode.SelectNodes("contractId"); if (contractIdNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in contractIdNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { contractIdIDRef = item.Attributes["id"].Name; ContractId ob = ContractId(); IDManager.SetID(contractIdIDRef, ob); } else if (item.Attributes.ToString() == "href") { contractIdIDRef = item.Attributes["href"].Name; } else { contractId = new ContractId(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; XsdTypeNonNegativeInteger ob = XsdTypeNonNegativeInteger(); IDManager.SetID(versionIDRef, ob); } else if (item.Attributes.ToString() == "href") { versionIDRef = item.Attributes["href"].Name; } else { version = new XsdTypeNonNegativeInteger(item); } } } XmlNodeList effectiveDateNodeList = xmlNode.SelectNodes("effectiveDate"); if (effectiveDateNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in effectiveDateNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { effectiveDateIDRef = item.Attributes["id"].Name; IdentifiedDate ob = IdentifiedDate(); IDManager.SetID(effectiveDateIDRef, ob); } else if (item.Attributes.ToString() == "href") { effectiveDateIDRef = item.Attributes["href"].Name; } else { effectiveDate = new IdentifiedDate(item); } } } }
public VersionedContractId(XmlNode xmlNode) { XmlNode contractIdNode = xmlNode.SelectSingleNode("contractId"); if (contractIdNode != null) { if (contractIdNode.Attributes["href"] != null || contractIdNode.Attributes["id"] != null) { if (contractIdNode.Attributes["id"] != null) { contractIdIDRef_ = contractIdNode.Attributes["id"].Value; ContractId ob = new ContractId(contractIdNode); IDManager.SetID(contractIdIDRef_, ob); } else if (contractIdNode.Attributes["href"] != null) { contractIdIDRef_ = contractIdNode.Attributes["href"].Value; } else { contractId_ = new ContractId(contractIdNode); } } else { contractId_ = new ContractId(contractIdNode); } } 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; XsdTypeNonNegativeInteger ob = new XsdTypeNonNegativeInteger(versionNode); IDManager.SetID(versionIDRef_, ob); } else if (versionNode.Attributes["href"] != null) { versionIDRef_ = versionNode.Attributes["href"].Value; } else { version_ = new XsdTypeNonNegativeInteger(versionNode); } } else { version_ = new XsdTypeNonNegativeInteger(versionNode); } } XmlNode effectiveDateNode = xmlNode.SelectSingleNode("effectiveDate"); if (effectiveDateNode != null) { if (effectiveDateNode.Attributes["href"] != null || effectiveDateNode.Attributes["id"] != null) { if (effectiveDateNode.Attributes["id"] != null) { effectiveDateIDRef_ = effectiveDateNode.Attributes["id"].Value; IdentifiedDate ob = new IdentifiedDate(effectiveDateNode); IDManager.SetID(effectiveDateIDRef_, ob); } else if (effectiveDateNode.Attributes["href"] != null) { effectiveDateIDRef_ = effectiveDateNode.Attributes["href"].Value; } else { effectiveDate_ = new IdentifiedDate(effectiveDateNode); } } else { effectiveDate_ = new IdentifiedDate(effectiveDateNode); } } }
public VersionedContractId(XmlNode xmlNode) { XmlNodeList contractIdNodeList = xmlNode.SelectNodes("contractId"); if (contractIdNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in contractIdNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { contractIdIDRef = item.Attributes["id"].Name; ContractId ob = ContractId(); IDManager.SetID(contractIdIDRef, ob); } else if (item.Attributes.ToString() == "href") { contractIdIDRef = item.Attributes["href"].Name; } else { contractId = new ContractId(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; XsdTypeNonNegativeInteger ob = XsdTypeNonNegativeInteger(); IDManager.SetID(versionIDRef, ob); } else if (item.Attributes.ToString() == "href") { versionIDRef = item.Attributes["href"].Name; } else { version = new XsdTypeNonNegativeInteger(item); } } } XmlNodeList effectiveDateNodeList = xmlNode.SelectNodes("effectiveDate"); if (effectiveDateNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in effectiveDateNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { effectiveDateIDRef = item.Attributes["id"].Name; IdentifiedDate ob = IdentifiedDate(); IDManager.SetID(effectiveDateIDRef, ob); } else if (item.Attributes.ToString() == "href") { effectiveDateIDRef = item.Attributes["href"].Name; } else { effectiveDate = new IdentifiedDate(item); } } } }