(xmlStream, model)
| 25 | } |
| 26 | |
| 27 | render(xmlStream, model) { |
| 28 | if (this.always || (model && model.length)) { |
| 29 | xmlStream.openNode(this.tag, this.$); |
| 30 | if (this.count) { |
| 31 | xmlStream.addAttribute(this.$count, (model && model.length) || 0); |
| 32 | } |
| 33 | |
| 34 | const {childXform} = this; |
| 35 | (model || []).forEach((childModel, index) => { |
| 36 | childXform.render(xmlStream, childModel, index); |
| 37 | }); |
| 38 | |
| 39 | xmlStream.closeNode(); |
| 40 | } else if (this.empty) { |
| 41 | xmlStream.leafNode(this.tag); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | parseOpen(node) { |
| 46 | if (this.parser) { |
nothing calls this directly
no test coverage detected