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.namespaceReferences.Split(',')); return template.ToString(); }
private static Options ProcessOptions(string[] args) { var opts = new Options(); opts.ProcessArgs(args); return opts; }
public MetadataRetriever(Options opts) { this.opts = opts; }