Search in sources :

Example 1 with UMLEnumerationCode

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");
}
Also used : UMLEnumerationCode(org.hl7.fhir.definitions.uml.UMLEnumeration.UMLEnumerationCode)

Example 2 with UMLEnumerationCode

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;
}
Also used : JsonArray(com.google.gson.JsonArray) UMLEnumerationCode(org.hl7.fhir.definitions.uml.UMLEnumeration.UMLEnumerationCode) JsonObject(com.google.gson.JsonObject)

Aggregations

UMLEnumerationCode (org.hl7.fhir.definitions.uml.UMLEnumeration.UMLEnumerationCode)2 JsonArray (com.google.gson.JsonArray)1 JsonObject (com.google.gson.JsonObject)1