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);
}
}
use of org.kie.dmn.model.api.DMNElementReference in project drools by kiegroup.
the class OrganizationUnitConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
OrganizationUnit ou = (OrganizationUnit) parent;
for (DMNElementReference dm : ou.getDecisionMade()) {
writeChildrenNode(writer, context, dm, DECISION_MADE);
}
for (DMNElementReference downed : ou.getDecisionOwned()) {
writeChildrenNode(writer, context, downed, DECISION_OWNED);
}
}
use of org.kie.dmn.model.api.DMNElementReference in project drools by kiegroup.
the class DMNElementReferenceConverter method assignAttributes.
@Override
protected void assignAttributes(HierarchicalStreamReader reader, Object parent) {
super.assignAttributes(reader, parent);
DMNElementReference er = (DMNElementReference) parent;
String href = reader.getAttribute(HREF);
er.setHref(href);
}
use of org.kie.dmn.model.api.DMNElementReference in project drools by kiegroup.
the class DMNElementReferenceConverter method writeAttributes.
@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
super.writeAttributes(writer, parent);
DMNElementReference er = (DMNElementReference) parent;
if (er.getHref() != null)
writer.addAttribute(HREF, er.getHref());
}
use of org.kie.dmn.model.api.DMNElementReference in project drools by kiegroup.
the class DMNElementReferenceConverter method assignAttributes.
@Override
protected void assignAttributes(HierarchicalStreamReader reader, Object parent) {
super.assignAttributes(reader, parent);
DMNElementReference er = (DMNElementReference) parent;
String href = reader.getAttribute(HREF);
er.setHref(href);
}
Aggregations