Search in sources :

Example 6 with DMNDiagram

use of org.kie.dmn.model.api.dmndi.DMNDiagram in project drools by kiegroup.

the class DMNDiagramConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    DMNDiagram style = (DMNDiagram) parent;
    if (style.getSize() != null) {
        writeChildrenNode(writer, context, style.getSize(), SIZE);
    }
    for (DiagramElement de : style.getDMNDiagramElement()) {
        writeChildrenNode(writer, context, de, de.getClass().getSimpleName());
    }
}
Also used : DiagramElement(org.kie.dmn.model.api.dmndi.DiagramElement) DMNDiagram(org.kie.dmn.model.api.dmndi.DMNDiagram)

Aggregations

DMNDiagram (org.kie.dmn.model.api.dmndi.DMNDiagram)6 DMNStyle (org.kie.dmn.model.api.dmndi.DMNStyle)4 DiagramElement (org.kie.dmn.model.api.dmndi.DiagramElement)4 DMNDI (org.kie.dmn.model.api.dmndi.DMNDI)2