use of org.kie.dmn.model.api.RuleAnnotationClause in project drools by kiegroup.
the class DecisionTableConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
DecisionTable dt = (DecisionTable) parent;
for (InputClause i : dt.getInput()) {
writeChildrenNode(writer, context, i, INPUT);
}
for (OutputClause o : dt.getOutput()) {
writeChildrenNode(writer, context, o, OUTPUT);
}
for (RuleAnnotationClause a : dt.getAnnotation()) {
writeChildrenNode(writer, context, a, ANNOTATION);
}
for (DecisionRule r : dt.getRule()) {
writeChildrenNode(writer, context, r, RULE);
}
}
use of org.kie.dmn.model.api.RuleAnnotationClause in project drools by kiegroup.
the class RuleAnnotationClauseConverter method writeAttributes.
@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
super.writeAttributes(writer, parent);
RuleAnnotationClause e = (RuleAnnotationClause) parent;
if (e.getName() != null) {
writer.addAttribute(NAME, e.getName());
}
}
use of org.kie.dmn.model.api.RuleAnnotationClause in project drools by kiegroup.
the class RuleAnnotationClauseConverter method writeAttributes.
@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
super.writeAttributes(writer, parent);
RuleAnnotationClause e = (RuleAnnotationClause) parent;
if (e.getName() != null) {
writer.addAttribute(NAME, e.getName());
}
}
use of org.kie.dmn.model.api.RuleAnnotationClause in project drools by kiegroup.
the class RuleAnnotationClauseConverter method writeAttributes.
@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
super.writeAttributes(writer, parent);
RuleAnnotationClause e = (RuleAnnotationClause) parent;
if (e.getName() != null) {
writer.addAttribute(NAME, e.getName());
}
}
use of org.kie.dmn.model.api.RuleAnnotationClause in project drools by kiegroup.
the class DecisionTableConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
DecisionTable dt = (DecisionTable) parent;
for (InputClause i : dt.getInput()) {
writeChildrenNode(writer, context, i, INPUT);
}
for (OutputClause o : dt.getOutput()) {
writeChildrenNode(writer, context, o, OUTPUT);
}
for (RuleAnnotationClause a : dt.getAnnotation()) {
writeChildrenNode(writer, context, a, ANNOTATION);
}
for (DecisionRule r : dt.getRule()) {
writeChildrenNode(writer, context, r, RULE);
}
}
Aggregations