protected BaseElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap) { TextAnnotation annotation = new TextAnnotation(); String text = getPropertyValueAsString("text", elementNode); if (StringUtils.isNotEmpty(text)) { annotation.setText(text); } return annotation; } }
@Override protected BaseElement convertXMLToElement(XMLStreamReader xtr, BpmnModel model) throws Exception { TextAnnotation textAnnotation = new TextAnnotation(); BpmnXMLUtil.addXMLLocation(textAnnotation, xtr); textAnnotation.setTextFormat(xtr.getAttributeValue(null, ATTRIBUTE_TEXTFORMAT)); parseChildElements(getXMLElementName(), textAnnotation, childParserMap, model, xtr); return textAnnotation; }
protected BaseElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap) { TextAnnotation annotation = new TextAnnotation(); String text = getPropertyValueAsString("text", elementNode); if (StringUtils.isNotEmpty(text)) { annotation.setText(text); } return annotation; } }
@Override protected BaseElement convertXMLToElement(XMLStreamReader xtr, BpmnModel model) throws Exception { TextAnnotation textAnnotation = new TextAnnotation(); BpmnXMLUtil.addXMLLocation(textAnnotation, xtr); textAnnotation.setTextFormat(xtr.getAttributeValue(null, ATTRIBUTE_TEXTFORMAT)); parseChildElements(getXMLElementName(), textAnnotation, childParserMap, model, xtr); return textAnnotation; }
@Override protected BaseElement convertXMLToElement(XMLStreamReader xtr) throws Exception { TextAnnotation textAnnotation = new TextAnnotation(); BpmnXMLUtil.addXMLLocation(textAnnotation, xtr); textAnnotation.setTextFormat(xtr.getAttributeValue(null, ATTRIBUTE_TEXTFORMAT)); parseChildElements(getXMLElementName(), textAnnotation, xtr); return textAnnotation; }