Search in sources :

Example 6 with DMNElement

use of org.kie.workbench.common.dmn.api.definition.v1_1.DMNElement in project drools by kiegroup.

the class DMNElementConverter method writeAttributes.

@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
    super.writeAttributes(writer, parent);
    DMNElement e = (DMNElement) parent;
    if (e.getId() != null)
        writer.addAttribute(ID, e.getId());
    if (e.getLabel() != null)
        writer.addAttribute(LABEL, e.getLabel());
}
Also used : DMNElement(org.kie.dmn.model.v1_1.DMNElement)

Aggregations

DMNElement (org.kie.dmn.model.v1_1.DMNElement)4 TextAnnotation (org.kie.workbench.common.dmn.api.definition.v1_1.TextAnnotation)2 XStream (com.thoughtworks.xstream.XStream)1 HashMap (java.util.HashMap)1 List (java.util.List)1 DMNExtensionRegister (org.kie.dmn.api.marshalling.v1_1.DMNExtensionRegister)1 Definitions (org.kie.dmn.model.v1_1.Definitions)1 XStreamUtils.createTrustingXStream (org.kie.soup.commons.xstream.XStreamUtils.createTrustingXStream)1 BusinessKnowledgeModel (org.kie.workbench.common.dmn.api.definition.v1_1.BusinessKnowledgeModel)1 DMNDiagram (org.kie.workbench.common.dmn.api.definition.v1_1.DMNDiagram)1 DMNElement (org.kie.workbench.common.dmn.api.definition.v1_1.DMNElement)1 DRGElement (org.kie.workbench.common.dmn.api.definition.v1_1.DRGElement)1 Decision (org.kie.workbench.common.dmn.api.definition.v1_1.Decision)1 Definitions (org.kie.workbench.common.dmn.api.definition.v1_1.Definitions)1 InputData (org.kie.workbench.common.dmn.api.definition.v1_1.InputData)1 KnowledgeSource (org.kie.workbench.common.dmn.api.definition.v1_1.KnowledgeSource)1 DMNShape (org.kie.workbench.common.dmn.backend.definition.v1_1.dd.DMNShape)1 Bounds (org.kie.workbench.common.dmn.backend.definition.v1_1.dd.org.omg.spec.CMMN_20151109_DC.Bounds)1 Node (org.kie.workbench.common.stunner.core.graph.Node)1 View (org.kie.workbench.common.stunner.core.graph.content.view.View)1