public string CreateNewPrefixFor(OntologyAttribute ontology) { string result = generatedNamespaceChar.ToString(); IncrementNamespace(); return(result); }
public void Rename(string fromName, string toName) { OntologyAttribute ontology = store[fromName]; store.Remove(fromName); store.Add(toName, ontology); }
public void Add(Type t) { OntologyAttribute attr = t.GetOntology(); if (!store.ContainsKey(attr.Name)) { store[attr.Name] = attr; } }
public void AddNewDefaultNamespace(OntologyAttribute ontology, string name) { Rename("", name); Default = ontology; }