Search in sources :

Example 1 with ResourceDependencyGenerator

use of org.hl7.fhir.definitions.generators.specification.ResourceDependencyGenerator in project kindling by HL7.

the class PageProcessor method genDependencyGraph.

private String genDependencyGraph(ResourceDefn resource, String prefix) throws Exception {
    ElementDefn e = resource.getRoot();
    ResourceDependencyGenerator gen = new ResourceDependencyGenerator(folders.dstDir, this, resource.getName() + "-definitions.html", false, resource.getFmmLevel(), resource.getStatus());
    return "<p>Dependency Graph for " + resource.getName() + " FMM level " + resource.getFmmLevel() + "</p>" + new XhtmlComposer(XhtmlComposer.HTML).compose(gen.generate(e, prefix));
}
Also used : ElementDefn(org.hl7.fhir.definitions.model.ElementDefn) XhtmlComposer(org.hl7.fhir.utilities.xhtml.XhtmlComposer) ResourceDependencyGenerator(org.hl7.fhir.definitions.generators.specification.ResourceDependencyGenerator)

Aggregations

ResourceDependencyGenerator (org.hl7.fhir.definitions.generators.specification.ResourceDependencyGenerator)1 ElementDefn (org.hl7.fhir.definitions.model.ElementDefn)1 XhtmlComposer (org.hl7.fhir.utilities.xhtml.XhtmlComposer)1