use of org.kie.dmn.model.v1_1.Context in project drools by kiegroup.
the class InputDataConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
InputData id = (InputData) parent;
if (id.getVariable() != null) {
writeChildrenNode(writer, context, id.getVariable(), VARIABLE);
}
}
use of org.kie.dmn.model.v1_1.Context in project drools by kiegroup.
the class KnowledgeRequirementConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
KnowledgeRequirement kr = (KnowledgeRequirement) parent;
writeChildrenNode(writer, context, kr.getRequiredKnowledge(), REQUIRED_KNOWLEDGE);
}
use of org.kie.dmn.model.v1_1.Context in project drools by kiegroup.
the class LiteralExpressionConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
LiteralExpression le = (LiteralExpression) parent;
if (le.getText() != null)
writeChildrenNodeAsValue(writer, context, le.getText(), TEXT);
// TODO Or if-else ?
if (le.getImportedValues() != null)
writeChildrenNode(writer, context, le.getImportedValues(), IMPORTED_VALUES);
}
use of org.kie.dmn.model.v1_1.Context in project drools by kiegroup.
the class OrganizationUnitConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
OrganizationUnit ou = (OrganizationUnit) parent;
for (DMNElementReference dm : ou.getDecisionMade()) {
writeChildrenNode(writer, context, dm, DECISION_MADE);
}
for (DMNElementReference downed : ou.getDecisionOwned()) {
writeChildrenNode(writer, context, downed, DECISION_OWNED);
}
}
use of org.kie.dmn.model.v1_1.Context in project drools by kiegroup.
the class RelationConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
Relation r = (Relation) parent;
for (InformationItem c : r.getColumn()) {
writeChildrenNode(writer, context, c, COLUMN);
}
for (org.kie.dmn.model.v1_1.List row : r.getRow()) {
writeChildrenNode(writer, context, row, ROW);
}
}
Aggregations