Search in sources :

Example 1 with IDREFStubStyle

use of org.kie.dmn.model.v1_3.dmndi.Style.IDREFStubStyle 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_2.dmndi.Style.IDREFStubStyle) DMNStyle(org.kie.dmn.model.api.dmndi.DMNStyle)

Example 2 with IDREFStubStyle

use of org.kie.dmn.model.v1_3.dmndi.Style.IDREFStubStyle 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)2 IDREFStubStyle (org.kie.dmn.model.v1_2.dmndi.Style.IDREFStubStyle)1 IDREFStubStyle (org.kie.dmn.model.v1_3.dmndi.Style.IDREFStubStyle)1