use of org.kie.dmn.model.v1_1.Context in project drools by kiegroup.
the class InputClauseConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
InputClause ic = (InputClause) parent;
writeChildrenNode(writer, context, ic.getInputExpression(), INPUT_EXPRESSION);
if (ic.getInputValues() != null)
writeChildrenNode(writer, context, ic.getInputValues(), INPUT_VALUES);
}
use of org.kie.dmn.model.v1_1.Context in project drools by kiegroup.
the class ItemDefinitionConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
ItemDefinition id = (ItemDefinition) parent;
if (id.getTypeRef() != null)
writeChildrenNode(writer, context, id.getTypeRef(), TYPE_REF);
if (id.getAllowedValues() != null)
writeChildrenNode(writer, context, id.getAllowedValues(), ALLOWED_VALUES);
for (ItemDefinition ic : id.getItemComponent()) {
writeChildrenNode(writer, context, ic, ITEM_COMPONENT);
}
}
use of org.kie.dmn.model.v1_1.Context in project drools by kiegroup.
the class KnowledgeSourceConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
KnowledgeSource ks = (KnowledgeSource) parent;
for (AuthorityRequirement ar : ks.getAuthorityRequirement()) {
writeChildrenNode(writer, context, ar, AUTHORITY_REQUIREMENT);
}
if (ks.getType() != null)
writeChildrenNode(writer, context, ks.getType(), TYPE);
if (ks.getOwner() != null)
writeChildrenNode(writer, context, ks.getOwner(), OWNER);
}
use of org.kie.dmn.model.v1_1.Context in project drools by kiegroup.
the class InvocationConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
Invocation i = (Invocation) parent;
if (i.getExpression() != null)
writeChildrenNode(writer, context, i.getExpression(), MarshallingUtils.defineExpressionNodeName(i.getExpression()));
for (Binding b : i.getBinding()) {
writeChildrenNode(writer, context, b, BINDING);
}
}
use of org.kie.dmn.model.v1_1.Context in project drools by kiegroup.
the class OutputClauseConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
OutputClause oc = (OutputClause) parent;
if (oc.getOutputValues() != null)
writeChildrenNode(writer, context, oc.getOutputValues(), OUTPUT_VALUES);
if (oc.getDefaultOutputEntry() != null)
writeChildrenNode(writer, context, oc.getDefaultOutputEntry(), DEFAULT_OUTPUT_ENTRY);
}
Aggregations