Search in sources :

Example 1 with TypeClassification

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();
}
Also used : WildcardInformation(org.hl7.fhir.r5.utils.TypesUtilities.WildcardInformation) CommaSeparatedStringBuilder(org.hl7.fhir.utilities.CommaSeparatedStringBuilder) TypeClassification(org.hl7.fhir.r5.utils.TypesUtilities.TypeClassification)

Aggregations

TypeClassification (org.hl7.fhir.r5.utils.TypesUtilities.TypeClassification)1 WildcardInformation (org.hl7.fhir.r5.utils.TypesUtilities.WildcardInformation)1 CommaSeparatedStringBuilder (org.hl7.fhir.utilities.CommaSeparatedStringBuilder)1