public JointFunctionEvent(XmlNode xmlNode) { XmlNodeList jointTypeNodeList = xmlNode.SelectNodes("jointType"); if (jointTypeNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in jointTypeNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { jointTypeIDRef = item.Attributes["id"].Name; JointTypeEnum ob = JointTypeEnum(); IDManager.SetID(jointTypeIDRef, ob); } else if (item.Attributes.ToString() == "href") { jointTypeIDRef = item.Attributes["href"].Name; } else { jointType = new JointTypeEnum(item); } } } XmlNodeList functionsNodeList = xmlNode.SelectNodes("functions"); if (functionsNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in functionsNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { functionsIDRef = item.Attributes["id"].Name; Functions ob = Functions(); IDManager.SetID(functionsIDRef, ob); } else if (item.Attributes.ToString() == "href") { functionsIDRef = item.Attributes["href"].Name; } else { functions = new Functions(item); } } } }
public JointFunctionEvent(XmlNode xmlNode) { XmlNode jointTypeNode = xmlNode.SelectSingleNode("jointType"); if (jointTypeNode != null) { if (jointTypeNode.Attributes["href"] != null || jointTypeNode.Attributes["id"] != null) { if (jointTypeNode.Attributes["id"] != null) { jointTypeIDRef_ = jointTypeNode.Attributes["id"].Value; JointTypeEnum ob = new JointTypeEnum(jointTypeNode); IDManager.SetID(jointTypeIDRef_, ob); } else if (jointTypeNode.Attributes["href"] != null) { jointTypeIDRef_ = jointTypeNode.Attributes["href"].Value; } else { jointType_ = new JointTypeEnum(jointTypeNode); } } else { jointType_ = new JointTypeEnum(jointTypeNode); } } XmlNode functionsNode = xmlNode.SelectSingleNode("functions"); if (functionsNode != null) { if (functionsNode.Attributes["href"] != null || functionsNode.Attributes["id"] != null) { if (functionsNode.Attributes["id"] != null) { functionsIDRef_ = functionsNode.Attributes["id"].Value; Functions ob = new Functions(functionsNode); IDManager.SetID(functionsIDRef_, ob); } else if (functionsNode.Attributes["href"] != null) { functionsIDRef_ = functionsNode.Attributes["href"].Value; } else { functions_ = new Functions(functionsNode); } } else { functions_ = new Functions(functionsNode); } } }
public JointSubEvent(XmlNode xmlNode) { XmlNodeList jointTypeNodeList = xmlNode.SelectNodes("jointType"); if (jointTypeNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in jointTypeNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { jointTypeIDRef = item.Attributes["id"].Name; JointTypeEnum ob = JointTypeEnum(); IDManager.SetID(jointTypeIDRef, ob); } else if (item.Attributes.ToString() == "href") { jointTypeIDRef = item.Attributes["href"].Name; } else { jointType = new JointTypeEnum(item); } } } XmlNodeList subEventNodeList = xmlNode.SelectNodes("subEvent"); foreach (XmlNode item in subEventNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { subEventIDRef = item.Attributes["id"].Name; List <SubEvent> ob = new List <SubEvent>(); ob.Add(new SubEvent(item)); IDManager.SetID(subEventIDRef, ob); } else if (item.Attributes.ToString() == "href") { subEventIDRef = item.Attributes["href"].Name; } else { subEvent.Add(new SubEvent(item)); } } } }
public JointSubEvent(XmlNode xmlNode) { XmlNode jointTypeNode = xmlNode.SelectSingleNode("jointType"); if (jointTypeNode != null) { if (jointTypeNode.Attributes["href"] != null || jointTypeNode.Attributes["id"] != null) { if (jointTypeNode.Attributes["id"] != null) { jointTypeIDRef_ = jointTypeNode.Attributes["id"].Value; JointTypeEnum ob = new JointTypeEnum(jointTypeNode); IDManager.SetID(jointTypeIDRef_, ob); } else if (jointTypeNode.Attributes["href"] != null) { jointTypeIDRef_ = jointTypeNode.Attributes["href"].Value; } else { jointType_ = new JointTypeEnum(jointTypeNode); } } else { jointType_ = new JointTypeEnum(jointTypeNode); } } XmlNodeList subEventNodeList = xmlNode.SelectNodes("subEvent"); if (subEventNodeList != null) { this.subEvent_ = new List<SubEvent>(); foreach (XmlNode item in subEventNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { subEventIDRef_ = item.Attributes["id"].Value; subEvent_.Add(new SubEvent(item)); IDManager.SetID(subEventIDRef_, subEvent_[subEvent_.Count - 1 ]); } else if (item.Attributes["href"] != null) { subEventIDRef_ = item.Attributes["href"].Value; } else { subEvent_.Add(new SubEvent(item)); } } else { subEvent_.Add(new SubEvent(item)); } } } }
public JointFSubEvent(XmlNode xmlNode) { XmlNode jointTypeNode = xmlNode.SelectSingleNode("jointType"); if (jointTypeNode != null) { if (jointTypeNode.Attributes["href"] != null || jointTypeNode.Attributes["id"] != null) { if (jointTypeNode.Attributes["id"] != null) { jointTypeIDRef_ = jointTypeNode.Attributes["id"].Value; JointTypeEnum ob = new JointTypeEnum(jointTypeNode); IDManager.SetID(jointTypeIDRef_, ob); } else if (jointTypeNode.Attributes["href"] != null) { jointTypeIDRef_ = jointTypeNode.Attributes["href"].Value; } else { jointType_ = new JointTypeEnum(jointTypeNode); } } else { jointType_ = new JointTypeEnum(jointTypeNode); } } XmlNode mainEventNode = xmlNode.SelectSingleNode("mainEvent"); if (mainEventNode != null) { if (mainEventNode.Attributes["href"] != null || mainEventNode.Attributes["id"] != null) { if (mainEventNode.Attributes["id"] != null) { mainEventIDRef_ = mainEventNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(mainEventNode); IDManager.SetID(mainEventIDRef_, ob); } else if (mainEventNode.Attributes["href"] != null) { mainEventIDRef_ = mainEventNode.Attributes["href"].Value; } else { mainEvent_ = new XsdTypeBoolean(mainEventNode); } } else { mainEvent_ = new XsdTypeBoolean(mainEventNode); } } XmlNode subEventNode = xmlNode.SelectSingleNode("subEvent"); if (subEventNode != null) { if (subEventNode.Attributes["href"] != null || subEventNode.Attributes["id"] != null) { if (subEventNode.Attributes["id"] != null) { subEventIDRef_ = subEventNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(subEventNode); IDManager.SetID(subEventIDRef_, ob); } else if (subEventNode.Attributes["href"] != null) { subEventIDRef_ = subEventNode.Attributes["href"].Value; } else { subEvent_ = new XsdTypeBoolean(subEventNode); } } else { subEvent_ = new XsdTypeBoolean(subEventNode); } } }
public JointSubEvent(XmlNode xmlNode) { XmlNode jointTypeNode = xmlNode.SelectSingleNode("jointType"); if (jointTypeNode != null) { if (jointTypeNode.Attributes["href"] != null || jointTypeNode.Attributes["id"] != null) { if (jointTypeNode.Attributes["id"] != null) { jointTypeIDRef_ = jointTypeNode.Attributes["id"].Value; JointTypeEnum ob = new JointTypeEnum(jointTypeNode); IDManager.SetID(jointTypeIDRef_, ob); } else if (jointTypeNode.Attributes["href"] != null) { jointTypeIDRef_ = jointTypeNode.Attributes["href"].Value; } else { jointType_ = new JointTypeEnum(jointTypeNode); } } else { jointType_ = new JointTypeEnum(jointTypeNode); } } XmlNodeList subEventNodeList = xmlNode.SelectNodes("subEvent"); if (subEventNodeList != null) { this.subEvent_ = new List <SubEvent>(); foreach (XmlNode item in subEventNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { subEventIDRef_ = item.Attributes["id"].Value; subEvent_.Add(new SubEvent(item)); IDManager.SetID(subEventIDRef_, subEvent_[subEvent_.Count - 1]); } else if (item.Attributes["href"] != null) { subEventIDRef_ = item.Attributes["href"].Value; } else { subEvent_.Add(new SubEvent(item)); } } else { subEvent_.Add(new SubEvent(item)); } } } }
public JointFSubEvent(XmlNode xmlNode) { XmlNodeList jointTypeNodeList = xmlNode.SelectNodes("jointType"); if (jointTypeNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in jointTypeNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { jointTypeIDRef = item.Attributes["id"].Name; JointTypeEnum ob = JointTypeEnum(); IDManager.SetID(jointTypeIDRef, ob); } else if (item.Attributes.ToString() == "href") { jointTypeIDRef = item.Attributes["href"].Name; } else { jointType = new JointTypeEnum(item); } } } XmlNodeList mainEventNodeList = xmlNode.SelectNodes("mainEvent"); if (mainEventNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in mainEventNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { mainEventIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(mainEventIDRef, ob); } else if (item.Attributes.ToString() == "href") { mainEventIDRef = item.Attributes["href"].Name; } else { mainEvent = new XsdTypeBoolean(item); } } } XmlNodeList subEventNodeList = xmlNode.SelectNodes("subEvent"); if (subEventNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in subEventNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { subEventIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(subEventIDRef, ob); } else if (item.Attributes.ToString() == "href") { subEventIDRef = item.Attributes["href"].Name; } else { subEvent = new XsdTypeBoolean(item); } } } }