internal void AddConcept(MvdConcept mvdConcept) { if (Concepts.ContainsKey(mvdConcept.uuid)) { return; } Concepts.Add(mvdConcept.uuid, mvdConcept); }
public MvdConceptRoot(MvdXMLDocument mvdXMLDocument, XPathNavigator xPathNavigator) : base(mvdXMLDocument, xPathNavigator) { applicableRootEntity = xPathNavigator.GetAttribute("applicableRootEntity", ""); XPathNavigator childNav = xPathNavigator.Clone(); childNav.MoveToChild("Concepts", mvdXMLDocument.fileNameSpace); var ret = childNav.MoveToChild("Concept", mvdXMLDocument.fileNameSpace); Concepts = new List <MvdConcept>(); while (ret) { var c = new MvdConcept(mvdXMLDocument, childNav); c.ConceptRoot = this; Concepts.Add(c); ret = childNav.MoveToNext("Concept", mvdXMLDocument.fileNameSpace); } }