use of org.hl7.fhir.definitions.uml.UMLEnumeration.UMLEnumerationCode in project kindling by HL7.
the class UMLWriter method writeEnumeration.
private static void writeEnumeration(StringBuilder b, UMLEnumeration e) {
writeEntity(b, "enum", e);
for (UMLEnumerationCode c : e.getCodes()) {
writeEntity(b, " ", c);
}
b.append("end\r\n\r\n");
}
use of org.hl7.fhir.definitions.uml.UMLEnumeration.UMLEnumerationCode in project kindling by HL7.
the class UMLWriter method writeEnumeration.
private static JsonObject writeEnumeration(UMLEnumeration t) {
JsonObject json = writeEntity(t);
json.addProperty("class", "Enumeration");
JsonArray arr = new JsonArray();
for (UMLEnumerationCode c : t.getCodes()) {
arr.add(writeEntity(c));
}
return json;
}
Aggregations