use of org.kie.dmn.model.api.ContextEntry in project drools by kiegroup.
the class ContextConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
Context c = (Context) parent;
for (ContextEntry ce : c.getContextEntry()) {
writeChildrenNode(writer, context, ce, CONTEXT_ENTRY);
}
}
use of org.kie.dmn.model.api.ContextEntry in project drools by kiegroup.
the class ContextEntryConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
ContextEntry ce = (ContextEntry) parent;
if (ce.getVariable() != null)
writeChildrenNode(writer, context, ce.getVariable(), VARIABLE);
writeChildrenNode(writer, context, ce.getExpression(), MarshallingUtils.defineExpressionNodeName(ce.getExpression()));
}
use of org.kie.dmn.model.api.ContextEntry in project drools by kiegroup.
the class ContextConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
Context c = (Context) parent;
for (ContextEntry ce : c.getContextEntry()) {
writeChildrenNode(writer, context, ce, CONTEXT_ENTRY);
}
}
use of org.kie.dmn.model.api.ContextEntry in project drools by kiegroup.
the class ContextEntryConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
ContextEntry ce = (ContextEntry) parent;
if (ce.getVariable() != null)
writeChildrenNode(writer, context, ce.getVariable(), VARIABLE);
writeChildrenNode(writer, context, ce.getExpression(), MarshallingUtils.defineExpressionNodeName(xstream, ce.getExpression()));
}
use of org.kie.dmn.model.api.ContextEntry in project drools by kiegroup.
the class ContextEntryConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
ContextEntry ce = (ContextEntry) parent;
if (ce.getVariable() != null)
writeChildrenNode(writer, context, ce.getVariable(), VARIABLE);
writeChildrenNode(writer, context, ce.getExpression(), MarshallingUtils.defineExpressionNodeName(xstream, ce.getExpression()));
}
Aggregations