use of org.kie.dmn.model.api.InformationItem in project drools by kiegroup.
the class InformationItemConverter method writeAttributes.
@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
super.writeAttributes(writer, parent);
InformationItem ii = (InformationItem) parent;
if (ii.getTypeRef() != null) {
writer.addAttribute(TYPE_REF, MarshallingUtils.formatQName(ii.getTypeRef(), ii));
}
}
use of org.kie.dmn.model.api.InformationItem in project drools by kiegroup.
the class FunctionItemConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
FunctionItem ii = (FunctionItem) parent;
for (InformationItem ic : ii.getParameters()) {
writeChildrenNode(writer, context, ic, PARAMETERS);
}
}
use of org.kie.dmn.model.api.InformationItem in project drools by kiegroup.
the class FunctionItemConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
FunctionItem ii = (FunctionItem) parent;
for (InformationItem ic : ii.getParameters()) {
writeChildrenNode(writer, context, ic, PARAMETERS);
}
}
use of org.kie.dmn.model.api.InformationItem in project drools by kiegroup.
the class InformationItemConverter method writeAttributes.
@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
super.writeAttributes(writer, parent);
InformationItem ii = (InformationItem) parent;
if (ii.getTypeRef() != null) {
writer.addAttribute(TYPE_REF, MarshallingUtils.formatQName(ii.getTypeRef(), ii));
}
}
use of org.kie.dmn.model.api.InformationItem in project drools by kiegroup.
the class InformationItemConverter method assignAttributes.
@Override
protected void assignAttributes(HierarchicalStreamReader reader, Object parent) {
super.assignAttributes(reader, parent);
InformationItem ii = (InformationItem) parent;
String typeRef = reader.getAttribute(TYPE_REF);
ii.setTypeRef(MarshallingUtils.parseQNameString(typeRef));
}
Aggregations