Search in sources :

Example 11 with TextAnnotation

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);
}
Also used : TTextAnnotation(org.kie.dmn.model.v1_4.TTextAnnotation) TextAnnotation(org.kie.dmn.model.api.TextAnnotation)

Example 12 with TextAnnotation

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());
}
Also used : TTextAnnotation(org.kie.dmn.model.v1_4.TTextAnnotation) TextAnnotation(org.kie.dmn.model.api.TextAnnotation)

Example 13 with TextAnnotation

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);
}
Also used : TTextAnnotation(org.kie.dmn.model.v1_3.TTextAnnotation) TextAnnotation(org.kie.dmn.model.api.TextAnnotation)

Example 14 with TextAnnotation

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);
}
Also used : TTextAnnotation(org.kie.dmn.model.v1_3.TTextAnnotation) TextAnnotation(org.kie.dmn.model.api.TextAnnotation)

Example 15 with TextAnnotation

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);
}
Also used : TextAnnotation(org.kie.dmn.model.api.TextAnnotation) TTextAnnotation(org.kie.dmn.model.v1_2.TTextAnnotation)

Aggregations

TextAnnotation (org.kie.dmn.model.api.TextAnnotation)16 Artifact (org.kie.dmn.model.api.Artifact)4 Association (org.kie.dmn.model.api.Association)4 BusinessContextElement (org.kie.dmn.model.api.BusinessContextElement)4 BusinessKnowledgeModel (org.kie.dmn.model.api.BusinessKnowledgeModel)4 DRGElement (org.kie.dmn.model.api.DRGElement)4 Decision (org.kie.dmn.model.api.Decision)4 Definitions (org.kie.dmn.model.api.Definitions)4 ElementCollection (org.kie.dmn.model.api.ElementCollection)4 Import (org.kie.dmn.model.api.Import)4 InputData (org.kie.dmn.model.api.InputData)4 ItemDefinition (org.kie.dmn.model.api.ItemDefinition)4 KnowledgeSource (org.kie.dmn.model.api.KnowledgeSource)4 OrganizationUnit (org.kie.dmn.model.api.OrganizationUnit)4 PerformanceIndicator (org.kie.dmn.model.api.PerformanceIndicator)4 DecisionService (org.kie.dmn.model.api.DecisionService)3 TTextAnnotation (org.kie.dmn.model.v1_1.TTextAnnotation)3 TTextAnnotation (org.kie.dmn.model.v1_2.TTextAnnotation)3 TTextAnnotation (org.kie.dmn.model.v1_3.TTextAnnotation)3 TTextAnnotation (org.kie.dmn.model.v1_4.TTextAnnotation)3