use of org.hl7.fhir.r5.utils.TypesUtilities.TypeClassification in project kindling by HL7.
the class PageProcessor method genWildcardTypeList.
private String genWildcardTypeList() {
StringBuilder b = new StringBuilder();
TypeClassification tc = null;
boolean first = true;
for (WildcardInformation wi : TypesUtilities.wildcards(version.toCode())) {
if (tc != wi.getClassification()) {
if (first)
first = false;
else
b.append("</ul>\r\n");
tc = wi.getClassification();
b.append("<b>" + Utilities.pluralize(tc.toDisplay(), 2) + "</b>\r\n");
b.append("<ul class=\"dense\">\r\n");
}
b.append("<li><a href=\"");
b.append(definitions.getSrcFile(wi.getTypeName()) + ".html#" + wi.getTypeName());
b.append("\">");
b.append(wi.getTypeName());
b.append("</a></li>\r\n");
}
b.append("</ul>\r\n");
return b.toString();
}
Aggregations