use of org.kie.dmn.model.api.Expression in project drools by kiegroup.
the class DMNListConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
List list = (List) parent;
for (Expression e : list.getExpression()) {
writeChildrenNode(writer, context, e, MarshallingUtils.defineExpressionNodeName(e));
}
}
use of org.kie.dmn.model.api.Expression in project drools by kiegroup.
the class ExpressionConverter method writeAttributes.
@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
super.writeAttributes(writer, parent);
Expression e = (Expression) parent;
if (!(e instanceof UnaryTests) && e.getTypeRef() != null) {
writer.addAttribute(TYPE_REF, MarshallingUtils.formatQName(e.getTypeRef(), e));
}
}
use of org.kie.dmn.model.api.Expression in project drools by kiegroup.
the class DMNListConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
List list = (List) parent;
for (Expression e : list.getExpression()) {
writeChildrenNode(writer, context, e, MarshallingUtils.defineExpressionNodeName(xstream, e));
}
}
use of org.kie.dmn.model.api.Expression in project drools by kiegroup.
the class ExpressionConverter method writeAttributes.
@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
super.writeAttributes(writer, parent);
Expression e = (Expression) parent;
if (!(e instanceof UnaryTests) && e.getTypeRef() != null) {
writer.addAttribute(TYPE_REF, MarshallingUtils.formatQName(e.getTypeRef(), e));
}
}
use of org.kie.dmn.model.api.Expression in project drools by kiegroup.
the class DMNEvaluatorCompiler method compileList.
private DMNExpressionEvaluator compileList(DMNCompilerContext ctx, DMNModelImpl model, DMNBaseNode node, String listName, org.kie.dmn.model.api.List expression) {
org.kie.dmn.model.api.List listDef = expression;
DMNListEvaluator listEval = new DMNListEvaluator(node.getName(), node.getSource(), listDef);
for (Expression expr : listDef.getExpression()) {
listEval.addElement(compileExpression(ctx, model, node, listName, expr));
}
return listEval;
}
Aggregations