Search in sources :

Example 1 with DiagramElement

use of org.kie.dmn.model.v1_3.dmndi.DiagramElement in project drools by kiegroup.

the class DMNDI method replaceSharedStyleIfStubbed.

private void replaceSharedStyleIfStubbed(DiagramElement element, Map<String, DMNStyle> styleById) {
    if (element.getSharedStyle() instanceof IDREFStubStyle) {
        DMNStyle locatedStyle = styleById.get(element.getSharedStyle().getId());
        element.setSharedStyle(locatedStyle);
    }
}
Also used : IDREFStubStyle(org.kie.dmn.model.v1_3.dmndi.Style.IDREFStubStyle) DMNStyle(org.kie.dmn.model.api.dmndi.DMNStyle)

Aggregations

DMNStyle (org.kie.dmn.model.api.dmndi.DMNStyle)1 IDREFStubStyle (org.kie.dmn.model.v1_3.dmndi.Style.IDREFStubStyle)1