use of org.kie.dmn.model.api.ElementCollection in project drools by kiegroup.
the class ElementCollectionConverter method assignChildElement.
@Override
protected void assignChildElement(Object parent, String nodeName, Object child) {
ElementCollection ec = (ElementCollection) parent;
if (DRG_ELEMENT.equals(nodeName)) {
ec.getDrgElement().add((DMNElementReference) child);
}
super.assignChildElement(parent, nodeName, child);
}
use of org.kie.dmn.model.api.ElementCollection 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);
}
}
Aggregations