Search in sources :

Example 1 with TNamedExpression

use of org.kie.dmn.trisotech.model.v1_3.TNamedExpression in project drools by kiegroup.

the class FilterConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    Filter filter = (Filter) parent;
    writeChildrenNode(writer, context, new TNamedExpression(IN, filter.getIn()), IN);
    writeChildrenNode(writer, context, new TNamedExpression(MATCH, filter.getMatch()), MATCH);
}
Also used : Filter(org.kie.dmn.trisotech.model.api.Filter) TFilter(org.kie.dmn.trisotech.model.v1_3.TFilter) TNamedExpression(org.kie.dmn.trisotech.model.v1_3.TNamedExpression)

Example 2 with TNamedExpression

use of org.kie.dmn.trisotech.model.v1_3.TNamedExpression in project drools by kiegroup.

the class ConditionalConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    Conditional cond = (Conditional) parent;
    writeChildrenNode(writer, context, new TNamedExpression(IF, cond.getIf()), IF);
    writeChildrenNode(writer, context, new TNamedExpression(THEN, cond.getThen()), THEN);
    writeChildrenNode(writer, context, new TNamedExpression(ELSE, cond.getElse()), ELSE);
}
Also used : TConditional(org.kie.dmn.trisotech.model.v1_3.TConditional) Conditional(org.kie.dmn.trisotech.model.api.Conditional) TNamedExpression(org.kie.dmn.trisotech.model.v1_3.TNamedExpression)

Example 3 with TNamedExpression

use of org.kie.dmn.trisotech.model.v1_3.TNamedExpression in project drools by kiegroup.

the class IteratorConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    Iterator it = (Iterator) parent;
    writeChildrenNode(writer, context, new TNamedExpression(IN, it.getIn(), it.getTypeRef()), IN);
    writeChildrenNode(writer, context, new TNamedExpression(RETURN, it.getReturn()), RETURN);
}
Also used : Iterator(org.kie.dmn.trisotech.model.api.Iterator) TIterator(org.kie.dmn.trisotech.model.v1_3.TIterator) TNamedExpression(org.kie.dmn.trisotech.model.v1_3.TNamedExpression)

Aggregations

TNamedExpression (org.kie.dmn.trisotech.model.v1_3.TNamedExpression)3 Conditional (org.kie.dmn.trisotech.model.api.Conditional)1 Filter (org.kie.dmn.trisotech.model.api.Filter)1 Iterator (org.kie.dmn.trisotech.model.api.Iterator)1 TConditional (org.kie.dmn.trisotech.model.v1_3.TConditional)1 TFilter (org.kie.dmn.trisotech.model.v1_3.TFilter)1 TIterator (org.kie.dmn.trisotech.model.v1_3.TIterator)1