(xmlStream, model)
| 29 | } |
| 30 | |
| 31 | render(xmlStream, model) { |
| 32 | xmlStream.openNode(this.tag); |
| 33 | if (model && model.hasOwnProperty('richText') && model.richText) { |
| 34 | if (model.richText.length) { |
| 35 | model.richText.forEach(text => { |
| 36 | this.map.r.render(xmlStream, text); |
| 37 | }); |
| 38 | } else { |
| 39 | this.map.t.render(xmlStream, ''); |
| 40 | } |
| 41 | } else if (model !== undefined && model !== null) { |
| 42 | this.map.t.render(xmlStream, model); |
| 43 | } |
| 44 | xmlStream.closeNode(); |
| 45 | } |
| 46 | |
| 47 | parseOpen(node) { |
| 48 | const {name} = node; |