Пример #1
0
        public string Generate(IEnumerable<OntologyClass> classes, Options opts)
        {
			StringTemplate template = stringTemplateGroup.GetInstanceOf("classes");
            template.SetAttribute("classes", classes);
            template.SetAttribute("handle", opts.OntologyPrefix);
            template.SetAttribute("uri", opts.OntologyNamespace);
            template.SetAttribute("opts", opts);
            template.SetAttribute("refs", opts.DotNetNamespaceReferences.Split(','));
            return template.ToString();
        }
Пример #2
0
 private static Options ProcessOptions(string[] args)
 {
     var opts = new Options();
     opts.ProcessArgs(args);
     return opts;
 }