use of org.kie.dmn.model.api.TextAnnotation in project drools by kiegroup.
the class TextAnnotationConverter method assignAttributes.
@Override
protected void assignAttributes(HierarchicalStreamReader reader, Object parent) {
super.assignAttributes(reader, parent);
TextAnnotation ta = (TextAnnotation) parent;
String textFormat = reader.getAttribute(TEXT_FORMAT);
ta.setTextFormat(textFormat);
}
use of org.kie.dmn.model.api.TextAnnotation in project drools by kiegroup.
the class TextAnnotationConverter method writeAttributes.
@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
super.writeAttributes(writer, parent);
TextAnnotation ta = (TextAnnotation) parent;
if (ta.getTextFormat() != null)
writer.addAttribute(TEXT_FORMAT, ta.getTextFormat());
}
use of org.kie.dmn.model.api.TextAnnotation in project drools by kiegroup.
the class TextAnnotationConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
TextAnnotation ta = (TextAnnotation) parent;
if (ta.getText() != null)
writeChildrenNode(writer, context, ta.getText(), TEXT);
}
use of org.kie.dmn.model.api.TextAnnotation in project drools by kiegroup.
the class TextAnnotationConverter method assignAttributes.
@Override
protected void assignAttributes(HierarchicalStreamReader reader, Object parent) {
super.assignAttributes(reader, parent);
TextAnnotation ta = (TextAnnotation) parent;
String textFormat = reader.getAttribute(TEXT_FORMAT);
ta.setTextFormat(textFormat);
}
use of org.kie.dmn.model.api.TextAnnotation in project drools by kiegroup.
the class TextAnnotationConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
TextAnnotation ta = (TextAnnotation) parent;
if (ta.getText() != null)
writeChildrenNode(writer, context, ta.getText(), TEXT);
}
Aggregations