Beispiel #1
0
        public string CreateNewPrefixFor(OntologyAttribute ontology)
        {
            string result = generatedNamespaceChar.ToString();

            IncrementNamespace();
            return(result);
        }
Beispiel #2
0
        public void Rename(string fromName, string toName)
        {
            OntologyAttribute ontology = store[fromName];

            store.Remove(fromName);
            store.Add(toName, ontology);
        }
Beispiel #3
0
        public void Add(Type t)
        {
            OntologyAttribute attr = t.GetOntology();

            if (!store.ContainsKey(attr.Name))
            {
                store[attr.Name] = attr;
            }
        }
Beispiel #4
0
 public void AddNewDefaultNamespace(OntologyAttribute ontology, string name)
 {
     Rename("", name);
     Default = ontology;
 }