Search in sources :

Example 36 with DMNElementReference

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

the class ElementCollectionConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    ElementCollection ec = (ElementCollection) parent;
    for (DMNElementReference e : ec.getDrgElement()) {
        writeChildrenNode(writer, context, e, DRG_ELEMENT);
    }
}
Also used : DMNElementReference(org.kie.dmn.model.api.DMNElementReference) ElementCollection(org.kie.dmn.model.api.ElementCollection) TElementCollection(org.kie.dmn.model.v1_4.TElementCollection)

Aggregations

DMNElementReference (org.kie.dmn.model.api.DMNElementReference)36 Decision (org.kie.dmn.model.api.Decision)5 InformationRequirement (org.kie.dmn.model.api.InformationRequirement)5 TDMNElementReference (org.kie.dmn.model.v1_2.TDMNElementReference)5 AuthorityRequirement (org.kie.dmn.model.api.AuthorityRequirement)4 DMNModelInstrumentedBase (org.kie.dmn.model.api.DMNModelInstrumentedBase)4 DecisionService (org.kie.dmn.model.api.DecisionService)4 ElementCollection (org.kie.dmn.model.api.ElementCollection)4 Expression (org.kie.dmn.model.api.Expression)4 KnowledgeRequirement (org.kie.dmn.model.api.KnowledgeRequirement)4 OrganizationUnit (org.kie.dmn.model.api.OrganizationUnit)4 PerformanceIndicator (org.kie.dmn.model.api.PerformanceIndicator)4 TDMNElementReference (org.kie.dmn.model.v1_1.TDMNElementReference)4 TDMNElementReference (org.kie.dmn.model.v1_3.TDMNElementReference)4 TDMNElementReference (org.kie.dmn.model.v1_4.TDMNElementReference)4 IOException (java.io.IOException)2 Reader (java.io.Reader)2 Arrays (java.util.Arrays)2 List (java.util.List)2 CoreMatchers.is (org.hamcrest.CoreMatchers.is)2